ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VRML1FileSceneHandler Class Reference

#include <geant4/tree/geant4-10.6-release/source/visualization/VRML/include/G4VRML1FileSceneHandler.hh>

+ Inheritance diagram for G4VRML1FileSceneHandler:
+ Collaboration diagram for G4VRML1FileSceneHandler:

Public Member Functions

 G4VRML1FileSceneHandler (G4VRML1File &system, const G4String &name="")
 
virtual ~G4VRML1FileSceneHandler ()
 
void AddSolid (const G4Box &)
 
void AddSolid (const G4Cons &)
 
void AddSolid (const G4Tubs &)
 
void AddSolid (const G4Trd &)
 
void AddSolid (const G4Trap &)
 
void AddSolid (const G4Sphere &)
 
void AddSolid (const G4Para &)
 
void AddSolid (const G4Torus &)
 
void AddSolid (const G4Polycone &polycone)
 
void AddSolid (const G4Polyhedra &polyhedra)
 
void AddSolid (const G4Orb &orb)
 
void AddSolid (const G4Ellipsoid &ellipsoid)
 
void AddSolid (const G4TessellatedSolid &tess)
 
void AddSolid (const G4VSolid &)
 
void AddCompound (const G4VTrajectory &traj)
 
void AddCompound (const G4VHit &hit)
 
void AddCompound (const G4VDigi &digi)
 
void AddCompound (const G4THitsMap< G4double > &hits)
 
void AddCompound (const G4THitsMap< G4StatDouble > &hits)
 
void BeginPrimitives (const G4Transform3D &objectTransformation)
 
void EndPrimitives ()
 
void AddPrimitive (const G4Polyline &)
 
void AddPrimitive (const G4Polyhedron &)
 
void AddPrimitive (const G4Text &)
 
void AddPrimitive (const G4Circle &)
 
void AddPrimitive (const G4Square &)
 
void AddPrimitive (const G4Polymarker &polymarker)
 
void AddPrimitive (const G4Scale &scale)
 
void ClearTransientStore ()
 
void BeginModeling ()
 
void EndModeling ()
 
void VRMLBeginModeling ()
 
void VRMLEndModeling ()
 
void connectPort ()
 
void closePort ()
 
- 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 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 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 ()
 
virtual void ClearStore ()
 
void AddViewerToList (G4VViewer *pView)
 
void RemoveViewerFromList (G4VViewer *pView)
 
- Public Member Functions inherited from G4VGraphicsScene
 G4VGraphicsScene ()
 
virtual ~G4VGraphicsScene ()
 

Private Member Functions

void SendMaterialNode (const G4VisAttributes *pAV)
 
void SendMaterialNode ()
 
void SendMatrixTransformNode (const G4Transform3D &)
 
void SendCubeNode (G4double, G4double, G4double)
 
void SendCylinderNode (G4double, G4double)
 
void SendSphereNode (G4double)
 
void SendMarkerColor (const G4VMarker &mark)
 
void SendMarkerWorldPosition (const G4VMarker &mark)
 
G4double GetMarkerHalfSize (const G4VMarker &mark)
 
G4bool isConnected ()
 

Private Attributes

char fVRMLFileDestDir [256]
 
char fVRMLFileName [256]
 
G4String fCurrentDEF
 
G4VRML1FilefSystem
 
std::ofstream fDest
 
G4bool fFlagDestOpen
 
G4int fMaxFileNum
 

Static Private Attributes

static G4int fSceneIdCount = 0
 

Friends

class G4VRML1FileViewer
 

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 *)
 
- 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
 

Detailed Description

Definition at line 44 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 44 of file G4VRML1FileSceneHandler.hh

Constructor & Destructor Documentation

G4VRML1FileSceneHandler::G4VRML1FileSceneHandler ( G4VRML1File system,
const G4String name = "" 
)

Definition at line 75 of file G4VRML1FileSceneHandler.cc.

