CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWRPZView.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWRPZView_h
2 #define Fireworks_Core_FWRPZView_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWRPZView
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Feb 19 10:33:21 EST 2008
19 // $Id: FWRPZView.h,v 1.24 2011/10/15 02:33:29 amraktad Exp $
20 //
21 
22 // system include files
23 #include <string>
24 
25 // user include files
30 #include "TEveVector.h"
31 
32 // forward declarations
33 class TEveProjectionManager;
34 class TGLMatrix;
35 class TEveCalo2D;
36 class TEveProjectionAxes;
37 class TEveWindowSlot;
38 class FWColorManager;
39 class FWRPZViewGeometry;
40 
41 class FWRPZView : public FWEveView
42 {
43 public:
44  FWRPZView(TEveWindowSlot* iParent, FWViewType::EType);
45  virtual ~FWRPZView();
46 
47  // ---------- const member functions ---------------------
48 
49  virtual void addTo(FWConfiguration&) const;
50  virtual void populateController(ViewerParameterGUI&) const;
51  virtual TEveCaloViz* getEveCalo() const;
52 
53  // ---------- member functions ---------------------------
54  virtual void setContext(const fireworks::Context&);
55  virtual void setFrom(const FWConfiguration&);
56  virtual void voteCaloMaxVal();
57 
58  virtual void eventBegin();
59  virtual void eventEnd();
60 
61  //returns the new element created from this import
62  void importElements(TEveElement* iProjectableChild, float layer, TEveElement* iProjectedParent=0);
63 
64  void shiftOrigin(TEveVector& center);
65  void resetOrigin();
66 private:
67  FWRPZView(const FWRPZView&); // stop default
68  const FWRPZView& operator=(const FWRPZView&); // stop default
69 
70  void doPreScaleDistortion();
71  void doFishEyeDistortion();
72  void doCompression(bool);
74 
75 
76  void setEtaRng();
77 
78  void showProjectionAxes( );
80 
81  // ---------- member data --------------------------------
82  const static float s_distortF;
83  const static float s_distortFInv;
84 
86  TEveProjectionManager* m_projMgr;
87  TEveProjectionAxes* m_axes;
88  TEveCalo2D* m_calo;
89 
90 
91  // parameters
92 
97 
101 
107 
110 
111 };
112 
113 
114 #endif
void doShiftOriginToBeamSpot()
Definition: FWRPZView.cc:216
void doFishEyeDistortion()
Definition: FWRPZView.cc:265
virtual void populateController(ViewerParameterGUI &) const
Definition: FWRPZView.cc:401
FWBoolParameter m_shiftOrigin
Definition: FWRPZView.h:98
FWBoolParameter m_showProjectionAxes
Definition: FWRPZView.h:104
FWRPZView(TEveWindowSlot *iParent, FWViewType::EType)
Definition: FWRPZView.cc:51
virtual TEveCaloViz * getEveCalo() const
Definition: FWRPZView.cc:143
TEveCalo2D * m_calo
Definition: FWRPZView.h:88
virtual void setContext(const fireworks::Context &)
Definition: FWRPZView.cc:149
FWDoubleParameter m_projectionAxesLabelSize
Definition: FWRPZView.h:105
const FWRPZView & operator=(const FWRPZView &)
TEveProjectionAxes * m_axes
Definition: FWRPZView.h:87
FWBoolParameter * m_showHF
Definition: FWRPZView.h:108
TEveProjectionManager * m_projMgr
Definition: FWRPZView.h:86
FWDoubleParameter m_fishEyeR
Definition: FWRPZView.h:100
void resetOrigin()
Definition: FWRPZView.cc:249
void doCompression(bool)
Definition: FWRPZView.cc:295
virtual void setFrom(const FWConfiguration &)
Definition: FWRPZView.cc:325
void setEtaRng()
Definition: FWRPZView.cc:341
virtual void voteCaloMaxVal()
Definition: FWRPZView.cc:356
FWBoolParameter m_showTrackerBarrel
Definition: FWRPZView.h:95
void showProjectionAxes()
Definition: FWRPZView.cc:387
void importElements(TEveElement *iProjectableChild, float layer, TEveElement *iProjectedParent=0)
Definition: FWRPZView.cc:304
virtual void addTo(FWConfiguration &) const
Definition: FWRPZView.cc:317
FWBoolParameter m_compressMuon
Definition: FWRPZView.h:106
FWRPZViewGeometry * m_geometryList
Definition: FWRPZView.h:85
void shiftOrigin(TEveVector &center)
Definition: FWRPZView.cc:231
virtual ~FWRPZView()
Definition: FWRPZView.cc:132
virtual void eventBegin()
Definition: FWRPZView.cc:182
void doPreScaleDistortion()
Definition: FWRPZView.cc:278
FWBoolParameter * m_showEndcaps
Definition: FWRPZView.h:109
static const float s_distortFInv
Definition: FWRPZView.h:83
FWDoubleParameter m_fishEyeDistortion
Definition: FWRPZView.h:99
FWBoolParameter m_showTrackerEndcap
Definition: FWRPZView.h:96
FWDoubleParameter m_muonDistortion
Definition: FWRPZView.h:103
FWBoolParameter m_showPixelEndcap
Definition: FWRPZView.h:94
FWDoubleParameter m_caloDistortion
Definition: FWRPZView.h:102
FWBoolParameter m_showPixelBarrel
Definition: FWRPZView.h:93
virtual void eventEnd()
Definition: FWRPZView.cc:209
static const float s_distortF
Definition: FWRPZView.h:82
void projectionAxesLabelSize()
Definition: FWRPZView.cc:394