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

#include <G4VtkSceneHandler.hh>

+ Inheritance diagram for G4VtkSceneHandler:

Public Member Functions

 G4VtkSceneHandler (G4VGraphicsSystem &system, const G4String &name)
 
 ~G4VtkSceneHandler () override=default
 
void AddPrimitive (const G4Polyline &) override
 
void AddPrimitive (const G4Text &) override
 
void AddPrimitive (const G4Circle &) override
 
void AddPrimitive (const G4Square &) override
 
void AddPrimitive (const G4Polyhedron &) override
 
void AddPrimitive (const G4Polymarker &polymarker) override
 
void AddSolid (const G4Box &box) override
 
void AddCompound (const G4Mesh &mesh) override
 
void Modified ()
 
void ClearStore () override
 
void ClearTransientStore () override
 
G4VtkVisContext MakeDefaultVisContext ()
 
G4VtkStoreGetStore ()
 
G4VtkStoreGetTransientStore ()
 
virtual void Print ()
 
void SetPolyhedronPipeline (const G4String &str)
 
virtual void AddPrimitive (const G4Plotter &)
 
virtual void AddSolid (const G4Cons &)
 
virtual void AddSolid (const G4Orb &)
 
virtual void AddSolid (const G4Para &)
 
virtual void AddSolid (const G4Sphere &)
 
virtual void AddSolid (const G4Torus &)
 
virtual void AddSolid (const G4Trap &)
 
virtual void AddSolid (const G4Trd &)
 
virtual void AddSolid (const G4Tubs &)
 
virtual void AddSolid (const G4Ellipsoid &)
 
virtual void AddSolid (const G4Polycone &)
 
virtual void AddSolid (const G4Polyhedra &)
 
virtual void AddSolid (const G4TessellatedSolid &)
 
virtual void AddSolid (const G4VSolid &)
 
virtual void AddCompound (const G4VTrajectory &)
 
virtual void AddCompound (const G4VHit &)
 
virtual void AddCompound (const G4VDigi &)
 
virtual void AddCompound (const G4THitsMap< G4double > &)
 
virtual void AddCompound (const G4THitsMap< G4StatDouble > &)
 
- Public Member Functions inherited from G4VSceneHandler
 G4VSceneHandler (G4VGraphicsSystem &system, G4int id, const G4String &name="")
 
virtual ~G4VSceneHandler ()
 
virtual void PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &)
 
virtual void PostAddSolid ()
 
virtual void BeginModeling ()
 
virtual void EndModeling ()
 
virtual void BeginPrimitives (const G4Transform3D &objectTransformation=G4Transform3D())
 
virtual void EndPrimitives ()
 
virtual void BeginPrimitives2D (const G4Transform3D &objectTransformation=G4Transform3D())
 
virtual void EndPrimitives2D ()
 
virtual const G4VisExtentGetExtent () const
 
const G4StringGetName () const
 
G4int GetSceneHandlerId () const
 
G4int GetViewCount () const
 
G4VGraphicsSystemGetGraphicsSystem () const
 
G4SceneGetScene () const
 
const G4ViewerListGetViewerList () const
 
G4VModelGetModel () const
 
G4VViewerGetCurrentViewer () const
 
G4bool GetMarkForClearingTransientStore () const
 
G4bool IsReadyForTransients () const
 
G4bool GetTransientsDrawnThisEvent () const
 
G4bool GetTransientsDrawnThisRun () const
 
const G4Transform3DGetObjectTransformation () const
 
void SetName (const G4String &)
 
void SetCurrentViewer (G4VViewer *)
 
virtual void SetScene (G4Scene *)
 
G4ViewerListSetViewerList ()
 
void SetModel (G4VModel *)
 
void SetMarkForClearingTransientStore (G4bool)
 
void SetTransientsDrawnThisEvent (G4bool)
 
void SetTransientsDrawnThisRun (G4bool)
 
void SetObjectTransformation (const G4Transform3D &)
 
