Geant4  10.01.p03
G4HepRepSceneHandler Class Reference

#include <G4HepRepSceneHandler.hh>

+ Inheritance diagram for G4HepRepSceneHandler:
+ Collaboration diagram for G4HepRepSceneHandler:

Public Member Functions

 G4HepRepSceneHandler (G4VGraphicsSystem &system, const G4String &name="")
 
virtual ~G4HepRepSceneHandler ()
 
void AddSolid (const G4Box &box)
 
void AddSolid (const G4Cons &cons)
 
void AddSolid (const G4Tubs &tubs)
 
void AddSolid (const G4Trd &trd)
 
void AddSolid (const G4Trap &trap)
 
void AddSolid (const G4Sphere &sphere)
 
void AddSolid (const G4Para &para)
 
void AddSolid (const G4Torus &torus)
 
void AddSolid (const G4Polycone &polycone)
 
void AddSolid (const G4Polyhedra &polyhedra)
 
void AddSolid (const G4VSolid &solid)
 
void AddCompound (const G4VTrajectory &)
 
void AddCompound (const G4VHit &hit)
 
void AddCompound (const G4VDigi &digi)
 
void AddCompound (const G4THitsMap< G4double > &hits)
 
void PreAddSolid (const G4Transform3D &objectTransformation, const G4VisAttributes &visAttribs)
 
void PostAddSolid ()
 
void AddPrimitive (const G4Polyline &)
 
void AddPrimitive (const G4Text &)
 
void AddPrimitive (const G4Circle &)
 
void AddPrimitive (const G4Square &)
 
void AddPrimitive (const G4Polyhedron &)
 
void AddPrimitive (const G4Polymarker &)
 
void AddPrimitive (const G4Scale &scale)
 
void BeginPrimitives (const G4Transform3D &objectTransformation)
 
void EndPrimitives ()
 
void BeginModeling ()
 
void EndModeling ()
 
void openHepRep ()
 
bool closeHepRep (bool final=false)
 Returns true if the HepRep was (already) closed, false if the HepRep is still open. More...
 
void openFile (G4String name)
 
void closeFile ()
 
- Public Member Functions inherited from G4VSceneHandler
 G4VSceneHandler (G4VGraphicsSystem &system, G4int id, const G4String &name="")
 
virtual ~G4VSceneHandler ()
 
virtual void BeginPrimitives2D (const G4Transform3D &objectTransformation)
 
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 G4Visible &)
 
const G4ColourGetColor (const G4Visible &)
 
const G4ColourGetTextColour (const G4Text &)
 
const G4ColourGetTextColor (const G4Text &)
 
G4double GetLineWidth (const G4VisAttributes *)
 
G4ViewParameters::DrawingStyle GetDrawingStyle (const G4VisAttributes *)
 
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 ()
 
G4int IncrementViewCount ()
 
virtual void ClearStore ()
 
virtual void ClearTransientStore ()
 
void AddViewerToList (G4VViewer *pView)
 
void RemoveViewerFromList (G4VViewer *pView)
 
- Public Member Functions inherited from G4VGraphicsScene
 G4VGraphicsScene ()
 
virtual ~G4VGraphicsScene ()
 

Private Member Functions

 G4HepRepSceneHandler (const G4HepRepSceneHandler &)
 
G4HepRepSceneHandleroperator= (const G4HepRepSceneHandler &)
 
G4bool dontWrite ()
 
void setColor (HEPREP::HepRepAttribute *attribute, const G4Color &color, const G4String &key=G4String("Color"))
 
G4Color getColorFor (const G4Visible &visible)
 
G4Color getColorFor (const G4VSolid &solid)
 
void setVisibility (HEPREP::HepRepAttribute *attribute, const G4VSolid &solid)
 
void setLine (HEPREP::HepRepAttribute *attribute, const G4VSolid &solid)
 
void setVisibility (HEPREP::HepRepAttribute *attribute, const G4Visible &visible)
 
void setLine (HEPREP::HepRepAttribute *attribute, const G4Visible &visible)
 
void setMarker (HEPREP::HepRepAttribute *attribute, const G4VMarker &marker)
 
void setAttribute (HEPREP::HepRepAttribute *attribute, G4String name, char *value)
 
void setAttribute (HEPREP::HepRepAttribute *attribute, G4String name, G4String value)
 
void setAttribute (HEPREP::HepRepAttribute *attribute, G4String name, bool value)
 
void setAttribute (HEPREP::HepRepAttribute *attribute, G4String name, double value)
 
void setAttribute (HEPREP::HepRepAttribute *attribute, G4String name, int value)
 
