Public Member Functions | List of all members
HEPREP::HepRepAttribute Class Referenceabstract

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

Inheritance diagram for HEPREP::HepRepAttribute:
cheprep::DefaultHepRepAttribute HEPREP::HepRepDefinition HEPREP::HepRepInstance HEPREP::HepRepPoint cheprep::DefaultHepRepDefinition cheprep::DefaultHepRepInstance cheprep::DefaultHepRepPoint cheprep::DefaultHepRepDefinition HEPREP::HepRepType cheprep::DefaultHepRepInstance cheprep::DefaultHepRepPoint cheprep::DefaultHepRepType cheprep::DefaultHepRepType cheprep::DefaultHepRepType

Public Member Functions

virtual ~HepRepAttribute ()
 Destructor. More...
 
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

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

Member Function Documentation

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

Adds an attValue.

Parameters
attValueto be added.

Implemented in cheprep::DefaultHepRepAttribute.

Referenced by ~HepRepAttribute().

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.

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.

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.

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.

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.

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.

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.

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.

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::DefaultHepRepInstance, cheprep::DefaultHepRepAttribute, cheprep::DefaultHepRepType, cheprep::DefaultHepRepDefinition, and cheprep::DefaultHepRepPoint.

Referenced by ~HepRepAttribute().

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 ~HepRepAttribute().

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 ~HepRepAttribute().

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.

Referenced by ~HepRepAttribute().


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