const G4ColourGetColour ()
 
const G4ColourGetColor ()
 
const G4ColourGetColour (const G4Visible &)
 
const G4ColourGetColor (const G4Visible &)
 
const G4ColourGetTextColour (const G4Text &)
 
const G4ColourGetTextColor (const G4Text &)
 
G4double GetLineWidth (const G4VisAttributes *)
 
G4ViewParameters::DrawingStyle GetDrawingStyle (const G4VisAttributes *)
 
G4int GetNumberOfCloudPoints (const G4VisAttributes *) const
 
G4bool GetAuxEdgeVisible (const G4VisAttributes *)
 
G4int GetNoOfSides (const G4VisAttributes *)
 
G4double GetMarkerSize (const G4VMarker &, MarkerSizeType &)
 
G4double GetMarkerDiameter (const G4VMarker &, MarkerSizeType &)
 
G4double GetMarkerRadius (const G4VMarker &, MarkerSizeType &)
 
G4ModelingParametersCreateModelingParameters ()
 
void DrawEvent (const G4Event *)
 
void DrawEndOfRunModels ()
 
template<class T >
void AddSolidT (const T &solid)
 
template<class T >
void AddSolidWithAuxiliaryEdges (const T &solid)
 
G4int IncrementViewCount ()
 
void AddViewerToList (G4VViewer *pView)
 
void RemoveViewerFromList (G4VViewer *pView)
 
- Public Member Functions inherited from G4VGraphicsScene
 G4VGraphicsScene ()
 
virtual ~G4VGraphicsScene ()
 

Protected Attributes

G4VtkStore store = G4VtkStore("perm")
 
G4VtkStore transientStore = G4VtkStore("trans")
 
G4String polyhedronPipelineType
 
- Protected Attributes inherited from G4VSceneHandler
G4VGraphicsSystemfSystem
 
const G4int fSceneHandlerId
 
G4String fName
 
G4int fViewCount
 
G4ViewerList fViewerList
 
G4VViewerfpViewer
 
G4ScenefpScene
 
G4bool fMarkForClearingTransientStore
 
G4bool fReadyForTransients
 
G4bool fTransientsDrawnThisEvent
 
G4bool fTransientsDrawnThisRun
 
G4bool fProcessingSolid
 
G4bool fProcessing2D
 
G4VModelfpModel
 
G4Transform3D fObjectTransformation
 
G4int fNestingDepth
 
const G4VisAttributesfpVisAttribs
 
const G4Transform3D fIdentityTransformation
 

Static Protected Attributes

static G4int fSceneIdCount = 0
 

Friends

class G4VtkViewer
 

Additional Inherited Members

- Public Types inherited from G4VSceneHandler
enum  MarkerSizeType { world , screen }
 
- Protected Member Functions inherited from G4VSceneHandler
virtual void ProcessScene ()
 
virtual void RequestPrimitives (const G4VSolid &solid)
 
virtual G4DisplacedSolidCreateSectionSolid ()
 
virtual G4DisplacedSolidCreateCutawaySolid ()
 
void LoadAtts (const G4Visible &, G4AttHolder *)
 
void StandardSpecialMeshRendering (const G4Mesh &)
 
void Draw3DRectMeshAsDots (const G4Mesh &)
 
void Draw3DRectMeshAsSurfaces (const G4Mesh &)
 
void DrawTetMeshAsDots (const G4Mesh &)
 
void DrawTetMeshAsSurfaces (const G4Mesh &)
 
G4ThreeVector GetPointInBox (const G4ThreeVector &pos, G4double halfX, G4double halfY, G4double halfZ) const
 
G4ThreeVector GetPointInTet (const std::vector< G4ThreeVector > &vertices) const
 

Detailed Description

Definition at line 82 of file G4VtkSceneHandler.hh.

Constructor & Destructor Documentation

◆ G4VtkSceneHandler()

G4VtkSceneHandler::G4VtkSceneHandler ( G4VGraphicsSystem & system,
const G4String & name )

