Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase Class Reference

#include <G4VtkUnstructuredGridPipeline.hh>

+ Inheritance diagram for G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase:

Public Member Functions

 PseudoSceneVtkBase (G4PhysicalVolumeModel *pvModel, G4int depth, vtkPoints *points, vtkDoubleArray *pointColourValues, vtkDoubleArray *cellColourValues, vtkDoubleArray *pointColourIndices, vtkDoubleArray *cellColourIndices, vtkDiscretizableColorTransferFunction *colourLUT, vtkUnstructuredGrid *unstructuredGrid)
 
G4int GetNumberOfPoints ()
 
G4int GetNumberOfCells ()
 
G4int GetNumberOfAddedCells ()
 
void DumpColourMap ()
 
- Public Member Functions inherited from G4PseudoScene
 G4PseudoScene ()=default
 
virtual ~G4PseudoScene ()=default
 
void PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &visAttributes)
 
void PostAddSolid ()
 
void AddCompound (const G4VTrajectory &)
 
void AddCompound (const G4VHit &)
 
void AddCompound (const G4VDigi &)
 
void AddCompound (const G4THitsMap< G4double > &)
 
void AddCompound (const G4THitsMap< G4StatDouble > &)
 
void AddCompound (const G4Mesh &)
 
void BeginPrimitives (const G4Transform3D &)
 
void EndPrimitives ()
 
void BeginPrimitives2D (const G4Transform3D &)
 
void EndPrimitives2D ()
 
void AddPrimitive (const G4Polyline &)
 
void AddPrimitive (const G4Text &)
 
void AddPrimitive (const G4Circle &)
 
void AddPrimitive (const G4Square &)
 
void AddPrimitive (const G4Polymarker &)
 
void AddPrimitive (const G4Polyhedron &)
 
void AddPrimitive (const G4Plotter &)
 
- Public Member Functions inherited from G4VGraphicsScene
 G4VGraphicsScene ()
 
virtual ~G4VGraphicsScene ()
 
virtual const G4VisExtentGetExtent () const
 

Protected Member Functions

void AddSolid (const G4VSolid &) override
 
void AddSolid (const G4Box &) override
 
void ProcessVolume (const G4VSolid &) override
 
void AddSolid (const G4Cons &solid)
 
void AddSolid (const G4Orb &solid)
 
void AddSolid (const G4Para &solid)
 
void AddSolid (const G4Sphere &solid)
 
void AddSolid (const G4Torus &solid)
 
void AddSolid (const G4Trap &solid)
 
void AddSolid (const G4Trd &solid)
 
void AddSolid (const G4Tubs &solid)
 
void AddSolid (const G4Ellipsoid &solid)
 
void AddSolid (const G4Polycone &solid)
 
void AddSolid (const G4Polyhedra &solid)
 
void AddSolid (const G4TessellatedSolid &solid)
 
- Protected Member Functions inherited from G4PseudoScene

Protected Attributes

G4PhysicalVolumeModelfpPVModel
 
G4int fDepth
 
vtkSmartPointer< vtkPoints > fpPoints
 
vtkSmartPointer< vtkUnstructuredGrid > fpGrid
 
vtkSmartPointer< vtkDoubleArray > fpPointColourValues
 
vtkSmartPointer< vtkDoubleArray > fpCellColourValues
 
vtkSmartPointer< vtkDoubleArray > fpPointColourIndices
 
vtkSmartPointer< vtkDoubleArray > fpCellColourIndices
 
std::map< std::size_t, double > fpColourMap
 
vtkSmartPointer< vtkDiscretizableColorTransferFunction > fpColourLUT
 
std::vector< G4ThreeVectorfpPointVector
 
std::map< std::size_t, std::size_t > fpPointMap
 
G4int iPoint = 0
 
G4int iCell = 0
 
G4int iCellAdd = 0
 
- Protected Attributes inherited from G4PseudoScene
const G4Transform3DfpCurrentObjectTransformation = nullptr
 
const G4VisAttributesfpVisAttributes = nullptr
 

Detailed Description

Definition at line 78 of file G4VtkUnstructuredGridPipeline.hh.

Constructor & Destructor Documentation

◆ PseudoSceneVtkBase()

G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::PseudoSceneVtkBase ( G4PhysicalVolumeModel * pvModel,
G4int depth,
vtkPoints * points,
vtkDoubleArray * pointColourValues,
vtkDoubleArray * cellColourValues,
vtkDoubleArray * pointColourIndices,
vtkDoubleArray * cellColourIndices,
vtkDiscretizableColorTransferFunction * colourLUT,
vtkUnstructuredGrid * unstructuredGrid )
inline

Definition at line 80 of file G4VtkUnstructuredGridPipeline.hh.

89 : fpPVModel(pvModel), fDepth(depth), fpPoints(points), fpGrid(unstructuredGrid),
90 fpPointColourValues(pointColourValues), fpCellColourValues(cellColourValues),
91 fpPointColourIndices(pointColourIndices), fpCellColourIndices(cellColourIndices),
92 fpColourLUT(colourLUT)
93 {}
vtkSmartPointer< vtkDiscretizableColorTransferFunction > fpColourLUT

Member Function Documentation

◆ AddSolid() [1/14]

void G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::AddSolid ( const G4Box & )
inlineoverrideprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 107 of file G4VtkUnstructuredGridPipeline.hh.

107{};

◆ AddSolid() [2/14]

