Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cheprep::DefaultHepRepAttValue Class Reference

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

Inheritance diagram for cheprep::DefaultHepRepAttValue:
HEPREP::HepRepAttValue

Public Member Functions

 DefaultHepRepAttValue (std::string name, std::string value, int showLabel)
 
 DefaultHepRepAttValue (std::string name, int64 value, int showLabel)
 
 DefaultHepRepAttValue (std::string name, int value, int showLabel)
 
 DefaultHepRepAttValue (std::string name, double value, int showLabel)
 
 DefaultHepRepAttValue (std::string name, bool value, int showLabel)
 
 DefaultHepRepAttValue (std::string name, std::vector< double > value, int showLabel)
 
 ~DefaultHepRepAttValue ()
 
HEPREP::HepRepAttValuecopy ()
 
std::string getName ()
 
std::string getLowerCaseName ()
 
int getType ()
 
std::string getTypeName ()
 
int showLabel ()
 
std::string getString ()
 
std::string getLowerCaseString ()
 
int64 getLong ()
 
int getInteger ()
 
double getDouble ()
 
bool getBoolean ()
 
std::vector< double > getColor ()
 
std::string getAsString ()
 
std::string toShowLabel ()
 

Static Public Member Functions

static std::string getAsString (std::vector< double > c)
 
static std::string getAsString (int i)
 
static std::string getAsString (int64 i)
 
static std::string getAsString (double d)
 
static std::string getAsString (bool b)
 
static std::string toShowLabel (int showLabel)
 

Private Types

enum  { LABELSTRINGS_LEN = 4 }
 

Private Member Functions

void init ()
 

Private Attributes

std::string name
 
int type
 
std::string stringValue
 
int64 longValue
 
double doubleValue
 
bool booleanValue
 
std::vector< double > colorValue
 
int showLabelValue
 

Static Private Attributes

static std::string labelStrings [LABELSTRINGS_LEN]
 

Detailed Description

Definition at line 17 of file DefaultHepRepAttValue.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
LABELSTRINGS_LEN 

Definition at line 20 of file DefaultHepRepAttValue.h.

Constructor & Destructor Documentation

cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue ( std::string  name,
std::string  value,
int  showLabel 
)
cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue ( std::string  name,
int64  value,
int  showLabel 
)
cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue ( std::string  name,
int  value,
int  showLabel 
)
cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue ( std::string  name,
double  value,
int  showLabel 
)
cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue ( std::string  name,
bool  value,
int  showLabel 
)
cheprep::DefaultHepRepAttValue::DefaultHepRepAttValue ( std::string  name,
std::vector< double >  value,
int  showLabel 
)
cheprep::DefaultHepRepAttValue::~DefaultHepRepAttValue ( )

Member Function Documentation

HEPREP::HepRepAttValue* cheprep::DefaultHepRepAttValue::copy ( )
virtual

Returns a deep copy of this attvalue.

Returns
copy of this attvalue.

Implements HEPREP::HepRepAttValue.

std::string cheprep::DefaultHepRepAttValue::getAsString ( )
virtual

Returns value as string.

Returns
value (of any type) in string format.

Implements HEPREP::HepRepAttValue.

static std::string cheprep::DefaultHepRepAttValue::getAsString ( std::vector< double >  c)
static
static std::string cheprep::DefaultHepRepAttValue::getAsString ( int  i)
static
static std::string cheprep::DefaultHepRepAttValue::getAsString ( int64  i)
static
static std::string cheprep::DefaultHepRepAttValue::getAsString ( double  d)
static
static std::string cheprep::DefaultHepRepAttValue::getAsString ( bool  b)
static
bool cheprep::DefaultHepRepAttValue::getBoolean ( )
virtual

Returns value as boolean.

Returns
value as boolean.

Implements HEPREP::HepRepAttValue.

std::vector<double> cheprep::DefaultHepRepAttValue::getColor ( )
virtual

Returns value as Color.

Returns
value as Color.

Implements HEPREP::HepRepAttValue.

double cheprep::DefaultHepRepAttValue::getDouble ( )
virtual

Returns value as double.

Returns
value as double.

Implements HEPREP::HepRepAttValue.

int cheprep::DefaultHepRepAttValue::getInteger ( )
virtual

Returns value as int.

Returns
value as integer.

Implements HEPREP::HepRepAttValue.

int64 cheprep::DefaultHepRepAttValue::getLong ( )
virtual

Returns value as long.

Returns
value as long.

Implements HEPREP::HepRepAttValue.

std::string cheprep::DefaultHepRepAttValue::getLowerCaseName ( )
virtual

Returns lowercased name of the attvalue.

Returns
Lowercased Name.

Implements HEPREP::HepRepAttValue.

std::string cheprep::DefaultHepRepAttValue::getLowerCaseString ( )
virtual

Returns value as lowercase string.

Returns
value as string (if type is string).

Implements HEPREP::HepRepAttValue.

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

Returns name of the attvalue.

Returns
Capitalized Name.

Implements HEPREP::HepRepAttValue.

std::string cheprep::DefaultHepRepAttValue::getString ( )
virtual

Returns value as string.

Returns
value as string (if type is string).

Implements HEPREP::HepRepAttValue.

int cheprep::DefaultHepRepAttValue::getType ( )
virtual

Returns type of the attvalue, defined in HepRepConstants with names TYPE_xxx.

Returns
type.

Implements HEPREP::HepRepAttValue.

std::string cheprep::DefaultHepRepAttValue::getTypeName ( )
virtual

Returns the Java-like name for the type of this attvalue.

Returns
type name.

Implements HEPREP::HepRepAttValue.

void cheprep::DefaultHepRepAttValue::init ( )
private
int cheprep::DefaultHepRepAttValue::showLabel ( )
virtual

Returns the flag bits for showing this attvalue as a label, defined in HepRepConstants with names SHOW_xxx.

Returns
flag bits if should be shown as label.

Implements HEPREP::HepRepAttValue.

std::string cheprep::DefaultHepRepAttValue::toShowLabel ( )
static std::string cheprep::DefaultHepRepAttValue::toShowLabel ( int  showLabel)
static

Member Data Documentation

bool cheprep::DefaultHepRepAttValue::booleanValue
private

Definition at line 29 of file DefaultHepRepAttValue.h.

std::vector<double> cheprep::DefaultHepRepAttValue::colorValue
private

Definition at line 30 of file DefaultHepRepAttValue.h.

double cheprep::DefaultHepRepAttValue::doubleValue
private

Definition at line 28 of file DefaultHepRepAttValue.h.

std::string cheprep::DefaultHepRepAttValue::labelStrings[LABELSTRINGS_LEN]
staticprivate

Definition at line 33 of file DefaultHepRepAttValue.h.

int64 cheprep::DefaultHepRepAttValue::longValue
private

Definition at line 27 of file DefaultHepRepAttValue.h.

std::string cheprep::DefaultHepRepAttValue::name
private
int cheprep::DefaultHepRepAttValue::showLabelValue
private

Definition at line 32 of file DefaultHepRepAttValue.h.

std::string cheprep::DefaultHepRepAttValue::stringValue
private

Definition at line 26 of file DefaultHepRepAttValue.h.

int cheprep::DefaultHepRepAttValue::type
private

Definition at line 22 of file DefaultHepRepAttValue.h.


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