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
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 Geometry::LCDD LCDD
 
typedef Geometry::DetElement DetElement
 
typedef Geometry::SensitiveDetector SensitiveDetector
 
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::ViewConfig
m_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 46 of file View.h.

Member Typedef Documentation

Definition at line 49 of file View.h.

Definition at line 48 of file View.h.

Definition at line 50 of file View.h.

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

Definition at line 51 of file View.h.

Constructor & Destructor Documentation

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

Initializing constructor.

Definition at line 41 of file View.cpp.

References DD4hep::Display::GetViewConfiguration(), DD4hep::InstanceCount::increment(), m_config, m_eve, and m_name.

View::~View ( )
virtual

Member Function Documentation

TEveElementList * View::AddToGlobalItems ( const std::string &  nam)
virtual
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 60 of file View.cpp.

Referenced by DD4hep::ViewMenu::BuildView().

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

Definition at line 86 of file View.h.

References m_name.

Referenced by ConfigureEventFromInfo(), ConfigureGeometry(), ConfigureGeometryFromInfo(), and ImportGeoTopics().

DD4hep::View::ClassDef ( View  ,
 
)

Root implementation macro.

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

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

Definition at line 238 of file View.cpp.

References ImportEvent(), m_eve, and DD4hep::Display::manager().

Referenced by ConfigureEventFromInfo().

void View::ConfigureEventFromInfo ( )
virtual

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

Configure the adding of event data.

Definition at line 231 of file View.cpp.

References c_name(), ConfigureEvent(), ConfigureEventFromGlobal(), ImportEventTopics(), DD4hep::INFO, m_config, and DD4hep::printout().

Referenced by DD4hep::ViewMenu::BuildView().

void View::ConfigureGeometry ( const DisplayConfiguration::ViewConfig config)
virtual
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 147 of file View.cpp.

References GetGeoTopic(), DD4hep::Display::GetGeoTopic(), ImportGeo(), and m_eve.

Referenced by 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 140 of file View.cpp.

References c_name(), ConfigureGeometry(), ConfigureGeometryFromGlobal(), ImportGeoTopics(), DD4hep::INFO, m_config, name(), and DD4hep::printout().

Referenced by DD4hep::ViewMenu::BuildView().

View & View::CreateEventScene ( )
virtual

Create the event scene.

Definition at line 315 of file View.cpp.

References m_eve, m_eveScene, m_name, and DD4hep::Display::manager().

Referenced by CreateScenes().

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

Create the geometry scene.

Definition at line 325 of file View.cpp.

References m_eve, m_geoScene, m_name, and DD4hep::Display::manager().

Referenced by CreateScenes().

View & View::CreateScenes ( )
virtual
TEveScene* DD4hep::View::eveScene ( ) const
inline

Access to the Eve event scene.

Manipulation of the event scene

Definition at line 142 of file View.h.

Referenced by AddToGlobalItems(), and Initialize().

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

Access to the Eve geometry scene.

Manipulation of the geometry scene

Definition at line 108 of file View.h.

Referenced by AddToGlobalItems(), and Initialize().

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

Access/Create an geometry topic by name.

Access/Create a topic by name.

Definition at line 296 of file View.cpp.

References m_geoTopics.

Referenced by ConfigureGeometry(), ConfigureGeometryFromGlobal(), CreateGeometry(), DD4hep::Projection::ImportElement(), and ImportGeo().

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

Access the global instance of the subdetector geometry.

Definition at line 124 of file View.cpp.

References DD4hep::Display::GetGeoTopic(), DD4hep::Handle< T >::isValid(), DD4hep::Display::lcdd(), m_eve, DD4hep::Handle< T >::name(), and DD4hep::Geometry::LCDD::sensitiveDetector().

Referenced by ConfigureGeometry().

void View::ImportEvent ( TEveElement *  element)
virtual

Call to import event elements into the main event scene.

Definition at line 289 of file View.cpp.

References ImportEventElement(), and m_eveScene.

Referenced by ConfigureEvent(), and ConfigureEventFromGlobal().

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

Call an element to a event element list.

Reimplemented in DD4hep::Projection.

Definition at line 109 of file View.cpp.