Definition at line 64 of file G4VtkSceneHandler.cc.

66{}
G4VSceneHandler(G4VGraphicsSystem &system, G4int id, const G4String &name="")

◆ ~G4VtkSceneHandler()

G4VtkSceneHandler::~G4VtkSceneHandler ( )
overridedefault

Member Function Documentation

◆ AddCompound() [1/6]

void G4VtkSceneHandler::AddCompound ( const G4Mesh & mesh)
overridevirtual

Reimplemented from G4VSceneHandler.

Definition at line 258 of file G4VtkSceneHandler.cc.

259{
260#ifdef G4VTKDEBUG
261 G4cout << "G4VtkSceneHandler::AddCompound> mesh type " << mesh.GetMeshType() << " "
263#endif
264
266 {
267 auto vc = MakeDefaultVisContext();
268
270 transientStore.AddCompound(mesh, vc);
271 else
272 store.AddCompound(mesh, vc);
273 }
274 else {
276 }
277}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
MeshType GetMeshType() const
Definition G4Mesh.hh:75
void StandardSpecialMeshRendering(const G4Mesh &)
const G4ViewParameters & GetViewParameters() const
SMROption GetSpecialMeshRenderingOption() const
G4VtkVisContext MakeDefaultVisContext()
void AddCompound(const G4Mesh &mesh, const G4VtkVisContext &vc)

◆ AddCompound() [2/6]

void G4VSceneHandler::AddCompound ( const G4THitsMap< G4double > & hits)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 131 of file G4VSceneHandler.cc.

347 {
348 using MeshScoreMap = G4VScoringMesh::MeshScoreMap;
349 //G4cout << "AddCompound: hits: " << &hits << G4endl;
350 G4bool scoreMapHits = false;
352 if (scoringManager) {
353 std::size_t nMeshes = scoringManager->GetNumberOfMesh();
354 for (std::size_t iMesh = 0; iMesh < nMeshes; ++iMesh) {
355 G4VScoringMesh* mesh = scoringManager->GetMesh((G4int)iMesh);
356 if (mesh && mesh->IsActive()) {
357 MeshScoreMap scoreMap = mesh->GetScoreMap();
358 const G4String& mapNam = const_cast<G4THitsMap<G4double>&>(hits).GetName();
359 for(MeshScoreMap::const_iterator i = scoreMap.cbegin();
360 i != scoreMap.cend(); ++i) {
361 const G4String& scoreMapName = i->first;
362 if (scoreMapName == mapNam) {
363 G4DefaultLinearColorMap colorMap("G4VSceneHandlerColorMap");
364 scoreMapHits = true;
365 mesh->DrawMesh(scoreMapName, &colorMap);
366 }
367 }
368 }
369 }
370 }
371 if (scoreMapHits) {
372 static G4bool first = true;
373 if (first) {
374 first = false;
375 G4cout <<
376 "Scoring map drawn with default parameters."
377 "\n To get gMocren file for gMocren browser:"
378 "\n /vis/open gMocrenFile"
379 "\n /vis/viewer/flush"
380 "\n Many other options available with /score/draw... commands."
381 "\n You might want to \"/vis/viewer/set/autoRefresh false\"."
382 << G4endl;
383 }
384 } else { // Not score map hits. Just call DrawAllHits.
385 // Cast away const because DrawAllHits is non-const!!!!
386 const_cast<G4THitsMap<G4double>&>(hits).DrawAllHits();
387 }
388}
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4VScoringMesh * GetMesh(G4int i) const
size_t GetNumberOfMesh() const
static G4ScoringManager * GetScoringManagerIfExist()
const G4String & GetName() const
G4bool IsActive() const
std::map< G4String, RunScore * > MeshScoreMap
void DrawMesh(const G4String &psName, G4VScoreColorMap *colorMap, G4int axflg=111)
MeshScoreMap GetScoreMap() const

◆ AddCompound() [3/6]

void G4VSceneHandler::AddCompound ( const G4THitsMap< G4StatDouble > & hits)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 132 of file G4VSceneHandler.cc.

390 {
391 using MeshScoreMap = G4VScoringMesh::MeshScoreMap;
392 //G4cout << "AddCompound: hits: " << &hits << G4endl;
393 G4bool scoreMapHits = false;
395 if (scoringManager) {
396 std::size_t nMeshes = scoringManager->GetNumberOfMesh();
397 for (std::size_t iMesh = 0; iMesh < nMeshes; ++iMesh) {
398 G4VScoringMesh* mesh = scoringManager->GetMesh((G4int)iMesh);
399 if (mesh && mesh->IsActive()) {
400 MeshScoreMap scoreMap = mesh->GetScoreMap();
401 for(MeshScoreMap::const_iterator i = scoreMap.cbegin();
402 i != scoreMap.cend(); ++i) {
403 const G4String& scoreMapName = i->first;
404 const G4THitsMap<G4StatDouble>* foundHits = i->second;
405 if (foundHits == &hits) {
406 G4DefaultLinearColorMap colorMap("G4VSceneHandlerColorMap");
407 scoreMapHits = true;
408 mesh->DrawMesh(scoreMapName, &colorMap);
409 }
410 }
411 }
412 }
413 }
414 if (scoreMapHits) {
415 static G4bool first = true;
416 if (first) {
417 first = false;
418 G4cout <<
419 "Scoring map drawn with default parameters."
420 "\n To get gMocren file for gMocren browser:"
421 "\n /vis/open gMocrenFile"
422 "\n /vis/viewer/flush"
423 "\n Many other options available with /score/draw... commands."
424 "\n You might want to \"/vis/viewer/set/autoRefresh false\"."
425 << G4endl;
426 }
427 } else { // Not score map hits. Just call DrawAllHits.
428 // Cast away const because DrawAllHits is non-const!!!!
429 const_cast<G4THitsMap<G4StatDouble>&>(hits).DrawAllHits();
430 }
431}

◆ AddCompound() [4/6]

void G4VSceneHandler::AddCompound ( const G4VDigi & digi)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 130 of file G4VSceneHandler.cc.

342 {
343 // Cast away const because Draw is non-const!!!!
344 const_cast<G4VDigi&>(digi).Draw();
345}

◆ AddCompound() [5/6]

void G4VSceneHandler::AddCompound ( const G4VHit & hit)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 129 of file G4VSceneHandler.cc.

337 {
338 // Cast away const because Draw is non-const!!!!
339 const_cast<G4VHit&>(hit).Draw();
340}

◆ AddCompound() [6/6]

void G4VSceneHandler::AddCompound ( const G4VTrajectory & traj)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 128 of file G4VSceneHandler.cc.

325 {
326 G4TrajectoriesModel* trajectoriesModel =
327 dynamic_cast<G4TrajectoriesModel*>(fpModel);
328 if (trajectoriesModel)
329 traj.DrawTrajectory();
330 else {
332 ("G4VSceneHandler::AddCompound(const G4VTrajectory&)",
333 "visman0105", FatalException, "Not a G4TrajectoriesModel.");
334 }
335}
@ FatalException
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
virtual void DrawTrajectory() const

◆ AddPrimitive() [1/7]

void G4VtkSceneHandler::AddPrimitive ( const G4Circle & circle)
overridevirtual

Implements G4VSceneHandler.

Definition at line 95 of file G4VtkSceneHandler.cc.

96{
97#ifdef G4VTKDEBUG
98 G4cout << "G4VtkSceneHandler::AddPrimitive(const G4Circle& circle)" << G4endl;
99#endif
100
101 auto vc = MakeDefaultVisContext();
103 vc.fSize = GetMarkerSize(circle, sizeType);
104
106 transientStore.AddPrimitive(circle, vc);
107 else
108 store.AddPrimitive(circle, vc);
109}
G4double GetMarkerSize(const G4VMarker &, MarkerSizeType &)
void AddPrimitive(const G4Polyline &polyline, const G4VtkVisContext &vc)

◆ AddPrimitive() [2/7]

void G4VSceneHandler::AddPrimitive ( const G4Plotter & )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 193 of file G4VSceneHandler.cc.

512 {
513 G4warn << "WARNING: Plotter not implemented for " << fSystem.GetName() << G4endl;
514 G4warn << " Open a plotter-aware graphics system or remove plotter with" << G4endl;
515 G4warn << " /vis/scene/removeModel Plotter" << G4endl;
516}
#define G4warn
Definition G4Scene.cc:41
const G4String & GetName() const
G4VGraphicsSystem & fSystem

◆ AddPrimitive() [3/7]

void G4VtkSceneHandler::AddPrimitive ( const G4Polyhedron & polyhedron)
overridevirtual

Implements G4VSceneHandler.

Definition at line 127 of file G4VtkSceneHandler.cc.

128{
129#ifdef G4VTKDEBUG
130 G4cout << "G4VtkSceneHandler::AddPrimitive(const G4Polyhedron& polyhedron)" << G4endl;
131#endif
132
133 auto vc = MakeDefaultVisContext();
134 auto visAtt = vc.fViewer->GetApplicableVisAttributes(polyhedron.GetVisAttributes());
135 auto colour = visAtt->GetColour();
136
137 vc.fDrawingStyle = GetDrawingStyle(visAtt);
138 vc.alpha = colour.GetAlpha();
139 vc.red = colour.GetRed();
140 vc.green = colour.GetGreen();
141 vc.blue = colour.GetBlue();
142
143 auto pPVModel = dynamic_cast<G4PhysicalVolumeModel*>(fpModel);
144 if (pPVModel != nullptr) {
145 vc.fDepth = pPVModel->GetCurrentDepth();
146 vc.fDescription = pPVModel->GetCurrentDescription();
147 }
148
150 if (polyhedronPipelineType == "tensor")
152 else if (polyhedronPipelineType == "append")
153 transientStore.AddPrimitiveAppend(polyhedron, vc);
154 else if (polyhedronPipelineType == "bake")
156 else if (polyhedronPipelineType == "separate")
157 transientStore.AddPrimitiveSeparate(polyhedron, vc);
158 }
159 else {
160 if (polyhedronPipelineType == "tensor")
161 store.AddPrimitiveTensorGlyph(polyhedron, vc);
162 else if (polyhedronPipelineType == "append")
163 store.AddPrimitiveAppend(polyhedron, vc);
164 else if (polyhedronPipelineType == "bake")
165 store.AddPrimitiveTransformBake(polyhedron, vc);
166 else if (polyhedronPipelineType == "separate")
167 store.AddPrimitiveSeparate(polyhedron, vc);
168 }
169}
G4ViewParameters::DrawingStyle GetDrawingStyle(const G4VisAttributes *)
const G4VisAttributes * GetVisAttributes() const
void AddPrimitiveSeparate(const G4Polyhedron &polyhedron, const G4VtkVisContext &vc)
void AddPrimitiveTensorGlyph(const G4Polyhedron &polyhedron, const G4VtkVisContext &vc)
void AddPrimitiveTransformBake(const G4Polyhedron &polyhedron, const G4VtkVisContext &vc)
void AddPrimitiveAppend(const G4Polyhedron &polyhedron, const G4VtkVisContext &vc)

◆ AddPrimitive() [4/7]

void G4VtkSceneHandler::AddPrimitive ( const G4Polyline & polyline)
overridevirtual

Implements G4VSceneHandler.

Definition at line 68 of file G4VtkSceneHandler.cc.

69{
70#ifdef G4VTKDEBUG
71 G4cout << "G4VtkSceneHandler::AddPrimitive(const G4Polyline&)" << G4endl;
72#endif
73 auto vc = MakeDefaultVisContext();
74
76 transientStore.AddPrimitive(polyline, vc);
77 else
78 store.AddPrimitive(polyline, vc);
79}

