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

#include <geant4/tree/geant4-10.6-release/source/visualization/HepRep/include/cheprep/DefaultHepRepInstanceTree.h>

+ Inheritance diagram for cheprep::DefaultHepRepInstanceTree:
+ Collaboration diagram for cheprep::DefaultHepRepInstanceTree:

Public Member Functions

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

Private Attributes

HEPREP::HepRepTreeIDtypeTree
 
std::vector
< HEPREP::HepRepInstance * > 
instances
 
std::vector
< HEPREP::HepRepTreeID * > 
instanceTrees
 

Detailed Description

Definition at line 25 of file DefaultHepRepInstanceTree.h.

View newest version in sPHENIX GitHub at line 25 of file DefaultHepRepInstanceTree.h

Constructor & Destructor Documentation

cheprep::DefaultHepRepInstanceTree::DefaultHepRepInstanceTree ( std::string  name,
std::string  version,
HEPREP::HepRepTreeID typeTree 
)

Definition at line 13 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 13 of file DefaultHepRepInstanceTree.cc

cheprep::DefaultHepRepInstanceTree::~DefaultHepRepInstanceTree ( )

Definition at line 17 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 17 of file DefaultHepRepInstanceTree.cc

References instances.

Member Function Documentation

void cheprep::DefaultHepRepInstanceTree::addInstance ( HEPREP::HepRepInstance instance)
virtual

Adds an instance to this instancetree.

Parameters
instanceto be added.

Implements HEPREP::HepRepInstanceTree.

Definition at line 33 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 33 of file DefaultHepRepInstanceTree.cc

References instances.

void cheprep::DefaultHepRepInstanceTree::addInstanceTree ( HEPREP::HepRepTreeID instanceTree)
virtual

Adds a related instance tree to this instancetree.

Parameters
instanceTreerelated instancetree.

Implements HEPREP::HepRepInstanceTree.

Definition at line 45 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 45 of file DefaultHepRepInstanceTree.cc

References instanceTrees.

HepRepInstanceTree * cheprep::DefaultHepRepInstanceTree::copy ( HEPREP::HepRepTypeTree typeTree,
HEPREP::HepRepSelectFilter filter 
)
virtual

Returns a deep copy of this instancetree.

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

Implements HEPREP::HepRepInstanceTree.

Definition at line 28 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 28 of file DefaultHepRepInstanceTree.cc

vector< HepRepInstance * > cheprep::DefaultHepRepInstanceTree::getInstances ( )
virtual

Returns a collection of instances.

Returns
collection of HepRepInstances.

Implements HEPREP::HepRepInstanceTree.

Definition at line 41 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 41 of file DefaultHepRepInstanceTree.cc

References instances.

vector< HepRepTreeID * > cheprep::DefaultHepRepInstanceTree::getInstanceTreeList ( )
virtual

Returns a collection of associated instance trees.

Returns
collection of HepRepTreeIDs.

Implements HEPREP::HepRepInstanceTree.

Definition at line 53 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 53 of file DefaultHepRepInstanceTree.cc

References instanceTrees.

HepRepTreeID * cheprep::DefaultHepRepInstanceTree::getTypeTree ( )
virtual

Returns the associated typetree.

Returns
TreeID of the associated typetree.

Implements HEPREP::HepRepInstanceTree.

Definition at line 49 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 49 of file DefaultHepRepInstanceTree.cc

References typeTree.

void cheprep::DefaultHepRepInstanceTree::overlay ( HEPREP::HepRepInstanceTree instanceTree)
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.

Implements HEPREP::HepRepInstanceTree.

Definition at line 24 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 24 of file DefaultHepRepInstanceTree.cc

void cheprep::DefaultHepRepInstanceTree::removeInstance ( HEPREP::HepRepInstance instance)
virtual

Removes an instance from this instancetree.

Parameters
instanceto be removed.

Implements HEPREP::HepRepInstanceTree.

Definition at line 37 of file DefaultHepRepInstanceTree.cc.

View newest version in sPHENIX GitHub at line 37 of file DefaultHepRepInstanceTree.cc

Member Data Documentation

std::vector<HEPREP::HepRepInstance*> cheprep::DefaultHepRepInstanceTree::instances
private

Definition at line 29 of file DefaultHepRepInstanceTree.h.

View newest version in sPHENIX GitHub at line 29 of file DefaultHepRepInstanceTree.h

Referenced by addInstance(), getInstances(), and ~DefaultHepRepInstanceTree().

std::vector<HEPREP::HepRepTreeID*> cheprep::DefaultHepRepInstanceTree::instanceTrees
private

Definition at line 30 of file DefaultHepRepInstanceTree.h.

View newest version in sPHENIX GitHub at line 30 of file DefaultHepRepInstanceTree.h

Referenced by addInstanceTree(), and getInstanceTreeList().

HEPREP::HepRepTreeID* cheprep::DefaultHepRepInstanceTree::typeTree
private

Definition at line 28 of file DefaultHepRepInstanceTree.h.

View newest version in sPHENIX GitHub at line 28 of file DefaultHepRepInstanceTree.h

Referenced by getTypeTree().


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