Go to the documentation of this file.00001 #ifndef eve_macros_h
00002 #define eve_macros_h
00003
00004 #include <vector>
00005 #include <string>
00006 #include <Rtypes.h>
00007 class TEveElement;
00008
00009
00010 const char* get_name( const TEveElement * element );
00011
00012
00013 const char* get_title( const TEveElement * element );
00014
00015
00016 void expand_node( TEveElement * element );
00017
00018
00019 const TGeoShape * get_shape( const TEveElement * element );
00020
00021
00022 TGeoShape * get_shape( TEveElement * element );
00023
00024
00025 TGeoMatrix * get_transform( const TEveElement * element );
00026
00027
00028 TEveGeoShape * clone( const TEveElement * element, TEveElement * parent = 0);
00029
00030
00031 void set_color( TEveElement * element, Color_t color, float alpha = 1.0, unsigned int levels = 0 );
00032
00033
00034 bool is_leaf_node( const TEveElement * element );
00035
00036
00037
00038 void set_children_visibility( TEveElement * element, const std::string & node_name, const std::vector<std::string> & children_name, bool visibility );
00039
00040
00041 void set_tracker_endcap_visibility( TEveElement * tracker, bool visibility );
00042
00043
00044 void show_tracker_endcap( TEveElement * tracker );
00045
00046
00047 void hide_tracker_endcap( TEveElement * tracker );
00048
00049 #endif // eve_macros_h