CMS 3D CMS Logo

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  ~FW3DViewBase() override;
47 
48  // ---------- const member functions ---------------------
49 
50  void addTo(FWConfiguration&) const override;
51  void populateController(ViewerParameterGUI&) const override;
52 
53  // ---------- static member functions --------------------
54 
55  // ---------- member functions ---------------------------
56  void setContext(const fireworks::Context&) override;
57  void setFrom(const FWConfiguration&) override;
58 
59  // To be fixed.
61 
63  bool requestGLHandlerPick() const override;
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
89 
90  TEveBoxSet* m_ecalBarrel;
92 
95 
97 
106 
108  TEveLine* m_DMTline;
109 
110  void selectable( bool );
111 
112  void enableSceneClip( bool );
113  void updateClipPlanes(bool resetCamera);
114  void updateHGCalVisibility(bool);
115 
116  void rnrStyle(long);
117  void showMuonBarrel( long );
118  void setCameraType(long);
119 };
120 
121 
122 #endif
FWDoubleParameter m_clipTheta
Definition: FW3DViewBase.h:99
void updateHGCalVisibility(bool)
void showEcalBarrel(bool)
void showMuonBarrel(long)
void rnrStyle(long)
FWBoolParameter m_showMuonEndcap
Definition: FW3DViewBase.h:81
void setClip(float eta, float phi)
FWBoolParameter m_showHGCalEE
Definition: FW3DViewBase.h:86
FW3DViewDistanceMeasureTool * getDMT()
Definition: FW3DViewBase.h:62
bool requestGLHandlerPick() const override
void setCurrentDMTVertex(double x, double y, double z)
FWBoolParameter m_showTrackerBarrel
Definition: FW3DViewBase.h:84
FW3DViewDistanceMeasureTool * m_DMT
Definition: FW3DViewBase.h:107
void selectable(bool)
void setCameraType(long)
FWDoubleParameter m_clipPhi
Definition: FW3DViewBase.h:100
~FW3DViewBase() override
void enableSceneClip(bool)
void addTo(FWConfiguration &) const override
FWEnumParameter m_rnrStyle
Definition: FW3DViewBase.h:93
void updateClipPlanes(bool resetCamera)
FWBoolParameter m_clipEnable
Definition: FW3DViewBase.h:98
FWBoolParameter m_showPixelEndcap
Definition: FW3DViewBase.h:83
void updateGlobalSceneScaleParameters()
FWDoubleParameter m_clipDelta1
Definition: FW3DViewBase.h:101
virtual void resetCamera()
Definition: FWEveView.cc:264
void setContext(const fireworks::Context &) override
const FW3DViewBase & operator=(const FW3DViewBase &)
FWLongParameter m_clipHGCalLayerBegin
Definition: FW3DViewBase.h:104
FWBoolParameter m_showHGCalHSi
Definition: FW3DViewBase.h:87
FWBoolParameter m_showHGCalHSc
Definition: FW3DViewBase.h:88
FWBoolParameter m_showEcalBarrel
Definition: FW3DViewBase.h:91
TGLClip * m_glClip
Definition: FW3DViewBase.h:77
void populateController(ViewerParameterGUI &) const override
TEveLine * m_DMTline
Definition: FW3DViewBase.h:108
TEveBoxSet * m_ecalBarrel
Definition: FW3DViewBase.h:90
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:94
FWLongParameter m_clipHGCalLayerEnd
Definition: FW3DViewBase.h:105
FWEnumParameter m_cameraType
Definition: FW3DViewBase.h:96
void setFrom(const FWConfiguration &) override
FWLongParameter m_clipAppexOffset
Definition: FW3DViewBase.h:103
FWBoolParameter m_showTrackerEndcap
Definition: FW3DViewBase.h:85
FWDoubleParameter m_clipDelta2
Definition: FW3DViewBase.h:102
FWBoolParameter m_showPixelBarrel
Definition: FW3DViewBase.h:82