void setAttribute (HEPREP::HepRepAttribute *attribute, G4String name, double red, double green, double blue, double alpha)
 
bool isEventData ()
 
void open (G4String name)
 
void close ()
 
void writeLayers (HEPREP::HepRep *heprep)
 
void addAttributes (HEPREP::HepRepInstance *instance, HEPREP::HepRepType *type)
 
void addAttDefs (HEPREP::HepRepDefinition *definition, const std::map< G4String, G4AttDef > *attDefs)
 
void addAttVals (HEPREP::HepRepAttribute *attribute, const std::map< G4String, G4AttDef > *attDefs, std::vector< G4AttValue > *attValues)
 
void addTopLevelAttributes (HEPREP::HepRepType *type)
 
HEPREP::HepRepInstance * getGeometryOrEventInstance (HEPREP::HepRepType *type)
 
HEPREP::HepRep * getHepRep ()
 
HEPREP::HepRep * getHepRepGeometry ()
 
HEPREP::HepRepInstanceTree * getGeometryInstanceTree ()
 
HEPREP::HepRepInstance * getGeometryInstance (G4LogicalVolume *volume, G4Material *material, int depth)
 
HEPREP::HepRepInstance * getGeometryInstance (G4String volumeName, int depth)
 
HEPREP::HepRepInstance * getGeometryRootInstance ()
 
HEPREP::HepRepTypeTree * getGeometryTypeTree ()
 
HEPREP::HepRepType * getGeometryType (G4String volumeName, int depth)
 
HEPREP::HepRepType * getGeometryRootType ()
 
HEPREP::HepRepInstanceTree * getEventInstanceTree ()
 
HEPREP::HepRepInstance * getEventInstance ()
 
HEPREP::HepRepTypeTree * getEventTypeTree ()
 
HEPREP::HepRepType * getEventType ()
 
HEPREP::HepRepType * getTrajectoryType ()
 
HEPREP::HepRepType * getHitType ()
 
HEPREP::HepRepType * getCalHitType ()
 
HEPREP::HepRepType * getCalHitFaceType ()
 
G4String getFullTypeName (G4String volumeName, int depth)
 
G4String getParentTypeName (int currentDepth)
 

Private Attributes

G4Transform3D transform
 
std::ostream * out
 
HEPREP::HepRepFactory * factory
 
HEPREP::HepRepWriter * writer
 
G4String geometryLayer
 
G4String eventLayer
 
G4String calHitLayer
 
G4String trajectoryLayer
 
G4String hitLayer
 
G4String rootVolumeName
 
G4String baseName
 
G4String eventNumberPrefix
 
G4String eventNumberSuffix
 
G4int eventNumber
 
G4int eventNumberWidth
 
G4String extension
 
G4bool writeBinary
 
G4bool writeZip
 
G4bool writeGZ
 
G4bool writeMultipleFiles
 
const G4VHitcurrentHit
 
const G4VTrajectorycurrentTrack
 
HEPREP::HepRep * _heprep
 
HEPREP::HepRep * _heprepGeometry
 
HEPREP::HepRepInstanceTree * _geometryInstanceTree
 
std::vector
< HEPREP::HepRepInstance * > 
_geometryInstance
 
HEPREP::HepRepInstance * _geometryRootInstance
 
HEPREP::HepRepTypeTree * _geometryTypeTree
 
std::vector< G4String_geometryTypeName
 
std::map< G4String,
HEPREP::HepRepType * > 
_geometryType
 
HEPREP::HepRepType * _geometryRootType
 
HEPREP::HepRepInstanceTree * _eventInstanceTree
 
HEPREP::HepRepInstance * _eventInstance
 
HEPREP::HepRepTypeTree * _eventTypeTree
 
HEPREP::HepRepType * _eventType
 
HEPREP::HepRepType * _trajectoryType
 
HEPREP::HepRepType * _hitType
 
HEPREP::HepRepType * _calHitType
 
HEPREP::HepRepType * _calHitFaceType
 
std::map< int, G4StringmaterialState
 

Static Private Attributes

static G4int sceneIdCount = 0
 

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 G4VSolidCreateSectionSolid ()
 
virtual G4VSolidCreateCutawaySolid ()
 
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

Author
Mark Donszelmann

Definition at line 64 of file G4HepRepSceneHandler.hh.

Constructor & Destructor Documentation

G4HepRepSceneHandler::G4HepRepSceneHandler ( G4VGraphicsSystem system,
const G4String name = "" 
)

Definition at line 93 of file G4HepRepSceneHandler.cc.

References factory, kStateGas, kStateLiquid, kStateSolid, kStateUndefined, materialState, openHepRep(), and writer.

