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

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

+ Inheritance diagram for cheprep::DefaultHepRep:
+ Collaboration diagram for cheprep::DefaultHepRep:

Public Member Functions

 DefaultHepRep ()
 
 ~DefaultHepRep ()
 
HEPREP::HepRepcopy (HEPREP::HepRepSelectFilter *filter)
 
std::vector< std::string > getLayerOrder ()
 
void addLayer (std::string layer)
 
void addTypeTree (HEPREP::HepRepTypeTree *typeTree)
 
void removeTypeTree (HEPREP::HepRepTypeTree *typeTree)
 
HEPREP::HepRepTypeTreegetTypeTree (std::string name, std::string version)
 
std::vector
< HEPREP::HepRepTypeTree * > 
getTypeTreeList ()
 
void addInstanceTree (HEPREP::HepRepInstanceTree *instanceTree)
 
void overlayInstanceTree (HEPREP::HepRepInstanceTree *instanceTree)
 
void removeInstanceTree (HEPREP::HepRepInstanceTree *instanceTree)
 
HEPREP::HepRepInstanceTreegetInstanceTreeTop (std::string name, std::string version)
 
HEPREP::HepRepInstanceTreegetInstances (std::string name, std::string version, std::vector< std::string > typeNames)
 
HEPREP::HepRepInstanceTreegetInstancesAfterAction (std::string name, std::string version, std::vector< std::string > typeNames, std::vector< HEPREP::HepRepAction * > actions, bool getPoints, bool getDrawAtts, bool getNonDrawAtts, std::vector< std::string > invertAtts)
 
std::string checkForException ()
 
std::vector
< HEPREP::HepRepInstanceTree * > 
getInstanceTreeList ()
 
- Public Member Functions inherited from HEPREP::HepRep
virtual ~HepRep ()
 Destructor.
 

Private Attributes

std::vector< std::string > layers
 
std::vector
< HEPREP::HepRepTypeTree * > 
typeTrees
 
std::vector
< HEPREP::HepRepInstanceTree * > 
instanceTrees
 

Detailed Description

Definition at line 23 of file DefaultHepRep.h.

View newest version in sPHENIX GitHub at line 23 of file DefaultHepRep.h

Constructor & Destructor Documentation

cheprep::DefaultHepRep::DefaultHepRep ( )

Definition at line 13 of file DefaultHepRep.cc.

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

cheprep::DefaultHepRep::~DefaultHepRep ( )

Definition at line 16 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 16 of file DefaultHepRep.cc

Member Function Documentation

void cheprep::DefaultHepRep::addInstanceTree ( HEPREP::HepRepInstanceTree instanceTree)
virtual

Searches for a named type in any of the typetrees. The first occurrence found is returned.

Parameters
namename of type.
Returns
named HepRepType. Adds an instancetree to this heprep.
Parameters
instanceTreeto be added.

Implements HEPREP::HepRep.

Definition at line 56 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 56 of file DefaultHepRep.cc

void cheprep::DefaultHepRep::addLayer ( std::string  layer)
virtual

Add a layer to the list of layers in this heprep. The layer is added to the back of the list.

Parameters
layername of layer to be added to the back of the list.

Implements HEPREP::HepRep.

Definition at line 34 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 34 of file DefaultHepRep.cc

void cheprep::DefaultHepRep::addTypeTree ( HEPREP::HepRepTypeTree typeTree)
virtual

Add a typetree to this heprep.

Parameters
typeTreeto be added.

Implements HEPREP::HepRep.

Definition at line 38 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 38 of file DefaultHepRep.cc

string cheprep::DefaultHepRep::checkForException ( )
virtual

Returns last exception thrown and clears it. Useful for implementations without exception handling.

Returns
last exception and clears it.

Implements HEPREP::HepRep.

Definition at line 93 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 93 of file DefaultHepRep.cc

HepRep * cheprep::DefaultHepRep::copy ( HEPREP::HepRepSelectFilter filter)
virtual

Returns a deep copy of the heprep, with all its attached trees, where instances are filtered using a HepRepSelectFilter.

Parameters
filterto be used for filtering instances.
Returns
copy of heprep.

Implements HEPREP::HepRep.

Definition at line 25 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 25 of file DefaultHepRep.cc

HepRepInstanceTree * cheprep::DefaultHepRep::getInstances ( std::string  name,
std::string  version,
std::vector< std::string >  typeNames 
)
virtual

Returns a named and versioned instancetree for a list of typenames.

This tree needs to be added to the heprep afterwards.

Parameters
namename of the instancetree.
versionversion of the instancetree.
typeNamesa list of typenames for which we need instancetrees.
Returns
HepRepIntanceTree

Implements HEPREP::HepRep.

Definition at line 74 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 74 of file DefaultHepRep.cc

