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

class Projection Projection.h DDEve/Projection.h More...

#include <Projection.h>

Inheritance diagram for dd4hep::Projection:
dd4hep::View dd4hep::Calo2DProjection dd4hep::RhoPhiProjection dd4hep::RhoZProjection

Public Member Functions

 Projection (Display *eve, const std::string &name)
 Initializing constructor. More...
 
virtual ~Projection ()
 Default destructor. More...
 
virtual ViewMap (TEveWindow *slot) override
 Map the projection view to the slot. More...
 
virtual ProjectionAddAxis ()
 Add projection axis to the view. More...
 
virtual ProjectionCreateRhoPhiProjection ()
 Create Rho-Phi projection. More...
 
virtual ProjectionCreateRhoZProjection ()
 Create Rho-Z projection. More...
 
virtual void SetDepth (Float_t d)
 
 ClassDefOverride (Projection, 0)
 
- Public Member Functions inherited from dd4hep::View
 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 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 Member Functions

virtual TEveElement * ImportElement (TEveElement *el, TEveElementList *list)
 Call an element to a event element list. More...
 
virtual TEveElement * ImportGeoElement (TEveElement *element, TEveElementList *list) override
 Call an element to a geometry element list. More...
 
virtual TEveElement * ImportGeoTopic (TEveElement *element, TEveElementList *list) override
 Call an element to a geometry element list. More...
 
virtual TEveElement * ImportEventElement (TEveElement *element, TEveElementList *list) override
 Call an element to a event element list. More...
 

Protected Attributes

TEveProjectionManager * m_projMgr
 Reference to the projection manager. More...
 
TEveProjectionAxes * m_axis
 Reference to the projection axis. More...
 
- Protected Attributes inherited from dd4hep::View
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
 

Additional Inherited Members

- Public Types inherited from dd4hep::View
typedef std::map< std::string, TEveElementList * > Topics
 

Detailed Description

class Projection Projection.h DDEve/Projection.h

Definition at line 32 of file Projection.h.

Constructor & Destructor Documentation

◆ Projection()

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

Initializing constructor.

Definition at line 29 of file Projection.cpp.

◆ ~Projection()

Projection::~Projection ( )
virtual

Default destructor.

Definition at line 35 of file Projection.cpp.

Member Function Documentation

◆ AddAxis()

Projection & Projection::AddAxis ( )
virtual

Add projection axis to the view.

Add axis to the projection view.

Definition at line 83 of file Projection.cpp.

◆ ClassDefOverride()

dd4hep::Projection::ClassDefOverride ( Projection  ,
 
)

◆ CreateRhoPhiProjection()

Projection & Projection::CreateRhoPhiProjection ( )
virtual

Create Rho-Phi projection.

Definition at line 97 of file Projection.cpp.

◆ CreateRhoZProjection()

Projection & Projection::CreateRhoZProjection ( )
virtual

Create Rho-Z projection.

Definition at line 106 of file Projection.cpp.

◆ ImportElement()

TEveElement * Projection::ImportElement ( TEveElement *  el,
TEveElementList list 
)
protectedvirtual

Call an element to a event element list.

Definition at line 49 of file Projection.cpp.

◆ ImportEventElement()

TEveElement * Projection::ImportEventElement ( TEveElement *  element,
TEveElementList list 
)
overrideprotectedvirtual

Call an element to a event element list.

Reimplemented from dd4hep::View.

Definition at line 78 of file Projection.cpp.

◆ ImportGeoElement()

TEveElement * Projection::ImportGeoElement ( TEveElement *  element,
TEveElementList list 
)
overrideprotectedvirtual

Call an element to a geometry element list.

Reimplemented from dd4hep::View.

Definition at line 73 of file Projection.cpp.

◆ ImportGeoTopic()

TEveElement * Projection::ImportGeoTopic ( TEveElement *  element,
TEveElementList list 
)
overrideprotectedvirtual

Call an element to a geometry element list.

Reimplemented from dd4hep::View.

Definition at line 44 of file Projection.cpp.

◆ Map()

View & Projection::Map ( TEveWindow *  slot)
overridevirtual

Map the projection view to the slot.

Reimplemented from dd4hep::View.

Definition at line 115 of file Projection.cpp.

◆ SetDepth()

void Projection::SetDepth ( Float_t  d)
virtual

Definition at line 38 of file Projection.cpp.

Member Data Documentation

◆ m_axis

TEveProjectionAxes* dd4hep::Projection::m_axis
protected

Reference to the projection axis.

Definition at line 37 of file Projection.h.

◆ m_projMgr

TEveProjectionManager* dd4hep::Projection::m_projMgr
protected

Reference to the projection manager.

Definition at line 35 of file Projection.h.


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