+ Here is the call graph for this function:

G4HepRepSceneHandler::~G4HepRepSceneHandler ( )
virtual

Definition at line 135 of file G4HepRepSceneHandler.cc.

References close(), factory, G4VSceneHandler::GetGraphicsSystem(), and G4HepRep::removeSceneHandler().

+ Here is the call graph for this function:

G4HepRepSceneHandler::G4HepRepSceneHandler ( const G4HepRepSceneHandler )
private

Member Function Documentation

void G4HepRepSceneHandler::addAttDefs ( HEPREP::HepRepDefinition *  definition,
const std::map< G4String, G4AttDef > *  attDefs 
)
private

Definition at line 1281 of file G4HepRepSceneHandler.cc.

Referenced by addAttributes().

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::addAttributes ( HEPREP::HepRepInstance *  instance,
HEPREP::HepRepType *  type 
)
private

Definition at line 1121 of file G4HepRepSceneHandler.cc.

References addAttDefs(), addAttVals(), G4VHit::CreateAttValues(), G4VTrajectory::CreateAttValues(), currentHit, currentTrack, G4VHit::GetAttDefs(), G4VTrajectory::GetAttDefs(), and getHitType().

Referenced by AddPrimitive(), and AddSolid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::addAttVals ( HEPREP::HepRepAttribute *  attribute,
const std::map< G4String, G4AttDef > *  attDefs,
std::vector< G4AttValue > *  attValues 
)
private

Definition at line 1293 of file G4HepRepSceneHandler.cc.

References factor, pos, and setAttribute().

Referenced by addAttributes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::AddCompound ( const G4VTrajectory trajectory)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 987 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddCompound(), currentTrack, and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddCompound ( const G4VHit hit)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 999 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddCompound(), currentHit, and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddCompound ( const G4VDigi digi)
inlinevirtual

Reimplemented from G4VSceneHandler.

Definition at line 84 of file G4HepRepSceneHandler.hh.

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

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

Reimplemented from G4VSceneHandler.

Definition at line 87 of file G4HepRepSceneHandler.hh.

References G4VSceneHandler::AddCompound().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddPrimitive ( const G4Polyline line)
virtual

Implements G4VSceneHandler.

Definition at line 741 of file G4HepRepSceneHandler.cc.

References addAttributes(), dontWrite(), factory, G4VSceneHandler::fProcessing2D, G4Exception(), G4VSceneHandler::GetColor(), getEventInstance(), getTrajectoryType(), instance, JustWarning, setColor(), setLine(), setVisibility(), and transform.

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddPrimitive ( const G4Text )
virtual

Implements G4VSceneHandler.

Definition at line 925 of file G4HepRepSceneHandler.cc.

References dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddPrimitive ( const G4Circle circle)
virtual

Implements G4VSceneHandler.

Definition at line 828 of file G4HepRepSceneHandler.cc.

References addAttributes(), dontWrite(), factory, G4VSceneHandler::fProcessing2D, G4Exception(), G4VSceneHandler::GetColor(), getEventInstance(), getHitType(), G4VMarker::GetPosition(), instance, JustWarning, setColor(), setMarker(), setVisibility(), and transform.

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddPrimitive ( const G4Square square)
virtual

Implements G4VSceneHandler.

Definition at line 949 of file G4HepRepSceneHandler.cc.

References addAttributes(), dontWrite(), factory, G4VSceneHandler::fProcessing2D, G4Exception(), getColorFor(), getEventInstance(), getHitType(), G4VMarker::GetPosition(), instance, JustWarning, setColor(), setMarker(), setVisibility(), and transform.

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddPrimitive ( const G4Polyhedron polyhedron)
virtual
void G4HepRepSceneHandler::AddPrimitive ( const G4Polymarker line)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 777 of file G4HepRepSceneHandler.cc.

References addAttributes(), G4Polymarker::circles, dontWrite(), G4Polymarker::dots, factory, G4VSceneHandler::fProcessing2D, G4Exception(), G4VSceneHandler::GetColor(), getEventInstance(), getHitType(), G4Polymarker::GetMarkerType(), instance, JustWarning, setAttribute(), setColor(), setMarker(), setVisibility(), G4Polymarker::squares, and transform.

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddPrimitive ( const G4Scale scale)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 982 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddPrimitive(), and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddSolid ( const G4Box box)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 468 of file G4HepRepSceneHandler.cc.

