Public Member Functions | Private Attributes | List of all members
cheprep::DefaultHepRepDefinition Class Referenceabstract

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

Inheritance diagram for cheprep::DefaultHepRepDefinition:
cheprep::DefaultHepRepAttribute HEPREP::HepRepDefinition HEPREP::HepRepAttribute HEPREP::HepRepAttribute cheprep::DefaultHepRepType

Public Member Functions

 DefaultHepRepDefinition ()
 
 ~DefaultHepRepDefinition ()
 
void addAttDef (HEPREP::HepRepAttDef *hepRepAttDef)
 
void addAttDef (std::string name, std::string desc, std::string type, std::string extra)
 
std::set< HEPREP::HepRepAttDef * > getAttDefsFromNode ()
 
HEPREP::HepRepAttDefgetAttDefFromNode (std::string lowerCaseName)
 
HEPREP::HepRepAttDefgetAttDef (std::string name)=0
 
HEPREP::HepRepAttValuegetAttValue (std::string name)=0
 
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)
 

Private Attributes

std::map< std::string, HEPREP::HepRepAttDef * > attDefs
 

Detailed Description

Definition at line 22 of file DefaultHepRepDefinition.h.

Constructor & Destructor Documentation

cheprep::DefaultHepRepDefinition::DefaultHepRepDefinition ( )
cheprep::DefaultHepRepDefinition::~DefaultHepRepDefinition ( )

Member Function Documentation

void cheprep::DefaultHepRepDefinition::addAttDef ( HEPREP::HepRepAttDef attDef)
virtual

Adds an attdef.

Parameters
attDefto be added.

Implements HEPREP::HepRepDefinition.

void cheprep::DefaultHepRepDefinition::addAttDef ( std::string  name,
std::string  desc,
std::string  category,
std::string  extra 
)
virtual

Adds an attdef.

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

Implements HEPREP::HepRepDefinition.

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

Adds an attValue.

Parameters
attValueto be added.

Implements HEPREP::HepRepAttribute.

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

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.

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

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

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

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

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

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

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

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

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

Adds an attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

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

Adds a Color attValue.

Parameters
keyname of attValue
valuevalue of attValue
showLabelshow this as label

Implements HEPREP::HepRepAttribute.

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

Adds a Color attValue.

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

Implements HEPREP::HepRepAttribute.

HEPREP::HepRepAttDef* cheprep::DefaultHepRepDefinition::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.

Implements HEPREP::HepRepDefinition.

Implemented in cheprep::DefaultHepRepType.

HEPREP::HepRepAttDef* cheprep::DefaultHepRepDefinition::getAttDefFromNode ( std::string  lowerCaseName)
virtual

Returns a named attribute definition defined on this node.

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

Implements HEPREP::HepRepDefinition.

std::set<HEPREP::HepRepAttDef *> cheprep::DefaultHepRepDefinition::getAttDefsFromNode ( )
virtual

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

Returns
collection of attributes definitions.

Implements HEPREP::HepRepDefinition.

HEPREP::HepRepAttValue* cheprep::DefaultHepRepDefinition::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 cheprep::DefaultHepRepAttribute.

Implemented in cheprep::DefaultHepRepType.

HEPREP::HepRepAttValue* cheprep::DefaultHepRepAttribute::getAttValueFromNode ( std::string  lowerCaseName)
virtualinherited

Returns a named attribute value from this node.

Parameters
lowerCaseNamename in all lowercase.
Returns
corresponding HepRepAttValue.

Implements HEPREP::HepRepAttribute.

std::set<HEPREP::HepRepAttValue*> cheprep::DefaultHepRepAttribute::getAttValuesFromNode ( )
virtualinherited

Returns a collection of all attribute values from this node.

Returns
collection of HepRepAttValues.

Implements HEPREP::HepRepAttribute.

HEPREP::HepRepAttValue* cheprep::DefaultHepRepAttribute::removeAttValue ( std::string  key)
virtualinherited

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.

Member Data Documentation

std::map<std::string, HEPREP::HepRepAttDef*> cheprep::DefaultHepRepDefinition::attDefs
private

Definition at line 25 of file DefaultHepRepDefinition.h.


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