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

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

+ Inheritance diagram for cheprep::DefaultHepRepAttribute:
+ Collaboration diagram for cheprep::DefaultHepRepAttribute:

Public Member Functions

 DefaultHepRepAttribute ()
 
 ~DefaultHepRepAttribute ()
 
std::set
< HEPREP::HepRepAttValue * > 
getAttValuesFromNode ()
 
void addAttValue (HEPREP::HepRepAttValue *hepRepAttValue)
 
void addAttValue (std::string key, char *value, int showLabel)
 
void addAttValue (std::string key, std::string value, int showLabel)
 
void addAttValue (std::string key, int value, int showLabel)
 
void addAttValue (std::string key, int64 value, int showLabel)
 
void addAttValue (std::string key, double value, int showLabel)
 
void addAttValue (std::string key, bool value, int showLabel)
 
void addAttValue (std::string key, std::vector< double > value, int showLabel)
 
void addAttValue (std::string key, double red, double green, double blue, double alpha, int showLabel)
 
HEPREP::HepRepAttValuegetAttValueFromNode (std::string lowerCaseName)
 
HEPREP::HepRepAttValueremoveAttValue (std::string key)
 
HEPREP::HepRepAttValuegetAttValue (std::string name)=0
 
- Public Member Functions inherited from HEPREP::HepRepAttribute
virtual ~HepRepAttribute ()
 Destructor.
 

Private Attributes

std::map< std::string,
HEPREP::HepRepAttValue * > 
attValues
 

Detailed Description

Definition at line 22 of file DefaultHepRepAttribute.h.

View newest version in sPHENIX GitHub at line 22 of file DefaultHepRepAttribute.h

Constructor & Destructor Documentation

cheprep::DefaultHepRepAttribute::DefaultHepRepAttribute ( )

Definition at line 20 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 20 of file DefaultHepRepAttribute.cc

cheprep::DefaultHepRepAttribute::~DefaultHepRepAttribute ( )

Definition at line 23 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 23 of file DefaultHepRepAttribute.cc

Member Function Documentation

void cheprep::DefaultHepRepAttribute::addAttValue ( HEPREP::HepRepAttValue attValue)
virtual

Adds an attValue.

Parameters
attValueto be added.

Implements HEPREP::HepRepAttribute.

Definition at line 37 of file DefaultHepRepAttribute.cc.

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

References HEPREP::HepRepAttValue::getLowerCaseName().

+ Here is the call graph for this function:

void cheprep::DefaultHepRepAttribute::addAttValue ( std::string  key,
char *  value,
int  showLabel 
)
virtual

Adds a char* attValue as a String. This call should be mapped to addAttValue(std::string, std::string, int); and necessary because C++ converts char* into bool and would thus call addAttValue(std::string, bool, int) for a call such as addAttValue("drawAs", "Cylinder", 0);

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

Definition at line 43 of file DefaultHepRepAttribute.cc.

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

void cheprep::DefaultHepRepAttribute::addAttValue ( std::string  key,
std::string  value,
int  showLabel 
)
virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

Definition at line 47 of file DefaultHepRepAttribute.cc.

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

void cheprep::DefaultHepRepAttribute::addAttValue ( std::string  key,
int  value,
int  showLabel 
)
virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

Definition at line 55 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 55 of file DefaultHepRepAttribute.cc

void cheprep::DefaultHepRepAttribute::addAttValue ( std::string  key,
int64  value,
int  showLabel 
)
virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

Definition at line 51 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 51 of file DefaultHepRepAttribute.cc

void cheprep::DefaultHepRepAttribute::addAttValue ( std::string  key,
double  value,
int  showLabel 
)
virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

Definition at line 59 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 59 of file DefaultHepRepAttribute.cc

void cheprep::DefaultHepRepAttribute::addAttValue ( std::string  key,
bool  value,
int  showLabel 
)
virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

Definition at line 63 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 63 of file DefaultHepRepAttribute.cc

void cheprep::DefaultHepRepAttribute::addAttValue ( std::string  key,
std::vector< double >  value,
int  showLabel 
)
virtual

Adds a Color attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

Definition at line 67 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 67 of file DefaultHepRepAttribute.cc

void cheprep::DefaultHepRepAttribute::addAttValue ( std::string  key,
double  red,
double  green,
double  blue,
double  alpha,
int  showLabel 
)
virtual

Adds a Color attValue.

Parameters
keyname of attValue
redcolor
greencolor
bluecolor
alphavalue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

Definition at line 71 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 71 of file DefaultHepRepAttribute.cc

References color().

+ Here is the call graph for this function:

HEPREP::HepRepAttValue* cheprep::DefaultHepRepAttribute::getAttValue ( std::string  name)
pure virtual

Returns the attValue specified by name. This attValue is normally searched on the node itself and then on its type, moving up the typetree.

Parameters
nameof attribute value.
Returns
attribute value.

Implements HEPREP::HepRepAttribute.

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

HepRepAttValue * cheprep::DefaultHepRepAttribute::getAttValueFromNode ( std::string  lowerCaseName)
virtual

Returns a named attribute value from this node.

Parameters
lowerCaseNamename in all lowercase.
Returns
corresponding HepRepAttValue.

Implements HEPREP::HepRepAttribute.

Definition at line 80 of file DefaultHepRepAttribute.cc.

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

References int(), and Acts::Test::transform.

Referenced by cheprep::DefaultHepRepPoint::getAttValue(), and cheprep::DefaultHepRepInstance::getAttValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

set< HepRepAttValue * > cheprep::DefaultHepRepAttribute::getAttValuesFromNode ( )
virtual

Returns a collection of all attribute values from this node.

Returns
collection of HepRepAttValues.

Implements HEPREP::HepRepAttribute.

Definition at line 29 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 29 of file DefaultHepRepAttribute.cc

HepRepAttValue * cheprep::DefaultHepRepAttribute::removeAttValue ( std::string  key)
virtual

Remove the attvalue named by key.

Parameters
keyname of the attValue to be removed.
Returns
removed HepRepAttValue, or null if not removed.

Implements HEPREP::HepRepAttribute.

Definition at line 86 of file DefaultHepRepAttribute.cc.

View newest version in sPHENIX GitHub at line 86 of file DefaultHepRepAttribute.cc

References int(), and Acts::Test::transform.

+ Here is the call graph for this function:

Member Data Documentation

std::map<std::string, HEPREP::HepRepAttValue*> cheprep::DefaultHepRepAttribute::attValues
private

Definition at line 25 of file DefaultHepRepAttribute.h.

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


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