References addAttributes(), G4VSceneHandler::AddSolid(), dontWrite(), factory, getCalHitType(), getColorFor(), getGeometryOrEventInstance(), G4HepRepMessenger::GetInstance(), G4Box::GetXHalfLength(), G4Box::GetYHalfLength(), G4Box::GetZHalfLength(), instance, setAttribute(), setColor(), setLine(), setVisibility(), transform, and G4HepRepMessenger::useSolids().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddSolid ( const G4Trd trd)
virtual
void G4HepRepSceneHandler::AddSolid ( const G4Trap trap)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 705 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddSolid(), and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddSolid ( const G4Sphere sphere)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 710 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddSolid(), and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddSolid ( const G4Para para)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 715 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddSolid(), and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddSolid ( const G4Torus torus)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 720 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddSolid(), and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddSolid ( const G4Polycone polycone)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 725 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddSolid(), and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddSolid ( const G4Polyhedra polyhedra)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 730 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddSolid(), and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::AddSolid ( const G4VSolid solid)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 735 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::AddSolid(), and dontWrite().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::addTopLevelAttributes ( HEPREP::HepRepType *  type)
private

Definition at line 1387 of file G4HepRepSceneHandler.cc.

References G4Date, G4Version, G4VSceneHandler::GetCurrentViewer(), G4HepRepMessenger::GetInstance(), G4VViewer::GetViewParameters(), G4ViewParameters::GetViewpointDirection(), G4ViewParameters::GetZoomFactor(), G4HepRepMessenger::useSolids(), and G4HepRepMessenger::writeInvisibles().

Referenced by getEventType(), and getGeometryRootType().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::BeginModeling ( )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 453 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::BeginModeling().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::BeginPrimitives ( const G4Transform3D objectTransformation)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 1030 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::BeginPrimitives(), and transform.

+ Here is the call graph for this function:

void G4HepRepSceneHandler::close ( )
private

Definition at line 413 of file G4HepRepSceneHandler.cc.

References closeFile(), closeHepRep(), G4VSceneHandler::GetCurrentViewer(), G4HepRepViewer::reset(), writeMultipleFiles, and writer.

Referenced by ~G4HepRepSceneHandler().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::closeFile ( )

Definition at line 435 of file G4HepRepSceneHandler.cc.

References out, and writer.

Referenced by close(), and closeHepRep().

+ Here is the caller graph for this function:

bool G4HepRepSceneHandler::closeHepRep ( bool  final = false)

Returns true if the HepRep was (already) closed, false if the HepRep is still open.

Definition at line 295 of file G4HepRepSceneHandler.cc.

References _eventInstanceTree, _geometryInstanceTree, _heprep, _heprepGeometry, G4HepRepMessenger::appendGeometry(), baseName, closeFile(), G4VViewer::DrawView(), eventNumber, eventNumberPrefix, eventNumberSuffix, eventNumberWidth, extension, factory, getCalHitFaceType(), getCalHitType(), G4VSceneHandler::GetCurrentViewer(), getEventInstanceTree(), getEventType(), getGeometryInstanceTree(), getHitType(), G4HepRepMessenger::GetInstance(), G4VSceneHandler::GetName(), G4VSceneHandler::GetScene(), getTrajectoryType(), name, open(), openFile(), writeBinary, writeLayers(), writeMultipleFiles, and writer.

Referenced by close(), and G4HepRepViewer::ShowView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4HepRepSceneHandler::dontWrite ( )
private

Definition at line 1048 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::fpVisAttribs, G4HepRepMessenger::GetInstance(), G4VisAttributes::IsVisible(), and G4HepRepMessenger::writeInvisibles().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::EndModeling ( )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 461 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::EndModeling().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::EndPrimitives ( )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 1040 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::EndPrimitives().

+ Here is the call graph for this function:

HepRepType * G4HepRepSceneHandler::getCalHitFaceType ( )
private

Definition at line 1733 of file G4HepRepSceneHandler.cc.

References _calHitFaceType, factory, and getCalHitType().

Referenced by AddPrimitive(), and closeHepRep().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepType * G4HepRepSceneHandler::getCalHitType ( )
private

Definition at line 1723 of file G4HepRepSceneHandler.cc.

References _calHitType, calHitLayer, factory, and getEventType().

Referenced by AddPrimitive(), AddSolid(), closeHepRep(), and getCalHitFaceType().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Color G4HepRepSceneHandler::getColorFor ( const G4Visible visible)
private

Definition at line 1069 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::GetColor().

Referenced by AddPrimitive(), and AddSolid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4Color G4HepRepSceneHandler::getColorFor ( const G4VSolid solid)
private

Definition at line 1065 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::fpVisAttribs, G4VisAttributes::GetColor(), and G4VSceneHandler::GetColor().

+ Here is the call graph for this function:

