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 public:
44  FW3DViewBase(TEveWindowSlot*, FWViewType::EType, unsigned int version = 8);
45  ~FW3DViewBase() override;
46 
47  // ---------- const member functions ---------------------
48 
49  void addTo(FWConfiguration&) const override;
50  void populateController(ViewerParameterGUI&) const override;
51 
52  // ---------- static member functions --------------------
53 
54  // ---------- member functions ---------------------------
55  void setContext(const fireworks::Context&) override;
56  void setFrom(const FWConfiguration&) override;
57 
58  // To be fixed.
60 
62  bool requestGLHandlerPick() const override;
63  void setCurrentDMTVertex(double x, double y, double z);
64 
65  void showEcalBarrel(bool);
66 
67  void setClip(float eta, float phi);
68 
69 private:
70  FW3DViewBase(const FW3DViewBase&); // stop default
71 
72  const FW3DViewBase& operator=(const FW3DViewBase&); // stop default
73 
74  // ---------- member data --------------------------------
76  TGLClip* m_glClip;
77 
78  // parameters
90 
91  TEveBoxSet* m_ecalBarrel;
93 
96 
98 
107 
109  TEveLine* m_DMTline;
110 
111  void selectable(bool);
112 
113  void enableSceneClip(bool);
114  void updateClipPlanes(bool resetCamera);
115  void updateHGCalVisibility(bool);
116 
117  void rnrStyle(long);
118  void showMuonBarrel(long);
119  void setCameraType(long);
120 };
121 
122 #endif
FWDoubleParameter m_clipTheta
Definition: FW3DViewBase.h:100
bool requestGLHandlerPick() const override
void updateHGCalVisibility(bool)
FWBoolParameter m_showMtdBarrel
Definition: FW3DViewBase.h:88
void showEcalBarrel(bool)
void showMuonBarrel(long)
void rnrStyle(long)
FWBoolParameter m_showMuonEndcap
Definition: FW3DViewBase.h:80
void setClip(float eta, float phi)
FWBoolParameter m_showHGCalEE
Definition: FW3DViewBase.h:85
void addTo(FWConfiguration &) const override
FW3DViewDistanceMeasureTool * getDMT()
Definition: FW3DViewBase.h:61
void setCurrentDMTVertex(double x, double y, double z)
FWBoolParameter m_showTrackerBarrel
Definition: FW3DViewBase.h:83
FW3DViewDistanceMeasureTool * m_DMT
Definition: FW3DViewBase.h:108
void selectable(bool)
void setCameraType(long)
FWDoubleParameter m_clipPhi
Definition: FW3DViewBase.h:101
~FW3DViewBase() override
void enableSceneClip(bool)
FWEnumParameter m_rnrStyle
Definition: FW3DViewBase.h:94
void updateClipPlanes(bool resetCamera)
FWBoolParameter m_clipEnable
Definition: FW3DViewBase.h:99
FWBoolParameter m_showPixelEndcap
Definition: FW3DViewBase.h:82
void updateGlobalSceneScaleParameters()
FWDoubleParameter m_clipDelta1
Definition: FW3DViewBase.h:102
virtual void resetCamera()
Definition: FWEveView.cc:224
void setContext(const fireworks::Context &) override
void populateController(ViewerParameterGUI &) const override
const FW3DViewBase & operator=(const FW3DViewBase &)
FWLongParameter m_clipHGCalLayerBegin
Definition: FW3DViewBase.h:105
FWBoolParameter m_showHGCalHSi
Definition: FW3DViewBase.h:86
FWBoolParameter m_showHGCalHSc
Definition: FW3DViewBase.h:87
FWBoolParameter m_showEcalBarrel
Definition: FW3DViewBase.h:92
TGLClip * m_glClip
Definition: FW3DViewBase.h:76
FWBoolParameter m_showMtdEndcap
Definition: FW3DViewBase.h:89
TEveLine * m_DMTline
Definition: FW3DViewBase.h:109
TEveBoxSet * m_ecalBarrel
Definition: FW3DViewBase.h:91
FWEnumParameter m_showMuonBarrel
Definition: FW3DViewBase.h:79
FW3DViewBase(TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
FW3DViewGeometry * m_geometry
Definition: FW3DViewBase.h:75
FWBoolParameter m_selectable
Definition: FW3DViewBase.h:95
FWLongParameter m_clipHGCalLayerEnd
Definition: FW3DViewBase.h:106
FWEnumParameter m_cameraType
Definition: FW3DViewBase.h:97
void setFrom(const FWConfiguration &) override
FWLongParameter m_clipAppexOffset
Definition: FW3DViewBase.h:104
FWBoolParameter m_showTrackerEndcap
Definition: FW3DViewBase.h:84
FWDoubleParameter m_clipDelta2
Definition: FW3DViewBase.h:103
FWBoolParameter m_showPixelBarrel
Definition: FW3DViewBase.h:81