ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HEPREP::HepRepFactory Class Referenceabstract

#include <geant4/tree/geant4-10.6-release/source/visualization/HepRep/include/HEPREP/HepRepFactory.h>

+ Inheritance diagram for HEPREP::HepRepFactory:

Public Member Functions

virtual ~HepRepFactory ()
 Destructor.
 
virtual HepRepReadercreateHepRepReader (std::istream *in)=0
 
virtual HepRepReadercreateHepRepReader (std::string inputFileName)=0
 
virtual HepRepWritercreateHepRepWriter (std::ostream *out, bool randomAccess, bool compress)=0
 
virtual HepRepPointcreateHepRepPoint (HepRepInstance *instance, double x, double y, double z)=0
 
virtual HepRepInstancecreateHepRepInstance (HepRepInstance *parent, HepRepType *type)=0
 
virtual HepRepInstancecreateHepRepInstance (HepRepInstanceTree *parent, HepRepType *type)=0
 
virtual HepRepTreeIDcreateHepRepTreeID (std::string name, std::string version, std::string qualifier="top-level")=0
 
virtual HepRepActioncreateHepRepAction (std::string name, std::string expression)=0
 
virtual HepRepInstanceTreecreateHepRepInstanceTree (std::string name, std::string version, HepRepTreeID *typeTree)=0
 
virtual HepRepTypecreateHepRepType (HepRepTypeTree *parent, std::string name)=0
 
virtual HepRepTypecreateHepRepType (HepRepType *parent, std::string name)=0
 
virtual HepRepTypeTreecreateHepRepTypeTree (HepRepTreeID *treeID)=0
 
virtual HepRepcreateHepRep ()=0
 

Detailed Description

HepRepFactory interface.

Author
Mark Donszelmann

Definition at line 33 of file HepRepFactory.h.

View newest version in sPHENIX GitHub at line 33 of file HepRepFactory.h

Constructor & Destructor Documentation

virtual HEPREP::HepRepFactory::~HepRepFactory ( )
inlinevirtual

Destructor.

Definition at line 37 of file HepRepFactory.h.

View newest version in sPHENIX GitHub at line 37 of file HepRepFactory.h

Member Function Documentation

virtual HepRep* HEPREP::HepRepFactory::createHepRep ( )
pure virtual

Creates a HepRep.

Implemented in cheprep::DefaultHepRepFactory.

Referenced by G4HepRepSceneHandler::getHepRep(), and G4HepRepSceneHandler::getHepRepGeometry().

+ Here is the caller graph for this function:

virtual HepRepAction* HEPREP::HepRepFactory::createHepRepAction ( std::string  name,
std::string  expression 
)
pure virtual

Creates a HepRepAction.

Parameters
nameof the action.
expressionof the action.

Implemented in cheprep::DefaultHepRepFactory.

virtual HepRepInstance* HEPREP::HepRepFactory::createHepRepInstance ( HepRepInstance parent,
HepRepType type 
)
pure virtual

Creates a HepRepInstance.

to add the instance to. type the associated type.

Implemented in cheprep::DefaultHepRepFactory.

Referenced by G4HepRepSceneHandler::AddPrimitive(), G4HepRepSceneHandler::AddSolid(), G4HepRepSceneHandler::getEventInstance(), G4HepRepSceneHandler::getGeometryInstance(), G4HepRepSceneHandler::getGeometryOrEventInstance(), and G4HepRepSceneHandler::getGeometryRootInstance().

+ Here is the caller graph for this function:

virtual HepRepInstance* HEPREP::HepRepFactory::createHepRepInstance ( HepRepInstanceTree parent,
HepRepType type 
)
pure virtual

Creates a HepRepInstance.

to add the instance to. type the associated type.

Implemented in cheprep::DefaultHepRepFactory.

virtual HepRepInstanceTree* HEPREP::HepRepFactory::createHepRepInstanceTree ( std::string  name,
std::string  version,
HepRepTreeID typeTree 
)
pure virtual

Creates a HepRepInstanceTree.

The tree needs to be added to the HepRep.

Parameters
nameof the instancetree.
versionof the instancetree.
typeTreeassociated typetree.