HepRepInstance * G4HepRepSceneHandler::getEventInstance ( )
private

Definition at line 1649 of file G4HepRepSceneHandler.cc.

References _eventInstance, factory, getEventInstanceTree(), and getEventType().

Referenced by AddPrimitive(), and getGeometryOrEventInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepInstanceTree * G4HepRepSceneHandler::getEventInstanceTree ( )
private

Definition at line 1640 of file G4HepRepSceneHandler.cc.

References _eventInstanceTree, factory, getEventTypeTree(), and getHepRep().

Referenced by closeHepRep(), and getEventInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepType * G4HepRepSceneHandler::getEventType ( )
private

Definition at line 1668 of file G4HepRepSceneHandler.cc.

References _eventType, addTopLevelAttributes(), eventLayer, factory, and getEventTypeTree().

Referenced by closeHepRep(), getCalHitType(), getEventInstance(), getHitType(), and getTrajectoryType().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepTypeTree * G4HepRepSceneHandler::getEventTypeTree ( )
private

Definition at line 1657 of file G4HepRepSceneHandler.cc.

References _eventTypeTree, factory, and getHepRep().

Referenced by getEventInstanceTree(), and getEventType().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4HepRepSceneHandler::getFullTypeName ( G4String  volumeName,
int  depth 
)
private

Definition at line 1611 of file G4HepRepSceneHandler.cc.

References _geometryType, _geometryTypeName, factory, getGeometryRootType(), name, and rootVolumeName.

Referenced by getGeometryType().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepInstance * G4HepRepSceneHandler::getGeometryInstance ( G4LogicalVolume volume,
G4Material material,
int  depth 
)
private

Definition at line 1486 of file G4HepRepSceneHandler.cc.

References G4Material::GetDensity(), G4VSolid::GetEntityType(), G4VSolid::GetName(), G4Material::GetName(), G4LogicalVolume::GetName(), G4Material::GetRadlen(), G4LogicalVolume::GetRegion(), G4LogicalVolume::GetSolid(), G4Material::GetState(), instance, G4LogicalVolume::IsRootRegion(), kStateUndefined, materialState, and setAttribute().

Referenced by AddPrimitive(), AddSolid(), and getGeometryOrEventInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepInstance * G4HepRepSceneHandler::getGeometryInstance ( G4String  volumeName,
int  depth 
)
private

Definition at line 1510 of file G4HepRepSceneHandler.cc.

References _geometryInstance, factory, getGeometryRootInstance(), getGeometryType(), and instance.

+ Here is the call graph for this function:

HepRepInstanceTree * G4HepRepSceneHandler::getGeometryInstanceTree ( )
private

Definition at line 1463 of file G4HepRepSceneHandler.cc.

References _geometryInstanceTree, G4HepRepMessenger::appendGeometry(), factory, getGeometryTypeTree(), getHepRep(), getHepRepGeometry(), and G4HepRepMessenger::GetInstance().

Referenced by closeHepRep(), and getGeometryRootInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepInstance * G4HepRepSceneHandler::getGeometryOrEventInstance ( HEPREP::HepRepType *  type)
private

Definition at line 1433 of file G4HepRepSceneHandler.cc.

References factory, G4VSceneHandler::fpModel, G4PhysicalVolumeModel::GetCurrentDepth(), G4PhysicalVolumeModel::GetCurrentLV(), G4PhysicalVolumeModel::GetCurrentMaterial(), getEventInstance(), getGeometryInstance(), and isEventData().

Referenced by AddPrimitive(), and AddSolid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepInstance * G4HepRepSceneHandler::getGeometryRootInstance ( )
private

Definition at line 1478 of file G4HepRepSceneHandler.cc.

References _geometryRootInstance, factory, getGeometryInstanceTree(), and getGeometryRootType().

Referenced by getGeometryInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepType * G4HepRepSceneHandler::getGeometryRootType ( )
private

Definition at line 1547 of file G4HepRepSceneHandler.cc.

References _geometryRootType, _geometryType, addTopLevelAttributes(), factory, geometryLayer, getGeometryTypeTree(), and rootVolumeName.

Referenced by getFullTypeName(), getGeometryRootInstance(), and getGeometryType().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepType * G4HepRepSceneHandler::getGeometryType ( G4String  volumeName,
int  depth 
)
private

Definition at line 1592 of file G4HepRepSceneHandler.cc.

References _geometryType, factory, getFullTypeName(), getGeometryRootType(), getParentTypeName(), and name.

Referenced by AddSolid(), and getGeometryInstance().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRepTypeTree * G4HepRepSceneHandler::getGeometryTypeTree ( )
private

