Belle II Software development
|
Handles manipulation of detector geometry for the display. More...
Enumerations | |
enum | EType { c_Full , c_Simplified } |
Type of geometry shown. More... | |
Functions | |
void | addGeometry (EType visMode) |
Add TGeo geometry to Eve (only needs to be done once.) | |
void | setVisualisationMode (EType visMode) |
switch to given visualisation mode. | |
void | enableVolume (const char *name, bool only_daughters=false, bool enable=true) |
enable/disable rendering of the volume 'name', or only its daughters if only_daughters is set. | |
void | disableVolume (const char *name, bool only_daughters=false) |
disable rendering of the volume 'name', or only its daughters if only_daughters is set. | |
void | setVolumeColor (const char *name, Color_t col) |
set fill color of the volume 'name' to 'col'. | |
void | setTransparency (int percent) |
Recursively set transparency of geometry (0: opaque, 100: fully transparent). | |
double | getMaxR () |
find a point that is inside the top node. | |
void | saveExtract () |
Save a geometry extract from the current state of the TGeo geometry. | |
void | setCustomExtractPath (const std::string &extractPath) |
Set custom path to the geometry extract (to change originally hard-coded value) | |
void | setHideVolumes (const std::vector< std::string > &volumes) |
List of volumes to be hidden (can be re-enabled in Eve panel / Geometry scene. | |
void | setDeleteVolumes (const std::vector< std::string > &volumes) |
List of volumes to be removed. | |
void | removeChildrenByRegExp (TEveElement *parent, const std::string &pattern) |
Recursive removal of volumes based on regular expression pattern. | |
Handles manipulation of detector geometry for the display.
enum EType |
Type of geometry shown.
Enumerator | |
---|---|
c_Full | Full geometry converted from Geant4 (use this for non-standard Belle II setups!). |
c_Simplified | a simplified Belle II geometry. |
Definition at line 25 of file EveGeometry.h.
void addGeometry | ( | EType | visMode | ) |
Add TGeo geometry to Eve (only needs to be done once.)
Definition at line 36 of file EveGeometry.cc.
void disableVolume | ( | const char * | name, |
bool | only_daughters = false |
||
) |
disable rendering of the volume 'name', or only its daughters if only_daughters is set.
Definition at line 160 of file EveGeometry.cc.
void enableVolume | ( | const char * | name, |
bool | only_daughters = false , |
||
bool | enable = true |
||
) |
enable/disable rendering of the volume 'name', or only its daughters if only_daughters is set.
Definition at line 147 of file EveGeometry.cc.
double getMaxR | ( | ) |
find a point that is inside the top node.
Definition at line 184 of file EveGeometry.cc.
void removeChildrenByRegExp | ( | TEveElement * | parent, |
const std::string & | pattern | ||
) |
Recursive removal of volumes based on regular expression pattern.
Leading '#' switches to removal of daughter only.
Definition at line 106 of file EveGeometry.cc.
void saveExtract | ( | ) |
Save a geometry extract from the current state of the TGeo geometry.
To actually create a reasonably sized extract, one needs to delete all objects in Top_1 that one doesn't want to save. Selecting them via their name and deleting them in a function should work, but really just crashes. This is all quite horrible, really.
Definition at line 202 of file EveGeometry.cc.
void setCustomExtractPath | ( | const std::string & | extractPath | ) |
Set custom path to the geometry extract (to change originally hard-coded value)
Definition at line 218 of file EveGeometry.cc.
void setDeleteVolumes | ( | const std::vector< std::string > & | volumes | ) |
List of volumes to be removed.
The volume and all its daughters will be deleted. Leading '#' switches to removal of daughter only.
Definition at line 228 of file EveGeometry.cc.
void setHideVolumes | ( | const std::vector< std::string > & | volumes | ) |
List of volumes to be hidden (can be re-enabled in Eve panel / Geometry scene.
The volume and all its daughters will be hidden.
Definition at line 223 of file EveGeometry.cc.
void setTransparency | ( | int | percent | ) |
Recursively set transparency of geometry (0: opaque, 100: fully transparent).
Definition at line 174 of file EveGeometry.cc.
void setVisualisationMode | ( | EType | visMode | ) |
switch to given visualisation mode.
Definition at line 139 of file EveGeometry.cc.
void setVolumeColor | ( | const char * | name, |
Color_t | col | ||
) |
set fill color of the volume 'name' to 'col'.
Definition at line 162 of file EveGeometry.cc.