Public Member Functions | Private Attributes | List of all members
cheprep::DefaultHepRepType Class Reference

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

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

Public Member Functions

 DefaultHepRepType (HEPREP::HepRepType *parent, std::string name)
 
 DefaultHepRepType (HEPREP::HepRepTypeTree *parent, std::string name)
 
 ~DefaultHepRepType ()
 
HEPREP::HepRepTypegetSuperType ()
 
HEPREP::HepRepAttDefgetAttDef (std::string name)
 
HEPREP::HepRepAttValuegetAttValue (std::string name)
 
HEPREP::HepRepTypecopy (HEPREP::HepRepType *parent)
 
std::string getName ()
 
std::string getFullName ()
 
std::string getDescription ()
 
void setDescription (std::string description)
 
std::string getInfoURL ()
 
void setInfoURL (std::string infoURL)
 
void addType (HEPREP::HepRepType *type)
 
std::vector< HEPREP::HepRepType * > getTypeList ()
 
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)
 
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

HEPREP::HepRepTypeparent
 
std::vector< HEPREP::HepRepType * > types
 
std::string name
 
std::string description
 
std::string infoURL
 

Detailed Description

Definition at line 25 of file DefaultHepRepType.h.

Constructor & Destructor Documentation

cheprep::DefaultHepRepType::DefaultHepRepType ( HEPREP::HepRepType parent,
std::string  name 
)
cheprep::DefaultHepRepType::DefaultHepRepType ( HEPREP::HepRepTypeTree parent,
std::string  name 
)
cheprep::DefaultHepRepType::~DefaultHepRepType ( )

Member Function Documentation

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

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 
)
virtualinherited

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.

void cheprep::DefaultHepRepType::addType ( HEPREP::HepRepType type)
virtual

Adds a sub-type to this type.

Parameters
typesub-type to be added.

Implements HEPREP::HepRepType.

HEPREP::HepRepType* cheprep::DefaultHepRepType::copy ( HEPREP::HepRepType parent)
virtual

Returns a deep copy of this type.

Parameters
parentto which this copy is added.
Returns
copy of this type.

Implements HEPREP::HepRepType.

HEPREP::HepRepAttDef* cheprep::DefaultHepRepType::getAttDef ( std::string  name)
virtual

Return a named attribute definition searched on this node and any parent nodes.

Parameters
nameof attribute definition.
Returns
attribute definition.

Implements cheprep::DefaultHepRepDefinition.

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

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 ( )
virtualinherited

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

Returns
collection of attributes definitions.

Implements HEPREP::HepRepDefinition.

HEPREP::HepRepAttValue* cheprep::DefaultHepRepType::getAttValue ( std::string  name)
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::DefaultHepRepDefinition.

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.

std::string cheprep::DefaultHepRepType::getDescription ( )
virtual

Returns the description of this type.

Returns
description of type.

Implements HEPREP::HepRepType.

std::string cheprep::DefaultHepRepType::getFullName ( )
virtual

Returns the full name of this type. The full name is constructed from the root of the typeTree (without the typeTreeName) by concatenating all the node names separated by slashes "/". For example: Geometry/InnerDetector/Sector24/Wire20

Returns
full name of type.
See also
getName()

Implements HEPREP::HepRepType.

std::string cheprep::DefaultHepRepType::getInfoURL ( )
virtual

Returns the information URL of this type.

Returns
info URL of type.

Implements HEPREP::HepRepType.

std::string cheprep::DefaultHepRepType::getName ( )
virtual

Returns the name of this type. This is the full name if one uses flat-types, and the node name if one uses hierarchical typenames. It is the name supplied at construction of the type.

Returns
name of type.
See also
getFullName()

Implements HEPREP::HepRepType.

HEPREP::HepRepType* cheprep::DefaultHepRepType::getSuperType ( )
virtual

Returns the parent of this type.

Returns
parent of type, or null if top-level.

Implements HEPREP::HepRepType.

std::vector<HEPREP::HepRepType*> cheprep::DefaultHepRepType::getTypeList ( )
virtual

Returns a collection of all the sub-types of this type.

Returns
collection of HepRepTypes.

Implements HEPREP::HepRepType.

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.

void cheprep::DefaultHepRepType::setDescription ( std::string  description)
virtual

Sets the description of this type.

Parameters
infoURL

Implements HEPREP::HepRepType.

void cheprep::DefaultHepRepType::setInfoURL ( std::string  infoURL)
virtual

Sets the information URL of this type.

Parameters
infoURL

Implements HEPREP::HepRepType.

Member Data Documentation

std::string cheprep::DefaultHepRepType::description
private

Definition at line 31 of file DefaultHepRepType.h.

Referenced by ProjMan.Consumer::establish().

std::string cheprep::DefaultHepRepType::infoURL
private

Definition at line 32 of file DefaultHepRepType.h.

std::string cheprep::DefaultHepRepType::name
private
HEPREP::HepRepType* cheprep::DefaultHepRepType::parent
private

Definition at line 28 of file DefaultHepRepType.h.

std::vector<HEPREP::HepRepType*> cheprep::DefaultHepRepType::types
private

Definition at line 29 of file DefaultHepRepType.h.


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