Definition at line 1531 of file G4HepRepSceneHandler.cc.

References _geometryTypeTree, G4HepRepMessenger::appendGeometry(), factory, getHepRep(), getHepRepGeometry(), and G4HepRepMessenger::GetInstance().

Referenced by getGeometryInstanceTree(), and getGeometryRootType().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

HepRep * G4HepRepSceneHandler::getHepRep ( )
private

Definition at line 1447 of file G4HepRepSceneHandler.cc.

References _heprep, and factory.

Referenced by getEventInstanceTree(), getEventTypeTree(), getGeometryInstanceTree(), and getGeometryTypeTree().

+ Here is the caller graph for this function:

HepRep * G4HepRepSceneHandler::getHepRepGeometry ( )
private

Definition at line 1455 of file G4HepRepSceneHandler.cc.

References _heprepGeometry, and factory.

Referenced by getGeometryInstanceTree(), and getGeometryTypeTree().

+ Here is the caller graph for this function:

HepRepType * G4HepRepSceneHandler::getHitType ( )
private

Definition at line 1710 of file G4HepRepSceneHandler.cc.

References _hitType, factory, getEventType(), and hitLayer.

Referenced by addAttributes(), AddPrimitive(), and closeHepRep().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String G4HepRepSceneHandler::getParentTypeName ( int  currentDepth)
private

Definition at line 1636 of file G4HepRepSceneHandler.cc.

References _geometryTypeName, and rootVolumeName.

Referenced by getGeometryType().

+ Here is the caller graph for this function:

HepRepType * G4HepRepSceneHandler::getTrajectoryType ( )
private

Definition at line 1692 of file G4HepRepSceneHandler.cc.

References _trajectoryType, factory, getEventType(), and trajectoryLayer.

Referenced by AddPrimitive(), and closeHepRep().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool G4HepRepSceneHandler::isEventData ( )
private

Definition at line 1381 of file G4HepRepSceneHandler.cc.

References currentHit, currentTrack, G4VSceneHandler::fpModel, and G4VSceneHandler::fReadyForTransients.

Referenced by AddPrimitive(), and getGeometryOrEventInstance().

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::open ( G4String  name)
private

Definition at line 149 of file G4HepRepSceneHandler.cc.

References baseName, eventNumber, eventNumberPrefix, eventNumberSuffix, eventNumberWidth, extension, factory, G4HepRepMessenger::getEventNumberSuffix(), G4HepRepMessenger::GetInstance(), name, openFile(), out, writeBinary, writeGZ, writeMultipleFiles, writer, and writeZip.

Referenced by closeHepRep().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::openFile ( G4String  name)

Definition at line 430 of file G4HepRepSceneHandler.cc.

References factory, out, writeGZ, writer, and writeZip.

Referenced by closeHepRep(), and open().

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::openHepRep ( )

Definition at line 265 of file G4HepRepSceneHandler.cc.

References _calHitFaceType, _calHitType, _eventInstance, _eventInstanceTree, _eventType, _eventTypeTree, _geometryInstance, _geometryInstanceTree, _geometryRootInstance, _geometryRootType, _geometryType, _geometryTypeName, _geometryTypeTree, _heprep, _heprepGeometry, _hitType, and _trajectoryType.

Referenced by G4HepRepSceneHandler(), and G4HepRepViewer::ShowView().

+ Here is the caller graph for this function:

G4HepRepSceneHandler& G4HepRepSceneHandler::operator= ( const G4HepRepSceneHandler )
private
void G4HepRepSceneHandler::PostAddSolid ( )
virtual

Reimplemented from G4VSceneHandler.

Definition at line 1022 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::PostAddSolid().

+ Here is the call graph for this function:

void G4HepRepSceneHandler::PreAddSolid ( const G4Transform3D objectTransformation,
const G4VisAttributes visAttribs 
)
virtual

Reimplemented from G4VSceneHandler.

Definition at line 1010 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::PreAddSolid(), and transform.

+ Here is the call graph for this function:

void G4HepRepSceneHandler::setAttribute ( HEPREP::HepRepAttribute *  attribute,
G4String  name,
char *  value 
)
inlineprivate

Definition at line 140 of file G4HepRepSceneHandler.hh.

