DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Protected Attributes | List of all members
dd4hep::View Class Reference

class View View.h DDEve/View.h More...

#include <View.h>

Inheritance diagram for dd4hep::View:
dd4hep::Calo3DProjection dd4hep::CaloLego dd4hep::MultiView dd4hep::Projection dd4hep::View3D dd4hep::Calo2DProjection dd4hep::RhoPhiProjection dd4hep::RhoZProjection

Public Types

typedef std::map< std::string, TEveElementList * > Topics
 

Public Member Functions

virtual TEveElement * ImportGeoElement (TEveElement *element, TEveElementList *list)
 Call an element to a geometry element list. More...
 
virtual TEveElement * ImportGeoTopic (TEveElement *element, TEveElementList *list)
 Call an element to a geometry element list. More...
 
virtual TEveElement * ImportEventElement (TEveElement *element, TEveElementList *list)
 Call an element to a event element list. More...
 
 View (Display *eve, const std::string &name)
 Initializing constructor. More...
 
virtual ~View ()
 Default destructor. More...
 
const std::string & name () const
 Access to the view name/title. More...
 
const char * c_name () const
 
TEveViewer * viewer () const
 Access to the Eve viewer. More...
 
bool showGlobal () const
 Show global directory. More...
 
void setShowGlobal (bool value)
 Set show globals. More...
 
virtual ViewBuild (TEveWindow *slot)
 Build the view view and map it to the given slot. More...
 
virtual void Initialize ()
 Initialize the view port. More...
 
virtual ViewMap (TEveWindow *slot)
 Map the view view to the slot. More...
 
virtual ViewCreateScenes ()
 Create the geometry and the event scene. More...
 
virtual TEveElementListAddToGlobalItems (const std::string &nam)
 Add the view to the global list of eve objects. More...
 
TEveScene * geoScene () const
 Access to the Eve geometry scene. More...
 
virtual ViewCreateGeoScene ()
 Create the geometry scene. More...
 
virtual void ConfigureGeometryFromInfo ()
 Configure a view with geo info. Used configuration if present. More...
 
virtual void ConfigureGeometryFromGlobal ()
 Configure a single geometry view by default from the global geometry scene with all subdetectors. More...
 
virtual void ConfigureGeometry (const DisplayConfiguration::ViewConfig &config)
 Configure a single geometry view. More...
 
virtual std::pair< bool, TEveElement * > CreateGeometry (DetElement de, const DisplayConfiguration::Config &cfg)
 Create a new instance of the geometry of a sub-detector. More...
 
virtual std::pair< bool, TEveElement * > GetGlobalGeometry (DetElement de, const DisplayConfiguration::Config &cfg)
 Access the global instance of the subdetector geometry. More...
 
virtual void ImportGeo (const std::string &topic, TEveElement *element)
 Call to import geometry elements into topics. More...
 
virtual void ImportGeo (TEveElementList &topic, TEveElement *element)
 Call to import geometry elements into topics. More...
 
virtual void ImportGeo (TEveElement *element)
 Call to import geometry elements into the main geometry scene menu. More...
 
virtual void ImportGeoTopics (const std::string &title)
 Call to import geometry topics. If title is empty, do not add to global item list. More...
 
virtual TEveElementListGetGeoTopic (const std::string &name)
 Access/Create an geometry topic by name. More...
 
TEveScene * eveScene () const
 Access to the Eve event scene. More...
 
virtual ViewCreateEventScene ()
 Create the event scene. More...
 
virtual void ConfigureEventFromInfo ()
 Configure a view with event info. Used configuration if present. More...
 
virtual void ConfigureEventFromGlobal ()
 Configure an event view by default from the global event scene. More...
 
virtual void ConfigureEvent (const DisplayConfiguration::ViewConfig &config)
 Configure a single event scene view. More...
 
virtual void ImportEvent (TEveElement *element)
 Call to import event elements into the main event scene. More...
 
virtual void ImportEventTopics ()
 Import event typics after creation. More...
 
 ClassDef (View, 0)
 Root implementation macro. More...
 

Protected Attributes

Displaym_eve
 
TEveViewer * m_view
 Reference to the view. More...
 
TEveScene * m_geoScene
 Reference to the geometry scene. More...
 
TEveScene * m_eveScene
 Reference to the event scene. More...
 