Referenced by G4VtkQtSceneHandler::AddPrimitive(), G4VtkQtSceneHandler::AddPrimitive(), G4VtkQtSceneHandler::AddPrimitive(), G4VtkQtSceneHandler::AddPrimitive(), and G4VtkQtSceneHandler::AddPrimitive().

◆ AddPrimitive() [5/7]

void G4VtkSceneHandler::AddPrimitive ( const G4Polymarker & polymarker)
inlineoverridevirtual

Reimplemented from G4VSceneHandler.

Definition at line 101 of file G4VtkSceneHandler.hh.

102 {
104 }
virtual void AddPrimitive(const G4Polyline &)=0

◆ AddPrimitive() [6/7]

void G4VtkSceneHandler::AddPrimitive ( const G4Square & square)
overridevirtual

Implements G4VSceneHandler.

Definition at line 111 of file G4VtkSceneHandler.cc.

112{
113#ifdef G4VTKDEBUG
114 G4cout << "G4VtkSceneHandler::AddPrimitive(const G4Square& square)" << G4endl;
115#endif
116
117 auto vc = MakeDefaultVisContext();
119 vc.fSize = GetMarkerSize(square, sizeType);
120
122 transientStore.AddPrimitive(square, vc);
123 else
124 store.AddPrimitive(square, vc);
125}

◆ AddPrimitive() [7/7]

void G4VtkSceneHandler::AddPrimitive ( const G4Text & text)
overridevirtual

Implements G4VSceneHandler.

Definition at line 81 of file G4VtkSceneHandler.cc.

82{
83#ifdef G4VTKDEBUG
84 G4cout << "G4VtkSceneHandler::AddPrimitive(const G4Text& text)" << G4endl;
85#endif
86
87 auto vc = MakeDefaultVisContext();
88
91 else
92 store.AddPrimitive(text, vc);
93}

◆ AddSolid() [1/14]

void G4VtkSceneHandler::AddSolid ( const G4Box & box)
overridevirtual

Reimplemented from G4VSceneHandler.

Definition at line 214 of file G4VtkSceneHandler.cc.

215{
217
218 return;
219
220 const G4VModel* pv_model = GetModel();
221 if (pv_model == nullptr) {
222 return;
223 }
224
225 auto pPVModel = dynamic_cast<G4PhysicalVolumeModel*>(fpModel);
226 if (pPVModel == nullptr) {
227 return;
228 }
229
230 //-- debug information
231#ifdef G4VTKDEBUG
232 G4VPhysicalVolume* pv = pPVModel->GetCurrentPV();
234 G4cout << "name=" << box.GetName() << " volumeType=" << pv->VolumeType()
235 << " pvName=" << pv->GetName() << " lvName=" << lv->GetName()
236 << " multiplicity=" << pv->GetMultiplicity() << " isparametrised=" << pv->IsParameterised()
237 << " isreplicated=" << pv->IsReplicated()
238 << " parametrisation=" << pv->GetParameterisation()
239 << G4endl
240
241 G4Material* mat = pPVModel->GetCurrentMaterial();
242 G4String name = mat->GetName();
243 G4double dens = mat->GetDensity() / (g / cm3);
244 G4int copyNo = pPVModel->GetCurrentPV()->GetCopyNo();
245 G4int depth = pPVModel->GetCurrentDepth();
246 G4cout << " name : " << box.GetName() << G4endl;
247 G4cout << " copy no.: " << copyNo << G4endl;
248 G4cout << " depth : " << depth << G4endl;
249 G4cout << " density : " << dens << " [g/cm3]" << G4endl;
250 G4cout << " location: " << pPVModel->GetCurrentPV()->GetObjectTranslation() << G4endl;
251 G4cout << " Multiplicity : " << pPVModel->GetCurrentPV()->GetMultiplicity() << G4endl;
252 G4cout << " Is replicated? : " << pPVModel->GetCurrentPV()->IsReplicated() << G4endl;
253 G4cout << " Is parameterised? : " << pPVModel->GetCurrentPV()->IsParameterised() << G4endl;
254 G4cout << " top phys. vol. name : " << pPVModel->GetTopPhysicalVolume()->GetName() << G4endl;
255#endif
256}
double G4double
Definition G4Types.hh:83
const G4String & GetName() const
virtual G4bool IsReplicated() const =0
virtual EVolume VolumeType() const =0
G4LogicalVolume * GetLogicalVolume() const
virtual G4int GetMultiplicity() const
const G4String & GetName() const
virtual G4VPVParameterisation * GetParameterisation() const =0
virtual G4bool IsParameterised() const =0
G4VModel * GetModel() const
virtual void AddSolid(const G4Box &)
G4String GetName() const
const char * name(G4int ptype)