void G4PseudoScene::AddSolid ( const G4Cons & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 64 of file G4PseudoScene.hh.

◆ AddSolid() [3/14]

void G4PseudoScene::AddSolid ( const G4Ellipsoid & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 73 of file G4PseudoScene.hh.

73{ProcessVolume (solid);}

◆ AddSolid() [4/14]

void G4PseudoScene::AddSolid ( const G4Orb & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 65 of file G4PseudoScene.hh.

65{ProcessVolume (solid);}

◆ AddSolid() [5/14]

void G4PseudoScene::AddSolid ( const G4Para & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 66 of file G4PseudoScene.hh.

66{ProcessVolume (solid);}

◆ AddSolid() [6/14]

void G4PseudoScene::AddSolid ( const G4Polycone & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 74 of file G4PseudoScene.hh.

74{ProcessVolume (solid);}

◆ AddSolid() [7/14]

void G4PseudoScene::AddSolid ( const G4Polyhedra & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 75 of file G4PseudoScene.hh.

75{ProcessVolume (solid);}

◆ AddSolid() [8/14]

void G4PseudoScene::AddSolid ( const G4Sphere & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 67 of file G4PseudoScene.hh.

67{ProcessVolume (solid);}

◆ AddSolid() [9/14]

void G4PseudoScene::AddSolid ( const G4TessellatedSolid & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 76 of file G4PseudoScene.hh.

76{ProcessVolume (solid);}

◆ AddSolid() [10/14]

void G4PseudoScene::AddSolid ( const G4Torus & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 68 of file G4PseudoScene.hh.

68{ProcessVolume (solid);}

◆ AddSolid() [11/14]

void G4PseudoScene::AddSolid ( const G4Trap & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 69 of file G4PseudoScene.hh.

69{ProcessVolume (solid);}

◆ AddSolid() [12/14]

void G4PseudoScene::AddSolid ( const G4Trd & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 70 of file G4PseudoScene.hh.

70{ProcessVolume (solid);}

◆ AddSolid() [13/14]

void G4PseudoScene::AddSolid ( const G4Tubs & solid)
inlineprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 71 of file G4PseudoScene.hh.

71{ProcessVolume (solid);}

◆ AddSolid() [14/14]

void G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::AddSolid ( const G4VSolid & )
inlineoverrideprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 106 of file G4VtkUnstructuredGridPipeline.hh.

106{};

◆ DumpColourMap()

void G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::DumpColourMap ( )
inline

Definition at line 98 of file G4VtkUnstructuredGridPipeline.hh.

98 {
99 for(auto i : fpColourMap) {
100 G4cout << i.first << " " << i.second << G4endl;
101 }
102 }
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout

◆ GetNumberOfAddedCells()

G4int G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::GetNumberOfAddedCells ( )
inline

◆ GetNumberOfCells()

G4int G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::GetNumberOfCells ( )
inline

◆ GetNumberOfPoints()

G4int G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::GetNumberOfPoints ( )
inline

◆ ProcessVolume()

void G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::ProcessVolume ( const G4VSolid & )
inlineoverrideprotectedvirtual

Reimplemented from G4PseudoScene.

Definition at line 108 of file G4VtkUnstructuredGridPipeline.hh.

108 {
109 // Do nothing if uninteresting solids found, e.g., the container if not marked invisible.
110 }

Member Data Documentation

◆ fDepth

G4int G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fDepth
protected

Definition at line 112 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpCellColourIndices

vtkSmartPointer<vtkDoubleArray> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpCellColourIndices
protected

Definition at line 118 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpCellColourValues

vtkSmartPointer<vtkDoubleArray> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpCellColourValues
protected

Definition at line 116 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpColourLUT

vtkSmartPointer<vtkDiscretizableColorTransferFunction> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpColourLUT
protected

Definition at line 120 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpColourMap

std::map<std::size_t,double> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpColourMap
protected

Definition at line 119 of file G4VtkUnstructuredGridPipeline.hh.

Referenced by DumpColourMap().

◆ fpGrid

vtkSmartPointer<vtkUnstructuredGrid> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpGrid
protected

Definition at line 114 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpPointColourIndices

vtkSmartPointer<vtkDoubleArray> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpPointColourIndices
protected

Definition at line 117 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpPointColourValues

vtkSmartPointer<vtkDoubleArray> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpPointColourValues
protected

Definition at line 115 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpPointMap

std::map<std::size_t, std::size_t> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpPointMap
protected

Definition at line 122 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpPoints

vtkSmartPointer<vtkPoints> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpPoints
protected

Definition at line 113 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpPointVector

std::vector<G4ThreeVector> G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpPointVector
protected

Definition at line 121 of file G4VtkUnstructuredGridPipeline.hh.

◆ fpPVModel

G4PhysicalVolumeModel* G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::fpPVModel
protected

Definition at line 111 of file G4VtkUnstructuredGridPipeline.hh.

◆ iCell

G4int G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::iCell = 0
protected

Definition at line 124 of file G4VtkUnstructuredGridPipeline.hh.

Referenced by GetNumberOfCells().

◆ iCellAdd

G4int G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::iCellAdd = 0
protected

Definition at line 125 of file G4VtkUnstructuredGridPipeline.hh.

Referenced by GetNumberOfAddedCells().

◆ iPoint

G4int G4VtkUnstructuredGridPipeline::PseudoSceneVtkBase::iPoint = 0
protected

Definition at line 123 of file G4VtkUnstructuredGridPipeline.hh.

Referenced by GetNumberOfPoints().


The documentation for this class was generated from the following file: