14 #ifndef DD4HEP_DDEVE_VIEW_H
15 #define DD4HEP_DDEVE_VIEW_H
22 #include <TEveScene.h>
23 #include <TEveViewer.h>
51 typedef std::map<std::string, TEveElementList*>
Topics;
120 virtual std::pair<bool,TEveElement*>
123 virtual std::pair<bool,TEveElement*>
128 virtual void ImportGeo(
const std::string& topic, TEveElement* element);
132 virtual void ImportGeo(TEveElement* element);
150 virtual void ConfigureEvent(
const DisplayConfiguration::ViewConfig& config);
Handle class to hold the information of a sensitive detector.
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
TEveScene * geoScene() const
Access to the Eve geometry scene.
virtual TEveElement * ImportEventElement(TEveElement *element, TEveElementList *list)
Call an element to a event element list.
std::string m_name
The name of the view.
virtual void ImportEvent(TEveElement *element)
Call to import event elements into the main event scene.
bool showGlobal() const
Show global directory.
virtual TEveElementList & GetGeoTopic(const std::string &name)
Access/Create an geometry topic by name.
virtual void ConfigureEventFromInfo()
Configure a view with event info. Used configuration if present.
virtual void ImportGeoTopics(const std::string &title)
Call to import geometry topics. If title is empty, do not add to global item list.
virtual View & Map(TEveWindow *slot)
Map the view view to the slot.
virtual std::pair< bool, TEveElement * > GetGlobalGeometry(DetElement de, const DisplayConfiguration::Config &cfg)
Access the global instance of the subdetector geometry.
virtual void ImportGeo(const std::string &topic, TEveElement *element)
Call to import geometry elements into topics.
Geometry::SensitiveDetector SensitiveDetector
virtual void ConfigureGeometryFromInfo()
Configure a view with geo info. Used configuration if present.
View TEveWindowSlot * slot
const DisplayConfiguration::ViewConfig * m_config
TEveScene * m_eveScene
Reference to the event scene.
std::map< std::string, TEveElementList * > Topics
TEveViewer * m_view
Reference to the view.
virtual std::pair< bool, TEveElement * > CreateGeometry(DetElement de, const DisplayConfiguration::Config &cfg)
Create a new instance of the geometry of a sub-detector.
virtual TEveElementList * AddToGlobalItems(const std::string &nam)
Add the view to the global list of eve objects.
virtual void ConfigureGeometryFromGlobal()
Configure a single geometry view by default from the global geometry scene with all subdetectors...
class View View.h DDEve/View.h
virtual ~View()
Default destructor.
ClassDef(View, 0)
Root implementation macro.
Geometry::DetElement DetElement
View(Display *eve, const std::string &name)
Initializing constructor.
void setShowGlobal(bool value)
Set show globals.
const char * c_name() const
TEveScene * m_geoScene
Reference to the geometry scene.
virtual void ImportEventTopics()
Import event typics after creation.
TEveScene * eveScene() const
Access to the Eve event scene.
virtual View & CreateGeoScene()
Create the geometry scene.
TEveElementList * m_global
Reference to the global item (if added.
virtual View & Build(TEveWindow *slot)
Build the view view and map it to the given slot.
virtual View & CreateScenes()
Create the geometry and the event scene.
virtual TEveElement * ImportGeoTopic(TEveElement *element, TEveElementList *list)
Call an element to a geometry element list.
virtual void Initialize()
Initialize the view port.
Handle class describing a detector element.
virtual void ConfigureEvent(const DisplayConfiguration::ViewConfig &config)
Configure a single event scene view.
TEveViewer * viewer() const
Access to the Eve viewer.
virtual void ConfigureGeometry(const DisplayConfiguration::ViewConfig &config)
Configure a single geometry view.
The main interface to the DD4hep detector description package.
virtual View & CreateEventScene()
Create the event scene.
virtual TEveElement * ImportGeoElement(TEveElement *element, TEveElementList *list)
Call an element to a geometry element list.
virtual void ConfigureEventFromGlobal()
Configure an event view by default from the global event scene.
The main class of the DDEve display.
const std::string & name() const
Access to the view name/title.