33#include <vtkPolyDataMapper.h>
34#include <vtkProperty.h>
35#include <vtkVertexGlyphFilter.h>
39 return std::hash<G4VisAttributes>{}(*pVA);
60 mapper->SetInputConnection(glyphFilter->GetOutputPort());
62 GetActor()->GetProperty()->SetLineWidth(lineWidth);
64 GetActor()->GetProperty()->SetOpacity(opacity);
67 GetActor()->GetProperty()->SetRenderPointsAsSpheres(
true);
68 GetActor()->GetProperty()->SetPointSize(
vc.fSize * 2);
G4GLOB_DLL std::ostream G4cout
G4double GetAlpha() const
G4double GetGreen() const
void SetTypeName(G4String typeNameIn)
G4double GetLineWidth() const
const G4Colour & GetColour() const
vtkSmartPointer< vtkPolyData > polydata
vtkSmartPointer< vtkPolyDataMapper > mapper
virtual vtkSmartPointer< vtkActor > GetActor()
void AddFilter(vtkSmartPointer< vtkPolyDataAlgorithm > f)
G4VtkPolydataPipeline(G4String name, const G4VtkVisContext &vc)
static std::size_t MakeHash(const G4VisAttributes *va)
G4VtkPolydataSpherePipeline(G4String name, const G4VtkVisContext &vc, const G4VisAttributes *pVA)