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
Projection.h
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 #ifndef DD4HEP_DDEVE_PROJECTION_H
15 #define DD4HEP_DDEVE_PROJECTION_H
16 
17 // Framework include files
18 #include "DDEve/View.h"
19 
20 // Eve include files
21 #include <TEveProjectionManager.h>
22 #include <TEveProjectionAxes.h>
23 
25 namespace DD4hep {
26 
28  /*
29  * \author M.Frank
30  * \version 1.0
31  * \ingroup DD4HEP_EVE
32  */
33  class Projection : public View {
34  protected:
36  TEveProjectionManager *m_projMgr;
38  TEveProjectionAxes* m_axis;
39 
41  virtual TEveElement* ImportElement(TEveElement* el, TEveElementList* list);
43  virtual TEveElement* ImportGeoElement(TEveElement* element, TEveElementList* list);
45  virtual TEveElement* ImportGeoTopic(TEveElement* element, TEveElementList* list);
47  virtual TEveElement* ImportEventElement(TEveElement* element, TEveElementList* list);
48 
49 
50  public:
52  Projection(Display* eve, const std::string& name);
54  virtual ~Projection();
56  virtual View& Map(TEveWindow* slot);
58  virtual Projection& AddAxis();
63 
64  virtual void SetDepth(Float_t d);
65 
67  };
68 } /* End namespace DD4hep */
69 
70 
71 #endif /* DD4HEP_DDEVE_PROJECTION_H */
ClassDef(Projection, 0)
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
Definition: ROOTClasses.h:10
virtual TEveElement * ImportGeoElement(TEveElement *element, TEveElementList *list)
Call an element to a geometry element list.
Definition: Projection.cpp:75
View TEveWindowSlot * slot
Definition: MultiView.cpp:30
virtual Projection & AddAxis()
Add projection axis to the view.
Definition: Projection.cpp:85
TEveProjectionAxes * m_axis
Reference to the projection axis.
Definition: Projection.h:38
virtual TEveElement * ImportElement(TEveElement *el, TEveElementList *list)
Call an element to a event element list.
Definition: Projection.cpp:51
virtual ~Projection()
Default destructor.
Definition: Projection.cpp:37
virtual void SetDepth(Float_t d)
Definition: Projection.cpp:40
class View View.h DDEve/View.h
Definition: View.h:46
class Projection Projection.h DDEve/Projection.h
Definition: Projection.h:33
virtual TEveElement * ImportEventElement(TEveElement *element, TEveElementList *list)
Call an element to a event element list.
Definition: Projection.cpp:80
virtual Projection & CreateRhoZProjection()
Create Rho-Z projection.
Definition: Projection.cpp:108
TEveProjectionManager * m_projMgr
Reference to the projection manager.
Definition: Projection.h:36
virtual View & Map(TEveWindow *slot)
Map the projection view to the slot.
Definition: Projection.cpp:117
virtual TEveElement * ImportGeoTopic(TEveElement *element, TEveElementList *list)
Call an element to a geometry element list.
Definition: Projection.cpp:46
Projection(Display *eve, const std::string &name)
Initializing constructor.
Definition: Projection.cpp:31
virtual Projection & CreateRhoPhiProjection()
Create Rho-Phi projection.
Definition: Projection.cpp:99
The main class of the DDEve display.
Definition: Display.h:57
const std::string & name() const
Access to the view name/title.
Definition: View.h:85