Public Member Functions | Private Attributes | List of all members
cheprep::DefaultHepRep Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/geant4/v4_10_4_p02ba/source/geant4.10.04.p02/source/visualization/HepRep/include/cheprep/DefaultHepRep.h"

Inheritance diagram for cheprep::DefaultHepRep:
HEPREP::HepRep

Public Member Functions

 DefaultHepRep ()
 
 ~DefaultHepRep ()
 
HEPREP::HepRepcopy (HEPREP::HepRepSelectFilter *filter)
 
std::vector< std::stringgetLayerOrder ()
 
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 ()
 

Private Attributes

std::vector< std::stringlayers
 
std::vector< HEPREP::HepRepTypeTree * > typeTrees
 
std::vector< HEPREP::HepRepInstanceTree * > instanceTrees
 

Detailed Description

Definition at line 24 of file DefaultHepRep.h.

Constructor & Destructor Documentation

cheprep::DefaultHepRep::DefaultHepRep ( )
cheprep::DefaultHepRep::~DefaultHepRep ( )

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.

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.

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

Add a typetree to this heprep.

Parameters
typeTreeto be added.

Implements HEPREP::HepRep.

std::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.

HEPREP::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.

HEPREP::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.

HEPREP::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.

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

Returns a collection of instancetrees.

Returns
collection of HepRepInstanceTrees.

Implements HEPREP::HepRep.

HEPREP::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.

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

Returns the list of layers.

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

Implements HEPREP::HepRep.

HEPREP::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.

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

Returns the collection of all typetrees of this heprep.

Returns
collection of HepRepTypeTrees.

Implements HEPREP::HepRep.

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.

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

Remove an instanectree from this heprep.

Parameters
instanceTreeto be removed.

Implements HEPREP::HepRep.

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

Remove a typetree from this heprep.

Parameters
typeTreeto be removed.

Implements HEPREP::HepRep.

Member Data Documentation

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

Definition at line 29 of file DefaultHepRep.h.

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

Definition at line 27 of file DefaultHepRep.h.

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

Definition at line 28 of file DefaultHepRep.h.


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