Referenced by addAttVals(), AddPrimitive(), AddSolid(), getGeometryInstance(), setColor(), and setMarker().

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::setAttribute ( HEPREP::HepRepAttribute *  attribute,
G4String  name,
G4String  value 
)
private
void G4HepRepSceneHandler::setAttribute ( HEPREP::HepRepAttribute *  attribute,
G4String  name,
bool  value 
)
private
void G4HepRepSceneHandler::setAttribute ( HEPREP::HepRepAttribute *  attribute,
G4String  name,
double  value 
)
private
void G4HepRepSceneHandler::setAttribute ( HEPREP::HepRepAttribute *  attribute,
G4String  name,
int  value 
)
private
void G4HepRepSceneHandler::setAttribute ( HEPREP::HepRepAttribute *  attribute,
G4String  name,
double  red,
double  green,
double  blue,
double  alpha 
)
private
void G4HepRepSceneHandler::setColor ( HEPREP::HepRepAttribute *  attribute,
const G4Color color,
const G4String key = G4String("Color") 
)
private

Definition at line 1053 of file G4HepRepSceneHandler.cc.

References G4Colour::GetAlpha(), G4Colour::GetBlue(), G4Colour::GetGreen(), G4Colour::GetRed(), and setAttribute().

Referenced by AddPrimitive(), AddSolid(), and setMarker().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::setLine ( HEPREP::HepRepAttribute *  attribute,
const G4VSolid solid 
)
private

Referenced by AddPrimitive(), and AddSolid().

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::setLine ( HEPREP::HepRepAttribute *  attribute,
const G4Visible visible 
)
private
void G4HepRepSceneHandler::setMarker ( HEPREP::HepRepAttribute *  attribute,
const G4VMarker marker 
)
private

Definition at line 1107 of file G4HepRepSceneHandler.cc.

References G4VSceneHandler::GetColor(), G4VMarker::GetFillStyle(), G4VSceneHandler::GetMarkerRadius(), G4VMarker::noFill, G4VSceneHandler::screen, setAttribute(), and setColor().

Referenced by AddPrimitive().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::setVisibility ( HEPREP::HepRepAttribute *  attribute,
const G4VSolid solid 
)
private

Referenced by AddPrimitive(), and AddSolid().

+ Here is the caller graph for this function:

void G4HepRepSceneHandler::setVisibility ( HEPREP::HepRepAttribute *  attribute,
const G4Visible visible 
)
private
void G4HepRepSceneHandler::writeLayers ( HEPREP::HepRep *  heprep)
private

Definition at line 444 of file G4HepRepSceneHandler.cc.

References calHitLayer, eventLayer, geometryLayer, hitLayer, and trajectoryLayer.

Referenced by closeHepRep().

+ Here is the caller graph for this function:

Member Data Documentation

HEPREP::HepRepType* G4HepRepSceneHandler::_calHitFaceType
private

Definition at line 222 of file G4HepRepSceneHandler.hh.

Referenced by getCalHitFaceType(), and openHepRep().

HEPREP::HepRepType* G4HepRepSceneHandler::_calHitType
private

Definition at line 221 of file G4HepRepSceneHandler.hh.

Referenced by getCalHitType(), and openHepRep().

HEPREP::HepRepInstance* G4HepRepSceneHandler::_eventInstance
private

Definition at line 216 of file G4HepRepSceneHandler.hh.

Referenced by getEventInstance(), and openHepRep().

HEPREP::HepRepInstanceTree* G4HepRepSceneHandler::_eventInstanceTree
private

Definition at line 215 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), getEventInstanceTree(), and openHepRep().

HEPREP::HepRepType* G4HepRepSceneHandler::_eventType
private

Definition at line 218 of file G4HepRepSceneHandler.hh.

Referenced by getEventType(), and openHepRep().

HEPREP::HepRepTypeTree* G4HepRepSceneHandler::_eventTypeTree
private

Definition at line 217 of file G4HepRepSceneHandler.hh.

Referenced by getEventTypeTree(), and openHepRep().

std::vector<HEPREP::HepRepInstance*> G4HepRepSceneHandler::_geometryInstance
private

Definition at line 209 of file G4HepRepSceneHandler.hh.

Referenced by getGeometryInstance(), and openHepRep().

HEPREP::HepRepInstanceTree* G4HepRepSceneHandler::_geometryInstanceTree
private

Definition at line 208 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), getGeometryInstanceTree(), and openHepRep().

HEPREP::HepRepInstance* G4HepRepSceneHandler::_geometryRootInstance
private

Definition at line 210 of file G4HepRepSceneHandler.hh.

Referenced by getGeometryRootInstance(), and openHepRep().

HEPREP::HepRepType* G4HepRepSceneHandler::_geometryRootType
private

Definition at line 214 of file G4HepRepSceneHandler.hh.

Referenced by getGeometryRootType(), and openHepRep().

std::map<G4String, HEPREP::HepRepType*> G4HepRepSceneHandler::_geometryType
private
std::vector<G4String> G4HepRepSceneHandler::_geometryTypeName
private