TEveElementListm_global
 Reference to the global item (if added. More...
 
const DisplayConfiguration::ViewConfigm_config
 
std::string m_name
 The name of the view. More...
 
Topics m_geoTopics
 
Topics m_eveTopics
 
bool m_showGlobal
 

Detailed Description

class View View.h DDEve/View.h

Definition at line 45 of file View.h.

Member Typedef Documentation

◆ Topics

typedef std::map<std::string, TEveElementList*> dd4hep::View::Topics

Definition at line 47 of file View.h.

Constructor & Destructor Documentation

◆ View()

View::View ( Display eve,
const std::string &  name 
)

Initializing constructor.

Definition at line 39 of file View.cpp.

◆ ~View()

View::~View ( )
virtual

Default destructor.

Definition at line 47 of file View.cpp.

Member Function Documentation

◆ AddToGlobalItems()

TEveElementList * View::AddToGlobalItems ( const std::string &  nam)
virtual

Add the view to the global list of eve objects.

Definition at line 81 of file View.cpp.

◆ Build()

View & View::Build ( TEveWindow *  slot)
virtual

Build the view view and map it to the given slot.

Build the projection view and map it to the given slot.

Reimplemented in dd4hep::CaloLego, dd4hep::Calo2DProjection, dd4hep::Calo3DProjection, dd4hep::MultiView, dd4hep::View3D, dd4hep::RhoPhiProjection, and dd4hep::RhoZProjection.

Definition at line 58 of file View.cpp.

◆ c_name()

const char* dd4hep::View::c_name ( ) const
inline

Definition at line 82 of file View.h.

◆ ClassDef()

dd4hep::View::ClassDef ( View  ,
 
)

Root implementation macro.

◆ ConfigureEvent()

void View::ConfigureEvent ( const DisplayConfiguration::ViewConfig config)
virtual

Configure a single event scene view.

Configure a single view.

Reimplemented in dd4hep::CaloLego, and dd4hep::Calo2DProjection.

Definition at line 244 of file View.cpp.

◆ ConfigureEventFromGlobal()

void View::ConfigureEventFromGlobal ( )
virtual

Configure an event view by default from the global event scene.

Definition at line 237 of file View.cpp.

◆ ConfigureEventFromInfo()

void View::ConfigureEventFromInfo ( )
virtual

Configure a view with event info. Used configuration if present.

Configure the adding of event data.

Definition at line 230 of file View.cpp.

◆ ConfigureGeometry()

void View::ConfigureGeometry ( const DisplayConfiguration::ViewConfig config)
virtual

Configure a single geometry view.

Reimplemented in dd4hep::CaloLego, and dd4hep::Calo2DProjection.

Definition at line 158 of file View.cpp.

◆ ConfigureGeometryFromGlobal()

void View::ConfigureGeometryFromGlobal ( )
virtual

Configure a single geometry view by default from the global geometry scene with all subdetectors.

Configure a single geometry view by default from the global geometry scene.

Definition at line 145 of file View.cpp.

◆ ConfigureGeometryFromInfo()

void View::ConfigureGeometryFromInfo ( )
virtual

Configure a view with geo info. Used configuration if present.

Configure a view using the view's name and a proper ViewConfiguration if present.

Definition at line 138 of file View.cpp.

◆ CreateEventScene()

View & View::CreateEventScene ( )
virtual

Create the event scene.

Definition at line 314 of file View.cpp.

◆ CreateGeometry()

std::pair< bool, TEveElement * > View::CreateGeometry ( DetElement  de,
const DisplayConfiguration::Config cfg 
)
virtual

Create a new instance of the geometry of a sub-detector.

Definition at line 131 of file View.cpp.

◆ CreateGeoScene()

View & View::CreateGeoScene ( )
virtual

Create the geometry scene.

Definition at line 324 of file View.cpp.

◆ CreateScenes()

View & View::CreateScenes ( )
virtual

Create the geometry and the event scene.

Definition at line 306 of file View.cpp.

◆ eveScene()

TEveScene* dd4hep::View::eveScene ( ) const
inline

Access to the Eve event scene.

Manipulation of the event scene

Definition at line 138 of file View.h.

◆ geoScene()

TEveScene* dd4hep::View::geoScene ( ) const
inline

Access to the Eve geometry scene.

Manipulation of the geometry scene

Definition at line 104 of file View.h.

◆ GetGeoTopic()

TEveElementList & View::GetGeoTopic ( const std::string &  name)
virtual

Access/Create an geometry topic by name.

Access/Create a topic by name.

Definition at line 295 of file View.cpp.

◆ GetGlobalGeometry()

std::pair< bool, TEveElement * > View::GetGlobalGeometry ( DetElement  de,
const DisplayConfiguration::Config cfg 
)
virtual

Access the global instance of the subdetector geometry.

Definition at line 122 of file View.cpp.

◆ ImportEvent()

void View::ImportEvent ( TEveElement *  element)
virtual

Call to import event elements into the main event scene.

Definition at line 288 of file View.cpp.

◆ ImportEventElement()

TEveElement * View::ImportEventElement ( TEveElement *  element,
TEveElementList list 
)
virtual

Call an element to a event element list.

Reimplemented in dd4hep::Projection.

Definition at line 107 of file View.cpp.

◆ ImportEventTopics()

void View::ImportEventTopics ( )
virtual

Import event typics after creation.

Definition at line 284 of file View.cpp.

◆ ImportGeo() [1/3]

void View::ImportGeo ( const std::string &  topic,
TEveElement *  element 
)
virtual

Call to import geometry elements into topics.

Call to import geometry elements by topic.

Definition at line 215 of file View.cpp.

◆ ImportGeo() [2/3]

void View::ImportGeo ( TEveElement *  element)
virtual

Call to import geometry elements into the main geometry scene menu.

Call to import geometry elements.

Definition at line 225 of file View.cpp.

◆ ImportGeo() [3/3]

void View::ImportGeo ( TEveElementList topic,
TEveElement *  element 
)
virtual

Call to import geometry elements into topics.

Definition at line 220 of file View.cpp.

◆ ImportGeoElement()

TEveElement * View::ImportGeoElement ( TEveElement *  element,
TEveElementList list 
)
virtual

Call an element to a geometry element list.

Call an element to a event element list.

Reimplemented in dd4hep::Projection.

Definition at line 92 of file View.cpp.

◆ ImportGeoTopic()

TEveElement * View::ImportGeoTopic ( TEveElement *  element,
TEveElementList list 
)
virtual

Call an element to a geometry element list.

Reimplemented in dd4hep::Projection.

Definition at line 102 of file View.cpp.

◆ ImportGeoTopics()

void View::ImportGeoTopics ( const std::string &  title)
virtual

Call to import geometry topics. If title is empty, do not add to global item list.

Call to import geometry topics.

Reimplemented in dd4hep::CaloLego, and dd4hep::Calo2DProjection.

Definition at line 205 of file View.cpp.

◆ Initialize()

void View::Initialize ( )
virtual

Initialize the view port.

Update color set

Definition at line 63 of file View.cpp.

◆ Map()

View & View::Map ( TEveWindow *  slot)
virtual

Map the view view to the slot.

Map the projection view to the slot.

Reimplemented in dd4hep::Projection.

Definition at line 334 of file View.cpp.

◆ name()

const std::string& dd4hep::View::name ( ) const
inline

Access to the view name/title.

Definition at line 81 of file View.h.

◆ setShowGlobal()

void dd4hep::View::setShowGlobal ( bool  value)
inline

Set show globals.

Definition at line 88 of file View.h.

◆ showGlobal()

bool dd4hep::View::showGlobal ( ) const
inline

Show global directory.

Definition at line 86 of file View.h.

◆ viewer()

TEveViewer* dd4hep::View::viewer ( ) const
inline

Access to the Eve viewer.

Definition at line 84 of file View.h.

Member Data Documentation

◆ m_config

const DisplayConfiguration::ViewConfig* dd4hep::View::m_config
protected

Definition at line 58 of file View.h.

◆ m_eve

Display* dd4hep::View::m_eve
protected

Definition at line 49 of file View.h.

◆ m_eveScene

TEveScene* dd4hep::View::m_eveScene
protected

Reference to the event scene.

Definition at line 55 of file View.h.

◆ m_eveTopics

Topics dd4hep::View::m_eveTopics
protected

Definition at line 64 of file View.h.

◆ m_geoScene

TEveScene* dd4hep::View::m_geoScene
protected

Reference to the geometry scene.

Definition at line 53 of file View.h.

◆ m_geoTopics

Topics dd4hep::View::m_geoTopics
protected

Definition at line 63 of file View.h.

◆ m_global

TEveElementList* dd4hep::View::m_global
protected

Reference to the global item (if added.

Definition at line 57 of file View.h.

◆ m_name

std::string dd4hep::View::m_name
protected

The name of the view.

Definition at line 61 of file View.h.

◆ m_showGlobal

bool dd4hep::View::m_showGlobal
protected

Definition at line 65 of file View.h.

◆ m_view

TEveViewer* dd4hep::View::m_view
protected

Reference to the view.

Definition at line 51 of file View.h.


The documentation for this class was generated from the following files: