Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
|
#include <DefaultHepRepAttribute.h>
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::HepRepAttValue * | getAttValueFromNode (std::string lowerCaseName) |
HEPREP::HepRepAttValue * | removeAttValue (std::string key) |
HEPREP::HepRepAttValue * | getAttValue (std::string name)=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 HepRepAttValue * | removeAttValue (std::string key)=0 |
virtual HepRepAttValue * | getAttValue (std::string name)=0 |
virtual std::set< HepRepAttValue * > | getAttValuesFromNode ()=0 |
virtual HepRepAttValue * | getAttValueFromNode (std::string lowerCaseName)=0 |
Definition at line 23 of file DefaultHepRepAttribute.h.
cheprep::DefaultHepRepAttribute::DefaultHepRepAttribute | ( | ) |
Definition at line 21 of file DefaultHepRepAttribute.cc.
cheprep::DefaultHepRepAttribute::~DefaultHepRepAttribute | ( | ) |
Definition at line 24 of file DefaultHepRepAttribute.cc.
|
virtual |
Adds an attValue.
attValue | to be added. |
Implements HEPREP::HepRepAttribute.
Definition at line 38 of file DefaultHepRepAttribute.cc.
Referenced by addAttValue().
|
virtual |
Adds an attValue.
key | name of attValue |
value | value of attValue |
showLabel | show this as label |
Implements HEPREP::HepRepAttribute.
Definition at line 64 of file DefaultHepRepAttribute.cc.
|
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);
key | name of attValue |
value | value of attValue |
showLabel | show this as label |
Implements HEPREP::HepRepAttribute.
Definition at line 44 of file DefaultHepRepAttribute.cc.
|
virtual |
Adds a Color attValue.
key | name of attValue |
red | color |
green | color |
blue | color |
alpha | value |
showLabel | show this as label |
Implements HEPREP::HepRepAttribute.
Definition at line 72 of file DefaultHepRepAttribute.cc.
|
virtual |
Adds an attValue.
key | name of attValue |
value | value of attValue |
showLabel | show this as label |
Implements HEPREP::HepRepAttribute.
Definition at line 60 of file DefaultHepRepAttribute.cc.
|
virtual |
Adds an attValue.
key | name of attValue |
value | value of attValue |
showLabel | show this as label |
Implements HEPREP::HepRepAttribute.
Definition at line 56 of file DefaultHepRepAttribute.cc.
|
virtual |
Adds an attValue.
key | name of attValue |
value | value of attValue |
showLabel | show this as label |
Implements HEPREP::HepRepAttribute.
Definition at line 52 of file DefaultHepRepAttribute.cc.
|
virtual |
Adds an attValue.
key | name of attValue |
value | value of attValue |
showLabel | show this as label |
Implements HEPREP::HepRepAttribute.
Definition at line 48 of file DefaultHepRepAttribute.cc.
|
virtual |
Adds a Color attValue.
key | name of attValue |
value | value of attValue |
showLabel | show this as label |
Implements HEPREP::HepRepAttribute.
Definition at line 68 of file DefaultHepRepAttribute.cc.
|
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.
name | of attribute value. |
Implements HEPREP::HepRepAttribute.
Implemented in cheprep::DefaultHepRepPoint, cheprep::DefaultHepRepInstance, cheprep::DefaultHepRepType, and cheprep::DefaultHepRepDefinition.
|
virtual |
Returns a named attribute value from this node.
lowerCaseName | name in all lowercase. |
Implements HEPREP::HepRepAttribute.
Definition at line 81 of file DefaultHepRepAttribute.cc.
Referenced by cheprep::DefaultHepRepPoint::getAttValue(), and cheprep::DefaultHepRepInstance::getAttValue().
|
virtual |
Returns a collection of all attribute values from this node.
Implements HEPREP::HepRepAttribute.
Definition at line 30 of file DefaultHepRepAttribute.cc.
|
virtual |
Remove the attvalue named by key.
key | name of the attValue to be removed. |
Implements HEPREP::HepRepAttribute.
Definition at line 87 of file DefaultHepRepAttribute.cc.