Geant4 10.7.0
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 ()
 
virtual ~G4PseudoScene ()
 
void PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &)
 
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 BeginPrimitives (const G4Transform3D &)
 
void EndPrimitives ()
 
void BeginPrimitives2D (const G4Transform3D &)
 
void EndPrimitives2D ()
 
void AddPrimitive (const G4Polyline &)
 
void AddPrimitive (const G4Scale &)
 
void AddPrimitive (const G4Text &)
 
void AddPrimitive (const G4Circle &)
 
void AddPrimitive (const G4Square &)
 
void AddPrimitive (const G4Polymarker &)
 
void AddPrimitive (const G4Polyhedron &)
 
- Public Member Functions inherited from G4VGraphicsScene
 G4VGraphicsScene ()
 
virtual ~G4VGraphicsScene ()
 
virtual void PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &visAttribs)=0
 
virtual void PostAddSolid ()=0
 
virtual void AddSolid (const G4Box &)=0
 
virtual void AddSolid (const G4Cons &)=0
 
virtual void AddSolid (const G4Orb &)=0
 
virtual void AddSolid (const G4Para &)=0
 
virtual void AddSolid (const G4Sphere &)=0
 
virtual void AddSolid (const G4Torus &)=0
 
virtual void AddSolid (const G4Trap &)=0
 
virtual void AddSolid (const G4Trd &)=0
 
virtual void AddSolid (const G4Tubs &)=0
 
virtual void AddSolid (const G4Ellipsoid &)=0
 
virtual void AddSolid (const G4Polycone &)=0
 
virtual void AddSolid (const G4Polyhedra &)=0
 
virtual void AddSolid (const G4TessellatedSolid &)=0
 
virtual void AddSolid (const G4VSolid &)=0
 
virtual void AddCompound (const G4VTrajectory &)=0
 
virtual void AddCompound (const G4VHit &)=0
 
virtual void AddCompound (const G4VDigi &)=0
 
virtual void AddCompound (const G4THitsMap< G4double > &)=0
 
virtual void AddCompound (const G4THitsMap< G4StatDouble > &)=0
 
virtual void BeginPrimitives (const G4Transform3D &objectTransformation=G4Transform3D())=0
 
virtual void EndPrimitives ()=0
 
virtual void BeginPrimitives2D (const G4Transform3D &objectTransformation=G4Transform3D())=0
 
virtual void EndPrimitives2D ()=0
 
virtual void AddPrimitive (const G4Polyline &)=0
 
virtual void AddPrimitive (const G4Scale &)=0
 
virtual void AddPrimitive (const G4Text &)=0
 
virtual void AddPrimitive (const G4Circle &)=0
 
virtual void AddPrimitive (const G4Square &)=0
 
virtual void AddPrimitive (const G4Polymarker &)=0
 
virtual void AddPrimitive (const G4Polyhedron &)=0
 
virtual const G4VisExtentGetExtent () const
 

Additional Inherited Members

virtual void ProcessVolume (const G4VSolid &)=0
 
- Protected Attributes inherited from G4PseudoScene
const G4Transform3DfpCurrentObjectTransformation
 

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 63 of file G4BoundingExtentScene.cc.

64{
65
66 if (fExtent == G4VisExtent::GetNullExtent()) { // First time.
67
68 fExtent = newExtent;
69
70 } else {
71
72 if (newExtent.GetXmin() < fExtent.GetXmin()) fExtent.SetXmin(newExtent.GetXmin());
73 if (newExtent.GetYmin() < fExtent.GetYmin()) fExtent.SetYmin(newExtent.GetYmin());
74 if (newExtent.GetZmin() < fExtent.GetZmin()) fExtent.SetZmin(newExtent.GetZmin());
75 if (newExtent.GetXmax() > fExtent.GetXmax()) fExtent.SetXmax(newExtent.GetXmax());
76 if (newExtent.GetYmax() > fExtent.GetYmax()) fExtent.SetYmax(newExtent.GetYmax());
77 if (newExtent.GetZmax() > fExtent.GetZmax()) fExtent.SetZmax(newExtent.GetZmax());
78
79 }
80}
static const G4VisExtent & GetNullExtent()
Definition: G4VisExtent.cc:60
void SetYmin(G4double ymin)
Definition: G4VisExtent.hh:114
G4double GetYmin() const
Definition: G4VisExtent.hh:101
G4double GetXmax() const
Definition: G4VisExtent.hh:100
void SetYmax(G4double ymax)
Definition: G4VisExtent.hh:116
void SetXmax(G4double xmax)
Definition: G4VisExtent.hh:112
void SetXmin(G4double xmin)
Definition: G4VisExtent.hh:110
void SetZmax(G4double zmax)
Definition: G4VisExtent.hh:120
G4double GetYmax() const
Definition: G4VisExtent.hh:102
G4double GetZmax() const
Definition: G4VisExtent.hh:104
G4double GetZmin() const
Definition: G4VisExtent.hh:103
G4double GetXmin() const
Definition: G4VisExtent.hh:99
void SetZmin(G4double zmin)
Definition: G4VisExtent.hh:118

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 G4Scene::CalculateExtent(), and G4PhysicalVolumeModel::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 57 of file G4BoundingExtentScene.cc.

58{
61}
const G4Transform3D * fpCurrentObjectTransformation

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