View newest version in sPHENIX GitHub at line 75 of file G4VRML1FileSceneHandler.cc

References DEFAULT_MAX_WRL_FILE_NUM, fCurrentDEF, fMaxFileNum, fVRMLFileDestDir, fVRMLFileName, and VRMLFILE_DEST_DIR.

G4VRML1FileSceneHandler::~G4VRML1FileSceneHandler ( )
virtual

Definition at line 104 of file G4VRML1FileSceneHandler.cc.

View newest version in sPHENIX GitHub at line 104 of file G4VRML1FileSceneHandler.cc

References G4VisManager::errors, G4cout, G4endl, G4VisManager::GetVerbosity(), and VRMLEndModeling().

+ Here is the call graph for this function:

Member Function Documentation

void G4VRML1FileSceneHandler::AddCompound ( const G4VTrajectory traj)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 76 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 76 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddCompound ( const G4VHit hit)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 79 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 79 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddCompound ( const G4VDigi digi)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 82 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 82 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddCompound ( const G4THitsMap< G4double > &  hits)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 85 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 85 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddCompound ( const G4THitsMap< G4StatDouble > &  hits)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 88 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 88 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddPrimitive ( const G4Polyline )
virtual

Implements G4VSceneHandler.

void G4VRML1FileSceneHandler::AddPrimitive ( const G4Polyhedron )
virtual

Implements G4VSceneHandler.

void G4VRML1FileSceneHandler::AddPrimitive ( const G4Text )
virtual

Implements G4VSceneHandler.

void G4VRML1FileSceneHandler::AddPrimitive ( const G4Circle )
virtual

Implements G4VSceneHandler.

void G4VRML1FileSceneHandler::AddPrimitive ( const G4Square )
virtual

Implements G4VSceneHandler.

void G4VRML1FileSceneHandler::AddPrimitive ( const G4Polymarker polymarker)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 100 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 100 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddPrimitive().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddPrimitive ( const G4Scale scale)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 102 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 102 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddPrimitive().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddSolid ( const G4Box )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::AddSolid ( const G4Cons )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::AddSolid ( const G4Tubs )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::AddSolid ( const G4Trd )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::AddSolid ( const G4Trap )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::AddSolid ( const G4Sphere )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::AddSolid ( const G4Para )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::AddSolid ( const G4Torus )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::AddSolid ( const G4Polycone polycone)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 60 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 60 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddSolid().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddSolid ( const G4Polyhedra polyhedra)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 63 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 63 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddSolid().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddSolid ( const G4Orb orb)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 66 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 66 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddSolid().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddSolid ( const G4Ellipsoid ellipsoid)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 69 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 69 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddSolid().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddSolid ( const G4TessellatedSolid tess)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 72 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 72 of file G4VRML1FileSceneHandler.hh

References G4VSceneHandler::AddSolid().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::AddSolid ( const G4VSolid )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::BeginModeling ( )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::BeginPrimitives ( const G4Transform3D objectTransformation)
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::ClearTransientStore ( )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::closePort ( )

Definition at line 184 of file G4VRML1FileSceneHandler.cc.

View newest version in sPHENIX GitHub at line 184 of file G4VRML1FileSceneHandler.cc

References ENV_VRML_VIEWER, G4VisManager::errors, false, fDest, fFlagDestOpen, fVRMLFileName, G4cout, G4endl, G4VisManager::GetVerbosity(), NO_VRML_VIEWER, system(), and void().

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::connectPort ( )

Definition at line 121 of file G4VRML1FileSceneHandler.cc.

View newest version in sPHENIX GitHub at line 121 of file G4VRML1FileSceneHandler.cc

References DEFAULT_WRL_FILE_NAME, G4VisManager::errors, fDest, fFlagDestOpen, INPUTHEPMC::filename, fin, fMaxFileNum, fVRMLFileDestDir, fVRMLFileName, G4cout, G4endl, G4VisManager::GetVerbosity(), true, and WRL_FILE_HEADER.