References DD4hep::Utilities::GetName(), DD4hep::INFO, DD4hep::printout(), and s.

Referenced by ImportEvent().

void View::ImportEventTopics ( )
virtual

Import event typics after creation.

Definition at line 285 of file View.cpp.

Referenced by ConfigureEventFromInfo().

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 216 of file View.cpp.

References GetGeoTopic(), and ImportGeoElement().

Referenced by ConfigureGeometry(), and ConfigureGeometryFromGlobal().

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

Call to import geometry elements into topics.

Definition at line 221 of file View.cpp.

References ImportGeoElement().

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 226 of file View.cpp.

References ImportGeoElement(), and m_geoScene.

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 94 of file View.cpp.

References s.

Referenced by ImportGeo(), and ImportGeoTopic().

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

Call an element to a geometry element list.

Reimplemented in DD4hep::Projection.

Definition at line 104 of file View.cpp.

References ImportGeoElement().

Referenced by 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 206 of file View.cpp.

References AddToGlobalItems(), c_name(), ImportGeoTopic(), DD4hep::INFO, m_geoScene, m_geoTopics, and DD4hep::printout().

Referenced by ConfigureGeometryFromInfo().

void View::Initialize ( )
virtual

Initialize the view port.

Update color set

Definition at line 65 of file View.cpp.

References eveScene(), geoScene(), m_eve, DD4hep::Display::manager(), and viewer().

Referenced by DD4hep::ViewMenu::BuildView().

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 335 of file View.cpp.

References m_eve, m_eveScene, m_geoScene, m_name, m_view, and DD4hep::Display::manager().

Referenced by DD4hep::MultiView::Build(), DD4hep::View3D::Build(), DD4hep::Calo3DProjection::Build(), and DD4hep::Projection::Map().

const std::string& DD4hep::View::name ( ) const
inline
void DD4hep::View::setShowGlobal ( bool  value)
inline

Set show globals.

Definition at line 92 of file View.h.

References m_showGlobal.

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

Show global directory.

Definition at line 90 of file View.h.

References m_showGlobal.

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

Access to the Eve viewer.

Definition at line 88 of file View.h.

References m_view.

Referenced by ConfigureGeometry(), and Initialize().

Member Data Documentation

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

Definition at line 62 of file View.h.

Referenced by ConfigureEventFromInfo(), ConfigureGeometryFromInfo(), and View().

Display* DD4hep::View::m_eve
protected
TEveScene* DD4hep::View::m_eveScene
protected

Reference to the event scene.

Definition at line 59 of file View.h.

Referenced by AddToGlobalItems(), ConfigureEvent(), CreateEventScene(), DD4hep::Projection::ImportElement(), ImportEvent(), Map(), and ~View().

Topics DD4hep::View::m_eveTopics
protected

Definition at line 68 of file View.h.

TEveScene* DD4hep::View::m_geoScene
protected

Reference to the geometry scene.

Definition at line 57 of file View.h.

Referenced by DD4hep::Projection::AddAxis(), AddToGlobalItems(), CreateGeoScene(), DD4hep::Projection::ImportElement(), ImportGeo(), ImportGeoTopics(), Map(), and ~View().

Topics DD4hep::View::m_geoTopics
protected

Definition at line 67 of file View.h.

Referenced by GetGeoTopic(), DD4hep::Projection::ImportElement(), ImportGeoTopics(), and ~View().

TEveElementList* DD4hep::View::m_global
protected

Reference to the global item (if added.

Definition at line 61 of file View.h.

Referenced by AddToGlobalItems(), and ~View().

std::string DD4hep::View::m_name
protected

The name of the view.

Definition at line 65 of file View.h.

Referenced by DD4hep::MultiView::Build(), c_name(), CreateEventScene(), CreateGeoScene(), Map(), name(), and View().

bool DD4hep::View::m_showGlobal
protected

Definition at line 69 of file View.h.

Referenced by AddToGlobalItems(), setShowGlobal(), and showGlobal().

TEveViewer* DD4hep::View::m_view
protected

Reference to the view.

Definition at line 55 of file View.h.

Referenced by ConfigureGeometry(), DD4hep::Projection::Map(), Map(), and viewer().


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