CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FW3DViewBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FW3DViewBase_h
2 #define Fireworks_Core_FW3DViewBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FW3DViewBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu Feb 21 11:22:37 EST 2008
19 //
20 
21 // system include files
22 
23 // user include files
24 #include "Rtypes.h"
29 // forward declarations
30 class TEveElementList;
31 class TEveGeoShape;
32 class TEveWindowSlot;
33 
34 class FW3DViewGeometry;
35 class FWColorManager;
36 class TGLClip;
37 class TEveLine;
38 class TEveBoxSet;
39 
41 
42 class FW3DViewBase : public FWEveView
43 {
44 public:
45  FW3DViewBase(TEveWindowSlot*, FWViewType::EType, unsigned int version = 8);
46  virtual ~FW3DViewBase();
47 
48  // ---------- const member functions ---------------------
49 
50  virtual void addTo(FWConfiguration&) const;
51  virtual void populateController(ViewerParameterGUI&) const;
52 
53  // ---------- static member functions --------------------
54 
55  // ---------- member functions ---------------------------
56  virtual void setContext(const fireworks::Context&);
57  virtual void setFrom(const FWConfiguration&);
58 
59  // To be fixed.
61 
63  virtual bool requestGLHandlerPick() const;
64  void setCurrentDMTVertex(double x, double y, double z);
65 
66  void showEcalBarrel(bool);
67 
68  void setClip(float eta, float phi);
69 
70 private:
71  FW3DViewBase(const FW3DViewBase&); // stop default
72 
73  const FW3DViewBase& operator=(const FW3DViewBase&); // stop default
74 
75  // ---------- member data --------------------------------
77  TGLClip* m_glClip;
78 
79  // parameters
86 
87  TEveBoxSet* m_ecalBarrel;
89 
92 
94 
101 
102 
104  TEveLine* m_DMTline;
105 
106  void selectable( bool );
107 
108  void enableSceneClip( bool );
109  void updateClipPlanes(bool resetCamera);
110 
111  void rnrStyle(long);
112  void showMuonBarrel( long );
113  void setCameraType(long);
114 };
115 
116 
117 #endif
virtual ~FW3DViewBase()
FWDoubleParameter m_clipTheta
Definition: FW3DViewBase.h:96
virtual bool requestGLHandlerPick() const
void showEcalBarrel(bool)
void showMuonBarrel(long)
void rnrStyle(long)
virtual void setFrom(const FWConfiguration &)
FWBoolParameter m_showMuonEndcap
Definition: FW3DViewBase.h:81
void setClip(float eta, float phi)
FW3DViewDistanceMeasureTool * getDMT()
Definition: FW3DViewBase.h:62
void setCurrentDMTVertex(double x, double y, double z)
FWBoolParameter m_showTrackerBarrel
Definition: FW3DViewBase.h:84
FW3DViewDistanceMeasureTool * m_DMT
Definition: FW3DViewBase.h:103
void selectable(bool)
void setCameraType(long)
FWDoubleParameter m_clipPhi
Definition: FW3DViewBase.h:97
void enableSceneClip(bool)
virtual void addTo(FWConfiguration &) const
virtual void populateController(ViewerParameterGUI &) const
FWEnumParameter m_rnrStyle
Definition: FW3DViewBase.h:90
void updateClipPlanes(bool resetCamera)
FWBoolParameter m_clipEnable
Definition: FW3DViewBase.h:95
FWBoolParameter m_showPixelEndcap
Definition: FW3DViewBase.h:83
void updateGlobalSceneScaleParameters()
FWDoubleParameter m_clipDelta1
Definition: FW3DViewBase.h:98
virtual void setContext(const fireworks::Context &)
virtual void resetCamera()
Definition: FWEveView.cc:264
const FW3DViewBase & operator=(const FW3DViewBase &)
FWBoolParameter m_showEcalBarrel
Definition: FW3DViewBase.h:88
TGLClip * m_glClip
Definition: FW3DViewBase.h:77
TEveLine * m_DMTline
Definition: FW3DViewBase.h:104
TEveBoxSet * m_ecalBarrel
Definition: FW3DViewBase.h:87
FWEnumParameter m_showMuonBarrel
Definition: FW3DViewBase.h:80
FW3DViewBase(TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
FW3DViewGeometry * m_geometry
Definition: FW3DViewBase.h:76
FWBoolParameter m_selectable
Definition: FW3DViewBase.h:91
FWEnumParameter m_cameraType
Definition: FW3DViewBase.h:93
FWLongParameter m_clipAppexOffset
Definition: FW3DViewBase.h:100
FWBoolParameter m_showTrackerEndcap
Definition: FW3DViewBase.h:85
FWDoubleParameter m_clipDelta2
Definition: FW3DViewBase.h:99
FWBoolParameter m_showPixelBarrel
Definition: FW3DViewBase.h:82