33 #ifndef G4HEPREPSCENEHANDLER_HH
34 #define G4HEPREPSCENEHANDLER_HH 1
43 #include "HEPREP/HepRep.h"
127 void setColor (HEPREP::HepRepAttribute *attribute,
const G4Color& color,
133 void setLine (HEPREP::HepRepAttribute *attribute,
const G4VSolid& solid);
136 void setLine (HEPREP::HepRepAttribute *attribute,
const G4Visible& visible);
158 void addAttDefs(HEPREP::HepRepDefinition* definition,
const std::map<G4String,G4AttDef>* attDefs);
159 void addAttVals(HEPREP::HepRepAttribute* attribute,
const std::map<G4String,G4AttDef>* attDefs, std::vector<G4AttValue>* attValues);
std::vector< HEPREP::HepRepInstance * > _geometryInstance
void setMarker(HEPREP::HepRepAttribute *attribute, const G4VMarker &marker)
HEPREP::HepRepType * getTrajectoryType()
void AddSolid(const G4Box &box)
HEPREP::HepRepInstance * getEventInstance()
HEPREP::HepRepType * _calHitFaceType
HEPREP::HepRepTypeTree * _geometryTypeTree
void addAttDefs(HEPREP::HepRepDefinition *definition, const std::map< G4String, G4AttDef > *attDefs)
HEPREP::HepRepTypeTree * getGeometryTypeTree()
HEPREP::HepRepTypeTree * getEventTypeTree()
G4HepRepSceneHandler & operator=(const G4HepRepSceneHandler &)
const G4VHit * currentHit
HEPREP::HepRep * getHepRepGeometry()
std::map< G4String, HEPREP::HepRepType * > _geometryType
void BeginPrimitives(const G4Transform3D &objectTransformation)
bool closeHepRep(bool final=false)
Returns true if the HepRep was (already) closed, false if the HepRep is still open.
HEPREP::HepRepType * _hitType
HEPREP::HepRepType * _geometryRootType
void openFile(G4String name)
void PreAddSolid(const G4Transform3D &objectTransformation, const G4VisAttributes &visAttribs)
HEPREP::HepRepType * getEventType()
HEPREP::HepRepType * getCalHitType()
HEPREP::HepRepType * _calHitType
std::vector< G4String > _geometryTypeName
G4String eventNumberSuffix
HEPREP::HepRepFactory * factory
G4String getFullTypeName(G4String volumeName, int depth)
HEPREP::HepRepType * _eventType
void AddCompound(const G4VDigi &digi)
HEPREP::HepRep * _heprepGeometry
HEPREP::HepRepInstance * getGeometryRootInstance()
G4Color getColorFor(const G4Visible &visible)
HEPREP::HepRepInstance * _eventInstance
HEPREP::HepRepType * getHitType()
HEPREP::HepRep * getHepRep()
G4String getParentTypeName(int currentDepth)
std::map< int, G4String > materialState
void addTopLevelAttributes(HEPREP::HepRepType *type)
void addAttributes(HEPREP::HepRepInstance *instance, HEPREP::HepRepType *type)
static G4int sceneIdCount
HEPREP::HepRepInstanceTree * _eventInstanceTree
void setLine(HEPREP::HepRepAttribute *attribute, const G4VSolid &solid)
HEPREP::HepRepInstance * _geometryRootInstance
virtual ~G4HepRepSceneHandler()
void writeLayers(HEPREP::HepRep *heprep)
HEPREP::HepRepTypeTree * _eventTypeTree
HEPREP::HepRepType * getCalHitFaceType()
virtual void AddCompound(const G4VTrajectory &)
void AddCompound(const G4THitsMap< G4double > &hits)
HEPREP::HepRepWriter * writer
void setVisibility(HEPREP::HepRepAttribute *attribute, const G4VSolid &solid)
void AddCompound(const G4VTrajectory &)
G4HepRepSceneHandler(G4VGraphicsSystem &system, const G4String &name="")
G4bool writeMultipleFiles
HEPREP::HepRepType * getGeometryRootType()
void setAttribute(HEPREP::HepRepAttribute *attribute, G4String name, char *value)
HEPREP::HepRepInstance * getGeometryOrEventInstance(HEPREP::HepRepType *type)
void AddPrimitive(const G4Polyline &)
static MCTruthManager * instance
HEPREP::HepRepInstanceTree * getGeometryInstanceTree()
HEPREP::HepRepInstance * getGeometryInstance(G4LogicalVolume *volume, G4Material *material, int depth)
HEPREP::HepRepType * getGeometryType(G4String volumeName, int depth)
static const G4double alpha
const G4VTrajectory * currentTrack
HEPREP::HepRepType * _trajectoryType
HEPREP::HepRepInstanceTree * getEventInstanceTree()
G4String eventNumberPrefix
HEPREP::HepRepInstanceTree * _geometryInstanceTree
void addAttVals(HEPREP::HepRepAttribute *attribute, const std::map< G4String, G4AttDef > *attDefs, std::vector< G4AttValue > *attValues)
void setColor(HEPREP::HepRepAttribute *attribute, const G4Color &color, const G4String &key=G4String("Color"))