Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
#include <DefaultHepRepInstance.h>
Public Member Functions | |
DefaultHepRepInstance (HEPREP::HepRepInstance *parent, HEPREP::HepRepType *type) | |
DefaultHepRepInstance (HEPREP::HepRepInstanceTree *parent, HEPREP::HepRepType *type) | |
~DefaultHepRepInstance () | |
void | overlay (HEPREP::HepRepInstance *instance) |
HEPREP::HepRepInstance * | copy (HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepInstance *parent, HEPREP::HepRepSelectFilter *filter) |
HEPREP::HepRepInstance * | copy (HEPREP::HepRepTypeTree *typeTree, HEPREP::HepRepInstanceTree *parent, HEPREP::HepRepSelectFilter *filter) |
HEPREP::HepRepType * | getType () |
void | addPoint (HEPREP::HepRepPoint *point) |
std::vector< HEPREP::HepRepPoint * > | getPoints () |
HEPREP::HepRepInstance * | getSuperInstance () |
void | addInstance (HEPREP::HepRepInstance *instance) |
void | removeInstance (HEPREP::HepRepInstance *instance) |
std::vector< HEPREP::HepRepInstance * > | getInstances () |
HEPREP::HepRepAttValue * | getAttValue (std::string name) |
void * | getParent () |
Public Member Functions inherited from cheprep::DefaultHepRepAttribute | |
DefaultHepRepAttribute () | |
~DefaultHepRepAttribute () | |
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::HepRepAttValue * | getAttValueFromNode (std::string lowerCaseName) |
HEPREP::HepRepAttValue * | removeAttValue (std::string key) |
HEPREP::HepRepAttValue * | getAttValue (std::string name)=0 |
Public Member Functions inherited from HEPREP::HepRepAttribute | |
virtual | ~HepRepAttribute () |
Destructor. | |
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 HepRepAttValue * | removeAttValue (std::string key)=0 |
virtual HepRepAttValue * | getAttValue (std::string name)=0 |
virtual std::set< HepRepAttValue * > | getAttValuesFromNode ()=0 |
virtual HepRepAttValue * | getAttValueFromNode (std::string lowerCaseName)=0 |
Public Member Functions inherited from HEPREP::HepRepInstance | |
virtual | ~HepRepInstance () |
Destructor. | |
virtual void | overlay (HepRepInstance *instance)=0 |
virtual void | addInstance (HepRepInstance *instance)=0 |
virtual void | removeInstance (HepRepInstance *instance)=0 |
virtual std::vector< HepRepInstance * > | getInstances ()=0 |
virtual HepRepType * | getType ()=0 |
virtual void | addPoint (HepRepPoint *point)=0 |
virtual std::vector< HepRepPoint * > | getPoints ()=0 |
virtual HepRepInstance * | getSuperInstance ()=0 |
virtual HepRepInstance * | copy (HepRepTypeTree *typeTree, HepRepInstance *parent, HepRepSelectFilter *filter=NULL)=0 |
virtual HepRepInstance * | copy (HepRepTypeTree *typeTree, HepRepInstanceTree *parent, HepRepSelectFilter *filter=NULL)=0 |
Definition at line 26 of file DefaultHepRepInstance.h.
cheprep::DefaultHepRepInstance::DefaultHepRepInstance | ( | HEPREP::HepRepInstance * | parent, |
HEPREP::HepRepType * | type | ||
) |
Definition at line 15 of file DefaultHepRepInstance.cc.
cheprep::DefaultHepRepInstance::DefaultHepRepInstance | ( | HEPREP::HepRepInstanceTree * | parent, |
HEPREP::HepRepType * | type | ||
) |
Definition at line 22 of file DefaultHepRepInstance.cc.
cheprep::DefaultHepRepInstance::~DefaultHepRepInstance | ( | ) |
Definition at line 29 of file DefaultHepRepInstance.cc.
|
virtual |
Adds an sub-instance to this instance.
instance | sub-instance. |
Implements HEPREP::HepRepInstance.
Definition at line 70 of file DefaultHepRepInstance.cc.
|
virtual |
Adds a point to this instance.
point | to be added. |
Implements HEPREP::HepRepInstance.
Definition at line 58 of file DefaultHepRepInstance.cc.
|
virtual |
Returns a deep copy of this instance.
typeTree | needed to find the associated type. |
parent | to which the copy is added. |
filter | run on all instances before copying. |
Implements HEPREP::HepRepInstance.
Definition at line 44 of file DefaultHepRepInstance.cc.
|
virtual |
Returns a deep copy of this instance.
typeTree | needed to find the associated type. |
parent | to which the copy is added. |
filter | run on all instances before copying. |
Implements HEPREP::HepRepInstance.
Definition at line 49 of file DefaultHepRepInstance.cc.
|
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.
name | of attribute value. |
Implements cheprep::DefaultHepRepAttribute.
Definition at line 82 of file DefaultHepRepInstance.cc.
|
virtual |
Returns a collection of all sub-instances this instance keeps.
Implements HEPREP::HepRepInstance.
Definition at line 78 of file DefaultHepRepInstance.cc.
|
inline |
Definition at line 52 of file DefaultHepRepInstance.h.
|
virtual |
Returns a collection of all points this instance keeps.
Implements HEPREP::HepRepInstance.
Definition at line 62 of file DefaultHepRepInstance.cc.
|
virtual |
Fills a double[3][n] array with the coordinates of all points, if none of the points have any attributes defined on them. The actual number of points filled is returned. In case the number of points is larger than n, or if any points have attributes, -1 is returned. One could then call getPoint().
xyz | a double[3][n] array to be filled with points. |
ONLY in JAVA Returns true if this instance has a frame. Speedy access for iterator.
ONLY in JAVA Returns String layername. Speedy access for iterator.
ONLY in JAVA Returns the parent of this instance.
Implements HEPREP::HepRepInstance.
Definition at line 66 of file DefaultHepRepInstance.cc.
|
virtual |
Returns the associated type for this instance.
Implements HEPREP::HepRepInstance.
Definition at line 54 of file DefaultHepRepInstance.cc.
|
virtual |
Overlays the instance on the current instance.
Attributes of the instance override or are added to the current instance. Sub-instances of the instance are added only if the current instance has no sub-instances. Points of the instance are added only if the current instance has no points.
Implements HEPREP::HepRepInstance.
Definition at line 40 of file DefaultHepRepInstance.cc.
|
virtual |
Removes a sub-instance from this instance.
instance | sub-instance. |
Implements HEPREP::HepRepInstance.
Definition at line 74 of file DefaultHepRepInstance.cc.