HepRepInstanceTree * cheprep::DefaultHepRep::getInstancesAfterAction ( std::string  name,
std::string  version,
std::vector< std::string >  typeNames,
std::vector< HEPREP::HepRepAction * >  actions,
bool  getPoints,
bool  getDrawAtts,
bool  getNonDrawAtts,
std::vector< std::string >  invertAtts 
)
virtual

Returns a named and versioned instancetree for a list of typenames after executing some action and for specific filters.

This tree needs to be added to the heprep afterwards.

The inversion effect of invertAtts depends on the values of GetDrawAtts and GetNonDrawAtts as follows:

  • GetDrawAtts GetNonDrawAtts effect of InvertAtts
  • FALSE FALSE all Attributes specified will be downloaded
  • TRUE FALSE Draw Attributes specified will be omitted, NonDraw Attributes specified will be included
  • FALSE TRUE Draw Attributes specified will be included, NonDraw Attributes specified will be omitted
  • TRUE TRUE all Attributes specified will be omitted
Parameters
namename of the instancetree.
versionversion of the instancetree.
typeNamesa list of typenames for which we need instancetrees.
actionsexecute this list of actions before returning.
getPointsinclude the HepRepPoints in the instance tree.
getDrawAttsinclude the Draw attributes in the instance tree.
getNonDrawAttsinclude the Non-Draw attributes in the instance tree.
invertAttslist of attributes to be included or not depending on getDrawAtts and getNonDrawAtts.
Returns
HepRepIntanceTree

Implements HEPREP::HepRep.

Definition at line 80 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 80 of file DefaultHepRep.cc

vector< HepRepInstanceTree * > cheprep::DefaultHepRep::getInstanceTreeList ( )
virtual

Returns a collection of instancetrees.

Returns
collection of HepRepInstanceTrees.

Implements HEPREP::HepRep.

Definition at line 97 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 97 of file DefaultHepRep.cc

HepRepInstanceTree * cheprep::DefaultHepRep::getInstanceTreeTop ( std::string  name,
std::string  version 
)
virtual

Returns a named and versioned instancetree. FIXME: doc is incorrect here, should only return TOP of the tree. Filling in should be done by getInstances calls.

This tree needs to be added to the heprep afterwards.

Parameters
namename of the instancetree.
versionversion of the instancetree.
Returns
HepRepIntanceTree

Implements HEPREP::HepRep.

Definition at line 69 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 69 of file DefaultHepRep.cc

vector< string > cheprep::DefaultHepRep::getLayerOrder ( )
virtual

Returns the list of layers.

Returns
the known layer names, in the order back-to-front.

Implements HEPREP::HepRep.

Definition at line 30 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 30 of file DefaultHepRep.cc

HepRepTypeTree * cheprep::DefaultHepRep::getTypeTree ( std::string  name,
std::string  version 
)
virtual

Returns a named and versioned typetree.

Parameters
namename of the typetree.
versionversion of the typetree.
Returns
named and versioned HepRepTypeTree.

Implements HEPREP::HepRep.

Definition at line 47 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 47 of file DefaultHepRep.cc

vector< HepRepTypeTree * > cheprep::DefaultHepRep::getTypeTreeList ( )
virtual

Returns the collection of all typetrees of this heprep.

Returns
collection of HepRepTypeTrees.

Implements HEPREP::HepRep.

Definition at line 52 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 52 of file DefaultHepRep.cc

void cheprep::DefaultHepRep::overlayInstanceTree ( HEPREP::HepRepInstanceTree instanceTree)
virtual

Overlays an instancetree to this heprep, overriding attributes and adding children.

Parameters
instanceTreeto be overlaid.

Implements HEPREP::HepRep.

Definition at line 61 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 61 of file DefaultHepRep.cc

void cheprep::DefaultHepRep::removeInstanceTree ( HEPREP::HepRepInstanceTree instanceTree)
virtual

Remove an instanectree from this heprep.

Parameters
instanceTreeto be removed.

Implements HEPREP::HepRep.

Definition at line 65 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 65 of file DefaultHepRep.cc

void cheprep::DefaultHepRep::removeTypeTree ( HEPREP::HepRepTypeTree typeTree)
virtual

Remove a typetree from this heprep.

Parameters
typeTreeto be removed.

Implements HEPREP::HepRep.

Definition at line 43 of file DefaultHepRep.cc.

View newest version in sPHENIX GitHub at line 43 of file DefaultHepRep.cc

Member Data Documentation

std::vector<HEPREP::HepRepInstanceTree*> cheprep::DefaultHepRep::instanceTrees
private

Definition at line 28 of file DefaultHepRep.h.

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

std::vector<std::string> cheprep::DefaultHepRep::layers
private

Definition at line 26 of file DefaultHepRep.h.

View newest version in sPHENIX GitHub at line 26 of file DefaultHepRep.h

std::vector<HEPREP::HepRepTypeTree*> cheprep::DefaultHepRep::typeTrees
private

Definition at line 27 of file DefaultHepRep.h.

View newest version in sPHENIX GitHub at line 27 of file DefaultHepRep.h


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