+ Here is the call graph for this function:

void G4VRML1FileSceneHandler::EndModeling ( )
virtual

Reimplemented from G4VSceneHandler.

void G4VRML1FileSceneHandler::EndPrimitives ( )
virtual

Reimplemented from G4VSceneHandler.

G4double G4VRML1FileSceneHandler::GetMarkerHalfSize ( const G4VMarker mark)
private
G4bool G4VRML1FileSceneHandler::isConnected ( )
inlineprivate

Definition at line 130 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 130 of file G4VRML1FileSceneHandler.hh

References fFlagDestOpen.

void G4VRML1FileSceneHandler::SendCubeNode ( G4double  ,
G4double  ,
G4double   
)
private
void G4VRML1FileSceneHandler::SendCylinderNode ( G4double  ,
G4double   
)
private
void G4VRML1FileSceneHandler::SendMarkerColor ( const G4VMarker mark)
private
void G4VRML1FileSceneHandler::SendMarkerWorldPosition ( const G4VMarker mark)
private
void G4VRML1FileSceneHandler::SendMaterialNode ( const G4VisAttributes pAV)
private
void G4VRML1FileSceneHandler::SendMaterialNode ( )
private
void G4VRML1FileSceneHandler::SendMatrixTransformNode ( const G4Transform3D )
private
void G4VRML1FileSceneHandler::SendSphereNode ( G4double  )
private
void G4VRML1FileSceneHandler::VRMLBeginModeling ( )

Referenced by G4VRML1FileViewer::DrawView().

+ Here is the caller graph for this function:

void G4VRML1FileSceneHandler::VRMLEndModeling ( )

Referenced by G4VRML1FileViewer::ShowView(), and ~G4VRML1FileSceneHandler().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class G4VRML1FileViewer
friend

Definition at line 46 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 46 of file G4VRML1FileSceneHandler.hh

Member Data Documentation

G4String G4VRML1FileSceneHandler::fCurrentDEF
private

Definition at line 137 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 137 of file G4VRML1FileSceneHandler.hh

Referenced by G4VRML1FileSceneHandler().

std::ofstream G4VRML1FileSceneHandler::fDest
private

Definition at line 140 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 140 of file G4VRML1FileSceneHandler.hh

Referenced by G4VRML1FileViewer::ClearView(), closePort(), and connectPort().

G4bool G4VRML1FileSceneHandler::fFlagDestOpen
private

Definition at line 141 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 141 of file G4VRML1FileSceneHandler.hh

Referenced by G4VRML1FileViewer::ClearView(), closePort(), connectPort(), and isConnected().

G4int G4VRML1FileSceneHandler::fMaxFileNum
private

Definition at line 143 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 143 of file G4VRML1FileSceneHandler.hh

Referenced by connectPort(), and G4VRML1FileSceneHandler().

G4int G4VRML1FileSceneHandler::fSceneIdCount = 0
staticprivate

Definition at line 145 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 145 of file G4VRML1FileSceneHandler.hh

G4VRML1File& G4VRML1FileSceneHandler::fSystem
private

Definition at line 139 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 139 of file G4VRML1FileSceneHandler.hh

char G4VRML1FileSceneHandler::fVRMLFileDestDir[256]
private

Definition at line 134 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 134 of file G4VRML1FileSceneHandler.hh

Referenced by connectPort(), and G4VRML1FileSceneHandler().

char G4VRML1FileSceneHandler::fVRMLFileName[256]
private

Definition at line 135 of file G4VRML1FileSceneHandler.hh.

View newest version in sPHENIX GitHub at line 135 of file G4VRML1FileSceneHandler.hh

Referenced by G4VRML1FileViewer::ClearView(), closePort(), connectPort(), and G4VRML1FileSceneHandler().


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