◆ AddSolid() [2/14]

void G4VSceneHandler::AddSolid ( const G4Cons & cons)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 100 of file G4VSceneHandler.cc.

273 {
274 AddSolidT (cons);
275}
void AddSolidT(const T &solid)

◆ AddSolid() [3/14]

void G4VSceneHandler::AddSolid ( const G4Ellipsoid & ellipsoid)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 110 of file G4VSceneHandler.cc.

305 {
306 AddSolidWithAuxiliaryEdges (ellipsoid);
307}
void AddSolidWithAuxiliaryEdges(const T &solid)

◆ AddSolid() [4/14]

void G4VSceneHandler::AddSolid ( const G4Orb & orb)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 101 of file G4VSceneHandler.cc.

277 {
279}

◆ AddSolid() [5/14]

void G4VSceneHandler::AddSolid ( const G4Para & para)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 102 of file G4VSceneHandler.cc.

281 {
282 AddSolidT (para);
283}

◆ AddSolid() [6/14]

void G4VSceneHandler::AddSolid ( const G4Polycone & polycone)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 111 of file G4VSceneHandler.cc.

309 {
310 AddSolidT (polycone);
311}

◆ AddSolid() [7/14]

void G4VSceneHandler::AddSolid ( const G4Polyhedra & polyhedra)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 112 of file G4VSceneHandler.cc.

313 {
314 AddSolidT (polyhedra);
315}

◆ AddSolid() [8/14]

void G4VSceneHandler::AddSolid ( const G4Sphere & sphere)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 103 of file G4VSceneHandler.cc.

285 {
287}

◆ AddSolid() [9/14]

void G4VSceneHandler::AddSolid ( const G4TessellatedSolid & tess)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 113 of file G4VSceneHandler.cc.

317 {
318 AddSolidT (tess);
319}

◆ AddSolid() [10/14]

void G4VSceneHandler::AddSolid ( const G4Torus & torus)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 104 of file G4VSceneHandler.cc.

289 {
291}

◆ AddSolid() [11/14]

void G4VSceneHandler::AddSolid ( const G4Trap & trap)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 105 of file G4VSceneHandler.cc.

293 {
294 AddSolidT (trap);
295}

◆ AddSolid() [12/14]

void G4VSceneHandler::AddSolid ( const G4Trd & trd)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 106 of file G4VSceneHandler.cc.

297 {
298 AddSolidT (trd);
299}

◆ AddSolid() [13/14]

void G4VSceneHandler::AddSolid ( const G4Tubs & tubs)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 107 of file G4VSceneHandler.cc.

301 {
302 AddSolidT (tubs);
303}

◆ AddSolid() [14/14]

void G4VSceneHandler::AddSolid ( const G4VSolid & solid)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 116 of file G4VSceneHandler.cc.

321 {
322 AddSolidT (solid);
323}

◆ ClearStore()

void G4VtkSceneHandler::ClearStore ( )
overridevirtual

Reimplemented from G4VSceneHandler.

Definition at line 181 of file G4VtkSceneHandler.cc.

