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

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

Inheritance diagram for cheprep::DefaultHepRepPoint:
cheprep::DefaultHepRepAttribute HEPREP::HepRepPoint HEPREP::HepRepAttribute HEPREP::HepRepAttribute

Public Member Functions

 DefaultHepRepPoint (HEPREP::HepRepInstance *instance, double x, double y, double z)
 
 ~DefaultHepRepPoint ()
 
HEPREP::HepRepInstancegetInstance ()
 
HEPREP::HepRepAttValuegetAttValue (std::string lowerCaseName)
 
HEPREP::HepRepPointcopy (HEPREP::HepRepInstance *parent)
 
double getX ()
 
double getY ()
 
double getZ ()
 
std::vector< double > * getXYZ (std::vector< double > *xyz)
 
double getRho ()
 
double getPhi ()
 
double getTheta ()
 
double getR ()
 
double getEta ()
 
double getX (double xVertex, double yVertex, double zVertex)
 
double getY (double xVertex, double yVertex, double zVertex)
 
double getZ (double xVertex, double yVertex, double zVertex)
 
double getRho (double xVertex, double yVertex, double zVertex)
 
double getPhi (double xVertex, double yVertex, double zVertex)
 
double getTheta (double xVertex, double yVertex, double zVertex)
 
double getR (double xVertex, double yVertex, double zVertex)
 
double getEta (double xVertex, double yVertex, double zVertex)
 
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)
 

Protected Attributes

double x
 
double y
 
double z
 

Private Attributes

HEPREP::HepRepInstanceinstance
 

Detailed Description

Definition at line 23 of file DefaultHepRepPoint.h.

Constructor & Destructor Documentation

cheprep::DefaultHepRepPoint::DefaultHepRepPoint ( HEPREP::HepRepInstance instance,
double  x,
double  y,
double  z 
)
cheprep::DefaultHepRepPoint::~DefaultHepRepPoint ( )

Member Function Documentation

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::HepRepPoint* cheprep::DefaultHepRepPoint::copy ( HEPREP::HepRepInstance parent)
virtual

Returns a deep copy of this point.

Parameters
parentto add the copy to.
Returns
copy of this point.

Implements HEPREP::HepRepPoint.

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

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.

double cheprep::DefaultHepRepPoint::getEta ( )
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Returns
eta = -0.5*clog((1.-ct)/(1.+ct)), where ct = .cos(getTheta(dx, dy, dz));

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getEta ( double  xVertex,
double  yVertex,
double  zVertex 
)
virtual

Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns
eta = -0.5*clog((1.-ct)/(1.+ct)), where ct = .cos(getTheta(dx, dy, dz));

Implements HEPREP::HepRepPoint.

HEPREP::HepRepInstance* cheprep::DefaultHepRepPoint::getInstance ( )
virtual

Returns associated instance (parent).

Returns
HepRepInstance.

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getPhi ( )
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Returns
phi = std::atan2(dy, dx);

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getPhi ( double  xVertex,
double  yVertex,
double  zVertex 
)
virtual

Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns
phi = std::atan2(dy, dx);

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getR ( )
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Returns
r = std::sqrt(dx2+dy2+dz2);

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getR ( double  xVertex,
double  yVertex,
double  zVertex 
)
virtual

Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns
r = std::sqrt(dx2+dy2+dz2);

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getRho ( )
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Returns
rho = std::sqrt(dx2+dy2);

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getRho ( double  xVertex,
double  yVertex,
double  zVertex 
)
virtual

Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns
rho = std::sqrt(dx2+dy2);

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getTheta ( )
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Returns
theta = std::atan2(rho, dx);

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getTheta ( double  xVertex,
double  yVertex,
double  zVertex 
)
virtual

Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns
theta = std::atan2(rho, dx);

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getX ( )
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Returns
dx-coordinate

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getX ( double  xVertex,
double  yVertex,
double  zVertex 
)
virtual

Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns
dx-coordinate

Implements HEPREP::HepRepPoint.

std::vector<double>* cheprep::DefaultHepRepPoint::getXYZ ( std::vector< double > *  xyz)
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Parameters
xyzlist of three coordinates which are filled and returned. If null, a new list of three coordinates is allocated.
Returns
list of 3 coordinates.

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getY ( )
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Returns
dy-coordinate

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getY ( double  xVertex,
double  yVertex,
double  zVertex 
)
virtual

Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns
dy-coordinate

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getZ ( )
virtual

Returns coordinate with respect to vertex at (0, 0, 0).

Returns
dz-coordinate

Implements HEPREP::HepRepPoint.

double cheprep::DefaultHepRepPoint::getZ ( double  xVertex,
double  yVertex,
double  zVertex 
)
virtual

Returns coordinate with respect to vertex at (xVertex, yVertex, zVertex).

Returns
dz-coordinate

Implements HEPREP::HepRepPoint.

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

HEPREP::HepRepInstance* cheprep::DefaultHepRepPoint::instance
private

Definition at line 26 of file DefaultHepRepPoint.h.

double cheprep::DefaultHepRepPoint::x
protected

Definition at line 29 of file DefaultHepRepPoint.h.

double cheprep::DefaultHepRepPoint::y
protected

Definition at line 29 of file DefaultHepRepPoint.h.

double cheprep::DefaultHepRepPoint::z
protected

Definition at line 29 of file DefaultHepRepPoint.h.


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