DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Projection.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DDEVE_PROJECTION_H
14 #define DDEVE_PROJECTION_H
15 
16 // Framework include files
17 #include "DDEve/View.h"
18 
19 // Eve include files
20 #include <TEveProjectionManager.h>
21 #include <TEveProjectionAxes.h>
22 
24 namespace dd4hep {
25 
27  /*
28  * \author M.Frank
29  * \version 1.0
30  * \ingroup DD4HEP_EVE
31  */
32  class Projection : public View {
33  protected:
35  TEveProjectionManager *m_projMgr;
37  TEveProjectionAxes* m_axis;
38 
40  virtual TEveElement* ImportElement(TEveElement* el, TEveElementList* list);
42  virtual TEveElement* ImportGeoElement(TEveElement* element, TEveElementList* list) override;
44  virtual TEveElement* ImportGeoTopic(TEveElement* element, TEveElementList* list) override;
46  virtual TEveElement* ImportEventElement(TEveElement* element, TEveElementList* list) override;
47 
48 
49  public:
51  Projection(Display* eve, const std::string& name);
53  virtual ~Projection();
55  virtual View& Map(TEveWindow* slot) override;
57  virtual Projection& AddAxis();
62 
63  virtual void SetDepth(Float_t d);
64 
66  };
67 } /* End namespace dd4hep */
68 #endif // DDEVE_PROJECTION_H
dd4hep::Display
The main class of the DDEve display.
Definition: Display.h:56
dd4hep::Projection::ImportGeoTopic
virtual TEveElement * ImportGeoTopic(TEveElement *element, TEveElementList *list) override
Call an element to a geometry element list.
Definition: Projection.cpp:44
dd4hep::Projection::m_axis
TEveProjectionAxes * m_axis
Reference to the projection axis.
Definition: Projection.h:37
dd4hep::Projection::ImportEventElement
virtual TEveElement * ImportEventElement(TEveElement *element, TEveElementList *list) override
Call an element to a event element list.
Definition: Projection.cpp:78
dd4hep::Projection::AddAxis
virtual Projection & AddAxis()
Add projection axis to the view.
Definition: Projection.cpp:83
dd4hep::Projection
class Projection Projection.h DDEve/Projection.h
Definition: Projection.h:32
TEveElementList
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
Definition: ROOTClasses.h:13
dd4hep::View::name
const std::string & name() const
Access to the view name/title.
Definition: View.h:81
slot
View TEveWindowSlot * slot
Definition: MultiView.cpp:28
dd4hep::Projection::ImportGeoElement
virtual TEveElement * ImportGeoElement(TEveElement *element, TEveElementList *list) override
Call an element to a geometry element list.
Definition: Projection.cpp:73
dd4hep::Projection::~Projection
virtual ~Projection()
Default destructor.
Definition: Projection.cpp:35
dd4hep::Projection::SetDepth
virtual void SetDepth(Float_t d)
Definition: Projection.cpp:38
dd4hep::Projection::ImportElement
virtual TEveElement * ImportElement(TEveElement *el, TEveElementList *list)
Call an element to a event element list.
Definition: Projection.cpp:49
dd4hep::Projection::Map
virtual View & Map(TEveWindow *slot) override
Map the projection view to the slot.
Definition: Projection.cpp:115
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::Projection::CreateRhoPhiProjection
virtual Projection & CreateRhoPhiProjection()
Create Rho-Phi projection.
Definition: Projection.cpp:97
dd4hep::View
class View View.h DDEve/View.h
Definition: View.h:45
dd4hep::Projection::m_projMgr
TEveProjectionManager * m_projMgr
Reference to the projection manager.
Definition: Projection.h:35
dd4hep::Projection::ClassDefOverride
ClassDefOverride(Projection, 0)
View.h
dd4hep::Projection::Projection
Projection(Display *eve, const std::string &name)
Initializing constructor.
Definition: Projection.cpp:29
dd4hep::Projection::CreateRhoZProjection
virtual Projection & CreateRhoZProjection()
Create Rho-Z projection.
Definition: Projection.cpp:106