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.19 2011/03/08 11:42:26 amraktad Exp $
20 //
21 
22 // system include files
23 #include <string>
24 
25 // user include files
30 
31 // forward declarations
32 class TEveProjectionManager;
33 class TGLMatrix;
34 class TEveCalo2D;
35 class TEveProjectionAxes;
36 class TEveWindowSlot;
37 class FWColorManager;
38 class FWRPZViewGeometry;
39 
40 class FWRPZView : public FWEveView
41 {
42 public:
43  FWRPZView(TEveWindowSlot* iParent, FWViewType::EType);
44  virtual ~FWRPZView();
45 
46  // ---------- const member functions ---------------------
47 
48  virtual void addTo(FWConfiguration&) const;
49  virtual void populateController(ViewerParameterGUI&) const;
50  virtual TEveCaloViz* getEveCalo() const;
51 
52  // ---------- member functions ---------------------------
53  virtual void setContext(const fireworks::Context&);
54  virtual void setFrom(const FWConfiguration&);
55  virtual void voteCaloMaxVal();
56 
57  virtual void eventBegin();
58 
59  //returns the new element created from this import
60  void importElements(TEveElement* iProjectableChild, float layer, TEveElement* iProjectedParent=0);
61 
62 private:
63  FWRPZView(const FWRPZView&); // stop default
64  const FWRPZView& operator=(const FWRPZView&); // stop default
65 
66  void doPreScaleDistortion();
67  void doFishEyeDistortion();
68  void doCompression(bool);
69  void doShiftOrigin();
70 
71  void setEtaRng();
72 
73  void showProjectionAxes( );
74 
75  // ---------- member data --------------------------------
77  const static float s_distortF;
78  const static float s_distortFInv;
79 
80  TEveProjectionManager* m_projMgr;
81  TEveProjectionAxes* m_axes;
82  TEveCalo2D* m_calo;
83 
84 
85  // parameters
89 
94 
97 
98 };
99 
100 
101 #endif
static FWRPZViewGeometry * s_geometryList
Definition: FWRPZView.h:76
void doFishEyeDistortion()
Definition: FWRPZView.cc:207
virtual void populateController(ViewerParameterGUI &) const
Definition: FWRPZView.cc:339
FWBoolParameter m_shiftOrigin
Definition: FWRPZView.h:86
FWBoolParameter m_showProjectionAxes
Definition: FWRPZView.h:92
FWRPZView(TEveWindowSlot *iParent, FWViewType::EType)
Definition: FWRPZView.cc:51
virtual TEveCaloViz * getEveCalo() const
Definition: FWRPZView.cc:131
TEveCalo2D * m_calo
Definition: FWRPZView.h:82
virtual void setContext(const fireworks::Context &)
Definition: FWRPZView.cc:137
const FWRPZView & operator=(const FWRPZView &)
TEveProjectionAxes * m_axes
Definition: FWRPZView.h:81
FWBoolParameter * m_showHF
Definition: FWRPZView.h:95
TEveProjectionManager * m_projMgr
Definition: FWRPZView.h:80
FWDoubleParameter m_fishEyeR
Definition: FWRPZView.h:88
void doCompression(bool)
Definition: FWRPZView.cc:237
virtual void setFrom(const FWConfiguration &)
Definition: FWRPZView.cc:267
void doShiftOrigin()
Definition: FWRPZView.cc:192
void setEtaRng()
Definition: FWRPZView.cc:283
virtual void voteCaloMaxVal()
Definition: FWRPZView.cc:298
void showProjectionAxes()
Definition: FWRPZView.cc:329
void importElements(TEveElement *iProjectableChild, float layer, TEveElement *iProjectedParent=0)
Definition: FWRPZView.cc:246
virtual void addTo(FWConfiguration &) const
Definition: FWRPZView.cc:259
FWBoolParameter m_compressMuon
Definition: FWRPZView.h:93
virtual ~FWRPZView()
Definition: FWRPZView.cc:120
virtual void eventBegin()
Definition: FWRPZView.cc:165
void doPreScaleDistortion()
Definition: FWRPZView.cc:220
FWBoolParameter * m_showEndcaps
Definition: FWRPZView.h:96
static const float s_distortFInv
Definition: FWRPZView.h:78
FWDoubleParameter m_fishEyeDistortion
Definition: FWRPZView.h:87
FWDoubleParameter m_muonDistortion
Definition: FWRPZView.h:91
FWDoubleParameter m_caloDistortion
Definition: FWRPZView.h:90
static const float s_distortF
Definition: FWRPZView.h:77