Definition at line 212 of file G4HepRepSceneHandler.hh.

Referenced by getFullTypeName(), getParentTypeName(), and openHepRep().

HEPREP::HepRepTypeTree* G4HepRepSceneHandler::_geometryTypeTree
private

Definition at line 211 of file G4HepRepSceneHandler.hh.

Referenced by getGeometryTypeTree(), and openHepRep().

HEPREP::HepRep* G4HepRepSceneHandler::_heprep
private

Definition at line 206 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), getHepRep(), and openHepRep().

HEPREP::HepRep* G4HepRepSceneHandler::_heprepGeometry
private

Definition at line 207 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), getHepRepGeometry(), and openHepRep().

HEPREP::HepRepType* G4HepRepSceneHandler::_hitType
private

Definition at line 220 of file G4HepRepSceneHandler.hh.

Referenced by getHitType(), and openHepRep().

HEPREP::HepRepType* G4HepRepSceneHandler::_trajectoryType
private

Definition at line 219 of file G4HepRepSceneHandler.hh.

Referenced by getTrajectoryType(), and openHepRep().

G4String G4HepRepSceneHandler::baseName
private

Definition at line 192 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), and open().

G4String G4HepRepSceneHandler::calHitLayer
private

Definition at line 188 of file G4HepRepSceneHandler.hh.

Referenced by getCalHitType(), and writeLayers().

const G4VHit* G4HepRepSceneHandler::currentHit
private

Definition at line 202 of file G4HepRepSceneHandler.hh.

Referenced by addAttributes(), AddCompound(), and isEventData().

const G4VTrajectory* G4HepRepSceneHandler::currentTrack
private

Definition at line 203 of file G4HepRepSceneHandler.hh.

Referenced by addAttributes(), AddCompound(), and isEventData().

G4String G4HepRepSceneHandler::eventLayer
private

Definition at line 188 of file G4HepRepSceneHandler.hh.

Referenced by getEventType(), and writeLayers().

G4int G4HepRepSceneHandler::eventNumber
private

Definition at line 195 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), and open().

G4String G4HepRepSceneHandler::eventNumberPrefix
private

Definition at line 193 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), and open().

G4String G4HepRepSceneHandler::eventNumberSuffix
private

Definition at line 194 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), and open().

G4int G4HepRepSceneHandler::eventNumberWidth
private

Definition at line 196 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), and open().

G4String G4HepRepSceneHandler::extension
private

Definition at line 197 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), and open().

G4String G4HepRepSceneHandler::geometryLayer
private

Definition at line 188 of file G4HepRepSceneHandler.hh.

Referenced by getGeometryRootType(), and writeLayers().

G4String G4HepRepSceneHandler::hitLayer
private

Definition at line 189 of file G4HepRepSceneHandler.hh.

Referenced by getHitType(), and writeLayers().

std::map<int, G4String> G4HepRepSceneHandler::materialState
private

Definition at line 224 of file G4HepRepSceneHandler.hh.

Referenced by G4HepRepSceneHandler(), and getGeometryInstance().

std::ostream* G4HepRepSceneHandler::out
private

Definition at line 120 of file G4HepRepSceneHandler.hh.

Referenced by closeFile(), open(), and openFile().

G4String G4HepRepSceneHandler::rootVolumeName
private
G4int G4HepRepSceneHandler::sceneIdCount = 0
staticprivate

Definition at line 116 of file G4HepRepSceneHandler.hh.

G4String G4HepRepSceneHandler::trajectoryLayer
private

Definition at line 189 of file G4HepRepSceneHandler.hh.

Referenced by getTrajectoryType(), and writeLayers().

G4Transform3D G4HepRepSceneHandler::transform
private

Definition at line 118 of file G4HepRepSceneHandler.hh.

Referenced by AddPrimitive(), AddSolid(), BeginPrimitives(), and PreAddSolid().

G4bool G4HepRepSceneHandler::writeBinary
private

Definition at line 198 of file G4HepRepSceneHandler.hh.

Referenced by closeHepRep(), and open().

G4bool G4HepRepSceneHandler::writeGZ
private

Definition at line 200 of file G4HepRepSceneHandler.hh.

Referenced by open(), and openFile().

G4bool G4HepRepSceneHandler::writeMultipleFiles
private

Definition at line 201 of file G4HepRepSceneHandler.hh.

Referenced by close(), closeHepRep(), and open().

HEPREP::HepRepWriter* G4HepRepSceneHandler::writer
private
G4bool G4HepRepSceneHandler::writeZip
private

Definition at line 199 of file G4HepRepSceneHandler.hh.

Referenced by open(), and openFile().


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