Belle II Software  release-05-02-19
EveGeometry.h
1 #pragma once
2 
3 #include <RtypesCore.h>
4 
5 #include <string>
6 #include <vector>
7 
8 class TEveElement;
9 
10 namespace Belle2 {
16  namespace EveGeometry {
18  enum EType {
21  };
23  void addGeometry(EType visMode);
24 
26  void setVisualisationMode(EType visMode);
27 
29  void enableVolume(const char* name, bool only_daughters = false, bool enable = true);
30 
32  void disableVolume(const char* name, bool only_daughters = false);
33 
35  void setVolumeColor(const char* name, Color_t col);
36 
38  void setTransparency(int percent);
39 
41  double getMaxR();
42 
50  void saveExtract();
51 
53  void setCustomExtractPath(const std::string& extractPath);
54 
56  void setHideVolumes(const std::vector<std::string>& volumes);
57 
59  void setDeleteVolumes(const std::vector<std::string>& volumes);
60 
62  void removeChildrenByRegExp(TEveElement* parent, const std::string& pattern);
63 
64  }
66 }
67 
Belle2::EveGeometry::setHideVolumes
void setHideVolumes(const std::vector< std::string > &volumes)
List of volumes to be hidden (can be re-enabled in Eve panel / Geometry scene.
Definition: EveGeometry.cc:215
Belle2::EveGeometry::setVolumeColor
void setVolumeColor(const char *name, Color_t col)
set fill color of the volume 'name' to 'col'.
Definition: EveGeometry.cc:154
Belle2::EveGeometry::getMaxR
double getMaxR()
find a point that is inside the top node.
Definition: EveGeometry.cc:176
Belle2::EveGeometry::c_Simplified
@ c_Simplified
a simplified Belle II geometry.
Definition: EveGeometry.h:20
Belle2::EveGeometry::EType
EType
Type of geometry shown.
Definition: EveGeometry.h:18
Belle2::EveGeometry::saveExtract
void saveExtract()
Save a geometry extract from the current state of the TGeo geometry.
Definition: EveGeometry.cc:194
Belle2::EveGeometry::enableVolume
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: EveGeometry.cc:139
Belle2::EveGeometry::addGeometry
void addGeometry(EType visMode)
Add TGeo geometry to Eve (only needs to be done once.)
Definition: EveGeometry.cc:28
Belle2::EveGeometry::setVisualisationMode
void setVisualisationMode(EType visMode)
switch to given visualisation mode.
Definition: EveGeometry.cc:131
Belle2::EveGeometry::setDeleteVolumes
void setDeleteVolumes(const std::vector< std::string > &volumes)
List of volumes to be removed.
Definition: EveGeometry.cc:220
Belle2::EveGeometry::setCustomExtractPath
void setCustomExtractPath(const std::string &extractPath)
Set custom path to the geometry extract (to change originally hard-coded value)
Definition: EveGeometry.cc:210
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::EveGeometry::disableVolume
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: EveGeometry.cc:152
Belle2::EveGeometry::removeChildrenByRegExp
void removeChildrenByRegExp(TEveElement *parent, const std::string &pattern)
Recursive removal of volumes based on regular expression pattern.
Definition: EveGeometry.cc:98
Belle2::EveGeometry::c_Full
@ c_Full
Full geometry converted from Geant4 (use this for non-standard Belle II setups!).
Definition: EveGeometry.h:19
Belle2::EveGeometry::setTransparency
void setTransparency(int percent)
Recursively set transparency of geometry (0: opaque, 100: fully transparent).
Definition: EveGeometry.cc:166