182{
183#ifdef G4VTKDEBUG
184 G4cout << "G4VtkSceneHandler::ClearStore()" << G4endl;
185#endif
186 store.Clear();
187}
void Clear()

◆ ClearTransientStore()

void G4VtkSceneHandler::ClearTransientStore ( )
overridevirtual

Reimplemented from G4VSceneHandler.

Definition at line 189 of file G4VtkSceneHandler.cc.

190{
191#ifdef G4VTKDEBUG
192 G4cout << "G4VtkSceneHandler::ClearTransientStore()" << G4endl;
193#endif
195}

◆ GetStore()

G4VtkStore & G4VtkSceneHandler::GetStore ( )
inline

Definition at line 116 of file G4VtkSceneHandler.hh.

116{ return store; }

◆ GetTransientStore()

G4VtkStore & G4VtkSceneHandler::GetTransientStore ( )
inline

Definition at line 117 of file G4VtkSceneHandler.hh.

117{ return transientStore; }

Referenced by G4VtkMessenger::SetNewValue().

◆ MakeDefaultVisContext()

G4VtkVisContext G4VtkSceneHandler::MakeDefaultVisContext ( )

Definition at line 197 of file G4VtkSceneHandler.cc.

198{
201
202 if (fpVisAttribs != nullptr) {
204 vc.red = c.GetRed();
205 vc.green = c.GetGreen();
206 vc.blue = c.GetBlue();
207 vc.alpha = c.GetAlpha();
208 vc.fDrawingStyle = fpViewer->GetViewParameters().GetDrawingStyle();
209 }
210
211 return vc;
212}
G4double GetBlue() const
Definition G4Colour.hh:154
G4double GetAlpha() const
Definition G4Colour.hh:155
G4double GetRed() const
Definition G4Colour.hh:152
G4double GetGreen() const
Definition G4Colour.hh:153
G4Transform3D fObjectTransformation
const G4VisAttributes * fpVisAttribs
DrawingStyle GetDrawingStyle() const
const G4Colour & GetColour() const

Referenced by AddCompound(), AddPrimitive(), AddPrimitive(), AddPrimitive(), AddPrimitive(), and AddPrimitive().

◆ Modified()

void G4VtkSceneHandler::Modified ( )

Definition at line 171 of file G4VtkSceneHandler.cc.

172{
173#ifdef G4VTKDEBUG
174 G4cout << "G4VtkSceneHandler::Modified()" << G4endl;
175#endif
176
177 store.Modified();
179}
void Modified()
Definition G4VtkStore.cc:90

Referenced by G4VtkOffscreenViewer::FinishView(), G4VtkQtViewer::FinishView(), and G4VtkViewer::FinishView().

◆ Print()

void G4VtkSceneHandler::Print ( )
virtual

Definition at line 279 of file G4VtkSceneHandler.cc.

279{}

◆ SetPolyhedronPipeline()

void G4VtkSceneHandler::SetPolyhedronPipeline ( const G4String & str)

Definition at line 281 of file G4VtkSceneHandler.cc.

282{
284}

Referenced by G4VtkViewer::SetPolyhedronPipeline().

Friends And Related Symbol Documentation

◆ G4VtkViewer

friend class G4VtkViewer
friend

Definition at line 132 of file G4VtkSceneHandler.hh.

Member Data Documentation

◆ fSceneIdCount

G4int G4VtkSceneHandler::fSceneIdCount = 0
staticprotected

Definition at line 124 of file G4VtkSceneHandler.hh.

◆ polyhedronPipelineType

G4String G4VtkSceneHandler::polyhedronPipelineType
protected

Definition at line 129 of file G4VtkSceneHandler.hh.

Referenced by AddPrimitive(), and SetPolyhedronPipeline().

◆ store

G4VtkStore G4VtkSceneHandler::store = G4VtkStore("perm")
protected

◆ transientStore

G4VtkStore G4VtkSceneHandler::transientStore = G4VtkStore("trans")
protected

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