Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
HEPREP::HepRepAttribute Class Referenceabstract

#include <HepRepAttribute.h>

+ Inheritance diagram for HEPREP::HepRepAttribute:

Public Member Functions

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

HepRepAttribute interface.

Author
Mark Donszelmann

Definition at line 29 of file HepRepAttribute.h.

Constructor & Destructor Documentation

◆ ~HepRepAttribute()

virtual HEPREP::HepRepAttribute::~HepRepAttribute ( )
inlinevirtual

Destructor.

Definition at line 33 of file HepRepAttribute.h.

33{ /* nop */; }

Member Function Documentation

◆ addAttValue() [1/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( HepRepAttValue attValue)
pure virtual

Adds an attValue.

Parameters
attValueto be added.

Implemented in cheprep::DefaultHepRepAttribute.

Referenced by G4HepRepSceneHandler::AddSolid().

◆ addAttValue() [2/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
bool  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implemented in cheprep::DefaultHepRepAttribute.

◆ addAttValue() [3/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
char *  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure 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

Implemented in cheprep::DefaultHepRepAttribute.

◆ addAttValue() [4/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
double  red,
double  green,
double  blue,
double  alpha = 1.0,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtual

Adds a Color attValue.

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

Implemented in cheprep::DefaultHepRepAttribute.

◆ addAttValue() [5/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
double  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implemented in cheprep::DefaultHepRepAttribute.

◆ addAttValue() [6/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
int  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implemented in cheprep::DefaultHepRepAttribute.

◆ addAttValue() [7/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
int64  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implemented in cheprep::DefaultHepRepAttribute.

◆ addAttValue() [8/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
std::string  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtual

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implemented in cheprep::DefaultHepRepAttribute.

◆ addAttValue() [9/9]

virtual void HEPREP::HepRepAttribute::addAttValue ( std::string  key,
std::vector< double >  value,
int  showLabel = HepRepConstants::SHOW_NONE 
)
pure virtual

Adds a Color attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implemented in cheprep::DefaultHepRepAttribute.

◆ getAttValue()

virtual HepRepAttValue * HEPREP::HepRepAttribute::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.

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

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

◆ getAttValueFromNode()

virtual HepRepAttValue * HEPREP::HepRepAttribute::getAttValueFromNode ( std::string  lowerCaseName)
pure virtual

Returns a named attribute value from this node.

Parameters
lowerCaseNamename in all lowercase.
Returns
corresponding HepRepAttValue.

Implemented in cheprep::DefaultHepRepAttribute.

Referenced by cheprep::DefaultHepRepType::getAttValue(), and cheprep::XMLHepRepWriter::write().

◆ getAttValuesFromNode()

virtual std::set< HepRepAttValue * > HEPREP::HepRepAttribute::getAttValuesFromNode ( )
pure virtual

Returns a collection of all attribute values from this node.

Returns
collection of HepRepAttValues.

Implemented in cheprep::DefaultHepRepAttribute.

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

◆ removeAttValue()

virtual HepRepAttValue * HEPREP::HepRepAttribute::removeAttValue ( std::string  key)
pure virtual

Remove the attvalue named by key.

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

Implemented in cheprep::DefaultHepRepAttribute.


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