DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
DD4hep::Utilities Namespace Reference

Functions

int findNodeWithMatrix (TGeoNode *p, TGeoNode *n, TGeoHMatrix *mat, std::string *sub_path=0)
 
std::pair< bool, TEveElement * > createEveShape (int level, int max_level, TEveElement *p, TGeoNode *n, TGeoHMatrix mat, const std::string &node_name)
 
std::pair< bool, TEveElement * > LoadDetElement (Geometry::DetElement element, int levels, TEveElement *parent)
 
void MakeNodesVisible (TEveElement *e, bool visible, int level)
 Make a set of nodes starting from a top element (in-)visible with a given depth. More...
 
void SetRnrChildren (TEveElementList *l, bool b)
 Set the rendering flags for the object and the next level children. More...
 
void SetRnrAll (TEveElementList *l, bool b)
 Recursively set the rendering flags for the object ans its children. More...
 
template<typename T >
const char * GetName (T *p)
 

Function Documentation

std::pair< bool, TEveElement * > DD4hep::Utilities::createEveShape ( int  level,
int  max_level,
TEveElement *  p,
TGeoNode *  n,
TGeoHMatrix  mat,
const std::string &  node_name 
)
int DD4hep::Utilities::findNodeWithMatrix ( TGeoNode *  p,
TGeoNode *  n,
TGeoHMatrix *  mat,
std::string *  sub_path = 0 
)

Definition at line 163 of file Utilities.cpp.

Referenced by DD4hep::Display::LoadGeoChildren().

template<typename T >
const char* DD4hep::Utilities::GetName ( T p)
inline
std::pair< bool, TEveElement * > DD4hep::Utilities::LoadDetElement ( Geometry::DetElement  element,
int  levels,
TEveElement *  parent 
)
void DD4hep::Utilities::MakeNodesVisible ( TEveElement *  e,
bool  visible,
int  level 
)

Make a set of nodes starting from a top element (in-)visible with a given depth.

Definition at line 58 of file Utilities.cpp.

References e, s, SetRnrAll(), and SetRnrChildren().

Referenced by DD4hep::Display::MakeNodesVisible().

void DD4hep::Utilities::SetRnrAll ( TEveElementList l,
bool  b 
)

Recursively set the rendering flags for the object ans its children.

Definition at line 47 of file Utilities.cpp.

References e.

Referenced by MakeNodesVisible().

void DD4hep::Utilities::SetRnrChildren ( TEveElementList l,
bool  b 
)

Set the rendering flags for the object and the next level children.

Definition at line 39 of file Utilities.cpp.

Referenced by MakeNodesVisible().