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

#include <G4BoundingExtentScene.hh>

+ Inheritance diagram for G4BoundingExtentScene:

Public Member Functions

 G4BoundingExtentScene (G4VModel *pModel=0)
 
virtual ~G4BoundingExtentScene ()
 
const G4VisExtentGetExtent () const
 
const G4VisExtentGetBoundingExtent () const
 
void ResetBoundingExtent ()
 
void AccrueBoundingExtent (const G4VisExtent &)
 
- Public Member Functions inherited from G4PseudoScene
 G4PseudoScene ()=default
 
virtual ~G4PseudoScene ()=default
 
void PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &visAttributes)
 
void PostAddSolid ()
 
void AddSolid (const G4Box &solid)
 
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)
 
void AddSolid (const G4VSolid &solid)
 
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4PseudoScene
- Protected Attributes inherited from G4PseudoScene
const G4Transform3DfpCurrentObjectTransformation = nullptr
 
const G4VisAttributesfpVisAttributes = nullptr
 

Detailed Description

Definition at line 40 of file G4BoundingExtentScene.hh.

Constructor & Destructor Documentation

◆ G4BoundingExtentScene()

G4BoundingExtentScene::G4BoundingExtentScene ( G4VModel * pModel = 0)

Definition at line 37 of file G4BoundingExtentScene.cc.

38:fpModel(pModel)
39{}

◆ ~G4BoundingExtentScene()

G4BoundingExtentScene::~G4BoundingExtentScene ( )
virtual

Definition at line 41 of file G4BoundingExtentScene.cc.

41{}

Member Function Documentation

◆ AccrueBoundingExtent()

void G4BoundingExtentScene::AccrueBoundingExtent ( const G4VisExtent & newExtent)

Definition at line 62 of file G4BoundingExtentScene.cc.

63{
64
65 if (fExtent == G4VisExtent::GetNullExtent()) { // First time.
66
67 fExtent = newExtent;
68
69 } else {
70
71 if (newExtent.GetXmin() < fExtent.GetXmin()) fExtent.SetXmin(newExtent.GetXmin());
72 if (newExtent.GetYmin() < fExtent.GetYmin()) fExtent.SetYmin(newExtent.GetYmin());
73 if (newExtent.GetZmin() < fExtent.GetZmin()) fExtent.SetZmin(newExtent.GetZmin());
74 if (newExtent.GetXmax() > fExtent.GetXmax()) fExtent.SetXmax(newExtent.GetXmax());
75 if (newExtent.GetYmax() > fExtent.GetYmax()) fExtent.SetYmax(newExtent.GetYmax());
76 if (newExtent.GetZmax() > fExtent.GetZmax()) fExtent.SetZmax(newExtent.GetZmax());
77
78 }
79}
static const G4VisExtent & GetNullExtent()
void SetYmin(G4double ymin)
G4double GetYmin() const
G4double GetXmax() const
void SetYmax(G4double ymax)
void SetXmax(G4double xmax)
void SetXmin(G4double xmin)
void SetZmax(G4double zmax)
G4double GetYmax() const
G4double GetZmax() const
G4double GetZmin() const
G4double GetXmin() const
void SetZmin(G4double zmin)

Referenced by G4Scene::CalculateExtent(), and G4VisCommandSetVolumeForField::SetNewValue().

◆ GetBoundingExtent()

const G4VisExtent & G4BoundingExtentScene::GetBoundingExtent ( ) const
inline

Definition at line 50 of file G4BoundingExtentScene.hh.

51 {return fExtent;}

Referenced by G4PhysicalVolumeModel::CalculateExtent(), and G4Scene::CalculateExtent().

◆ GetExtent()

const G4VisExtent & G4BoundingExtentScene::GetExtent ( ) const
inlinevirtual

Reimplemented from G4VGraphicsScene.

Definition at line 48 of file G4BoundingExtentScene.hh.

49 {return fExtent;}

Referenced by G4VisCommandSetVolumeForField::SetNewValue().

◆ ResetBoundingExtent()

void G4BoundingExtentScene::ResetBoundingExtent ( )

Definition at line 56 of file G4BoundingExtentScene.cc.

57{
60}
const G4Transform3D * fpCurrentObjectTransformation

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