Implemented in cheprep::DefaultHepRepFactory.

Referenced by G4HepRepSceneHandler::getEventInstanceTree(), and G4HepRepSceneHandler::getGeometryInstanceTree().

+ Here is the caller graph for this function:

virtual HepRepPoint* HEPREP::HepRepFactory::createHepRepPoint ( HepRepInstance instance,
double  x,
double  y,
double  z 
)
pure virtual

Creates a HepRepPoint.

Parameters
instanceto add the point to.
xx coordinate of point.
yy coordinate of point.
zz coordinate of point.

Implemented in cheprep::DefaultHepRepFactory.

Referenced by G4HepRepSceneHandler::AddPrimitive(), and G4HepRepSceneHandler::AddSolid().

+ Here is the caller graph for this function:

virtual HepRepReader* HEPREP::HepRepFactory::createHepRepReader ( std::istream *  in)
pure virtual

Creates a HepRepReader from a stream.

Parameters
ininput stream.

Implemented in cheprep::DefaultHepRepFactory, and cheprep::XMLHepRepFactory.

virtual HepRepReader* HEPREP::HepRepFactory::createHepRepReader ( std::string  inputFileName)
pure virtual

Creates a HepRepReader from a file name.

Parameters
inputFileNamefile name.

Implemented in cheprep::DefaultHepRepFactory, and cheprep::XMLHepRepFactory.

virtual HepRepTreeID* HEPREP::HepRepFactory::createHepRepTreeID ( std::string  name,
std::string  version,
std::string  qualifier = "top-level" 
)
pure virtual

Creates a HepRepTreeID.

Parameters
nameof the treeID.
versionof the treeID.
qualifierof the treeID.

Implemented in cheprep::DefaultHepRepFactory.

Referenced by G4HepRepSceneHandler::closeHepRep(), G4HepRepSceneHandler::getEventTypeTree(), and G4HepRepSceneHandler::getGeometryTypeTree().

+ Here is the caller graph for this function:

virtual HepRepType* HEPREP::HepRepFactory::createHepRepType ( HepRepTypeTree parent,
std::string  name 
)
pure virtual

Creates a HepRepType.

Parameters
parentto add this type to.
nameof the type to create.

Implemented in cheprep::DefaultHepRepFactory.

Referenced by G4HepRepSceneHandler::getCalHitFaceType(), G4HepRepSceneHandler::getCalHitType(), G4HepRepSceneHandler::getEventType(), G4HepRepSceneHandler::getFullTypeName(), G4HepRepSceneHandler::getGeometryRootType(), G4HepRepSceneHandler::getGeometryType(), G4HepRepSceneHandler::getHitType(), and G4HepRepSceneHandler::getTrajectoryType().

+ Here is the caller graph for this function:

virtual HepRepType* HEPREP::HepRepFactory::createHepRepType ( HepRepType parent,
std::string  name 
)
pure virtual

Creates a HepRepType.

Parameters
parentto add this type to.
nameof the type to create.

Implemented in cheprep::DefaultHepRepFactory.

virtual HepRepTypeTree* HEPREP::HepRepFactory::createHepRepTypeTree ( HepRepTreeID treeID)
pure virtual

Creates a HepRepTypeTree.

The tree needs to be added to the HepRep.

Parameters
treeIDto name the tree being created.

Implemented in cheprep::DefaultHepRepFactory.

Referenced by G4HepRepSceneHandler::getEventTypeTree(), and G4HepRepSceneHandler::getGeometryTypeTree().

+ Here is the caller graph for this function:

virtual HepRepWriter* HEPREP::HepRepFactory::createHepRepWriter ( std::ostream *  out,
bool  randomAccess,
bool  compress 
)
pure virtual

Creates a HepRepWriter.

Parameters
outoutput stream.
randomAccesscreate a writer in a format that will allow random access (may be ignored).
compresscreate a writer that uses compression (may be ignored).

Implemented in cheprep::DefaultHepRepFactory, and cheprep::XMLHepRepFactory.

Referenced by G4HepRepSceneHandler::open(), and G4HepRepSceneHandler::openFile().

+ Here is the caller graph for this function:


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