Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HEPREP::HepRepInstanceTree Class Referenceabstract

#include <HepRepInstanceTree.h>

+ Inheritance diagram for HEPREP::HepRepInstanceTree:

Public Member Functions

virtual ~HepRepInstanceTree ()
 Destructor.
 
virtual void overlay (HepRepInstanceTree *instanceTree)=0
 
virtual void addInstance (HepRepInstance *instance)=0
 
virtual void removeInstance (HepRepInstance *instance)=0
 
virtual std::vector< HepRepInstance * > getInstances ()=0
 
virtual void addInstanceTree (HepRepTreeID *instanceTree)=0
 
virtual std::vector< HepRepTreeID * > getInstanceTreeList ()=0
 
virtual HepRepTreeIDgetTypeTree ()=0
 
virtual HepRepInstanceTreecopy (HepRepTypeTree *typeTree, HepRepSelectFilter *filter=NULL)=0
 
- Public Member Functions inherited from HEPREP::HepRepTreeID
virtual ~HepRepTreeID ()
 Destructor.
 
virtual std::string getName ()=0
 
virtual std::string getVersion ()=0
 
virtual std::string getQualifier ()=0
 
virtual void setQualifier (std::string qualifier)=0
 

Detailed Description

HepRepInstanceTree interface.

Author
Mark Donszelmann

Definition at line 28 of file HepRepInstanceTree.h.

Constructor & Destructor Documentation

◆ ~HepRepInstanceTree()

virtual HEPREP::HepRepInstanceTree::~HepRepInstanceTree ( )
inlinevirtual

Destructor.

Definition at line 32 of file HepRepInstanceTree.h.

32{ /* nop */; }

Member Function Documentation

◆ addInstance()

virtual void HEPREP::HepRepInstanceTree::addInstance ( HepRepInstance instance)
pure virtual

Adds an instance to this instancetree.

Parameters
instanceto be added.

Implemented in cheprep::DefaultHepRepInstanceTree.

Referenced by cheprep::DefaultHepRepInstance::DefaultHepRepInstance().

◆ addInstanceTree()

virtual void HEPREP::HepRepInstanceTree::addInstanceTree ( HepRepTreeID instanceTree)
pure virtual

Adds a related instance tree to this instancetree.

Parameters
instanceTreerelated instancetree.

Implemented in cheprep::DefaultHepRepInstanceTree.

Referenced by G4HepRepSceneHandler::closeHepRep().

◆ copy()

virtual HepRepInstanceTree * HEPREP::HepRepInstanceTree::copy ( HepRepTypeTree typeTree,
HepRepSelectFilter filter = NULL 
)
pure virtual

Returns a deep copy of this instancetree.

Parameters
filterto filter the instances.
Returns
copy of this instancetree.

Implemented in cheprep::DefaultHepRepInstanceTree.

◆ getInstances()

virtual std::vector< HepRepInstance * > HEPREP::HepRepInstanceTree::getInstances ( )
pure virtual

Returns a collection of instances.

Returns
collection of HepRepInstances.

Implemented in cheprep::DefaultHepRepInstanceTree.

Referenced by cheprep::XMLHepRepWriter::write().

◆ getInstanceTreeList()

virtual std::vector< HepRepTreeID * > HEPREP::HepRepInstanceTree::getInstanceTreeList ( )
pure virtual

Returns a collection of associated instance trees.

Returns
collection of HepRepTreeIDs.

Implemented in cheprep::DefaultHepRepInstanceTree.

Referenced by cheprep::XMLHepRepWriter::write().

◆ getTypeTree()

virtual HepRepTreeID * HEPREP::HepRepInstanceTree::getTypeTree ( )
pure virtual

Returns the associated typetree.

Returns
TreeID of the associated typetree.

Implemented in cheprep::DefaultHepRepInstanceTree.

Referenced by cheprep::XMLHepRepWriter::write().

◆ overlay()

virtual void HEPREP::HepRepInstanceTree::overlay ( HepRepInstanceTree instanceTree)
pure virtual

Overlays the instance tree on the current tree.

The list of instances of the instanceTree has to be the same as the current tree.

Implemented in cheprep::DefaultHepRepInstanceTree.

◆ removeInstance()

virtual void HEPREP::HepRepInstanceTree::removeInstance ( HepRepInstance instance)
pure virtual

Removes an instance from this instancetree.

Parameters
instanceto be removed.

Implemented in cheprep::DefaultHepRepInstanceTree.


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