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

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

+ Inheritance diagram for HEPREP::HepRepDefinition:
+ Collaboration diagram for HEPREP::HepRepDefinition:

Public Member Functions

virtual ~HepRepDefinition ()
 Destructor.
 
virtual void addAttDef (std::string name, std::string desc, std::string category, std::string extra)=0
 
virtual void addAttDef (HepRepAttDef *attDef)=0
 
virtual HepRepAttDefgetAttDef (std::string name)=0
 
virtual std::set< HepRepAttDef * > getAttDefsFromNode ()=0
 
virtual HepRepAttDefgetAttDefFromNode (std::string lowerCaseName)=0
 
- Public Member Functions inherited from HEPREP::HepRepAttribute
virtual ~HepRepAttribute ()
 Destructor.
 
virtual void addAttValue (HepRepAttValue *attValue)=0
 
virtual void addAttValue (std::string key, char *value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, std::string value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, int64 value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, int value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, double value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, bool value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, std::vector< double > value, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual void addAttValue (std::string key, double red, double green, double blue, double alpha=1.0, int showLabel=HepRepConstants::SHOW_NONE)=0
 
virtual HepRepAttValueremoveAttValue (std::string key)=0
 
virtual HepRepAttValuegetAttValue (std::string name)=0
 
virtual std::set
< HepRepAttValue * > 
getAttValuesFromNode ()=0
 
virtual HepRepAttValuegetAttValueFromNode (std::string lowerCaseName)=0
 

Detailed Description

HepRepDefinition interface.

Author
Mark Donszelmann

Definition at line 27 of file HepRepDefinition.h.

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

Constructor & Destructor Documentation

virtual HEPREP::HepRepDefinition::~HepRepDefinition ( )
inlinevirtual

Destructor.

Definition at line 31 of file HepRepDefinition.h.

View newest version in sPHENIX GitHub at line 31 of file HepRepDefinition.h

Member Function Documentation

virtual void HEPREP::HepRepDefinition::addAttDef ( std::string  name,
std::string  desc,
std::string  category,
std::string  extra 
)
pure virtual

Adds an attdef.

Parameters
namename of the definition.
descdescription of the definition.
categorycategory of the definition.
extraextra info of the definition.

Implemented in cheprep::DefaultHepRepDefinition.

Referenced by G4HepRepSceneHandler::addAttDefs(), G4HepRepSceneHandler::addTopLevelAttributes(), and G4HepRepSceneHandler::getGeometryRootType().

+ Here is the caller graph for this function:

virtual void HEPREP::HepRepDefinition::addAttDef ( HepRepAttDef attDef)
pure virtual

Adds an attdef.

Parameters
attDefto be added.

Implemented in cheprep::DefaultHepRepDefinition.

virtual HepRepAttDef* HEPREP::HepRepDefinition::getAttDef ( std::string  name)
pure virtual

Return a named attribute definition searched on this node and any parent nodes.

Parameters
nameof attribute definition.
Returns
attribute definition.

Implemented in cheprep::DefaultHepRepType, and cheprep::DefaultHepRepDefinition.

virtual HepRepAttDef* HEPREP::HepRepDefinition::getAttDefFromNode ( std::string  lowerCaseName)
pure virtual

Returns a named attribute definition defined on this node.

Parameters
lowerCaseNamename of the attribute in lower case.
Returns
attribute definition.

Implemented in cheprep::DefaultHepRepDefinition.

Referenced by cheprep::DefaultHepRepType::getAttDef().

+ Here is the caller graph for this function:

virtual std::set<HepRepAttDef *> HEPREP::HepRepDefinition::getAttDefsFromNode ( )
pure virtual

Returns a collection of all attribute definitions defined on this node.

Returns
collection of attributes definitions.

Implemented in cheprep::DefaultHepRepDefinition.

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

+ Here is the caller graph for this function:


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