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
88 
89  TEveBoxSet* m_ecalBarrel;
91 
94 
96 
105 
107  TEveLine* m_DMTline;
108 
109  void selectable(bool);
110 
111  void enableSceneClip(bool);
112  void updateClipPlanes(bool resetCamera);
113  void updateHGCalVisibility(bool);
114 
115  void rnrStyle(long);
116  void showMuonBarrel(long);
117  void setCameraType(long);
118 };
119 
120 #endif
FWDoubleParameter m_clipTheta
Definition: FW3DViewBase.h:98
bool requestGLHandlerPick() const override
void updateHGCalVisibility(bool)
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:106
void selectable(bool)
void setCameraType(long)
FWDoubleParameter m_clipPhi
Definition: FW3DViewBase.h:99
~FW3DViewBase() override
void enableSceneClip(bool)
FWEnumParameter m_rnrStyle
Definition: FW3DViewBase.h:92
void updateClipPlanes(bool resetCamera)
FWBoolParameter m_clipEnable
Definition: FW3DViewBase.h:97
FWBoolParameter m_showPixelEndcap
Definition: FW3DViewBase.h:82
void updateGlobalSceneScaleParameters()
FWDoubleParameter m_clipDelta1
Definition: FW3DViewBase.h:100
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:103
FWBoolParameter m_showHGCalHSi
Definition: FW3DViewBase.h:86
FWBoolParameter m_showHGCalHSc
Definition: FW3DViewBase.h:87
FWBoolParameter m_showEcalBarrel
Definition: FW3DViewBase.h:90
TGLClip * m_glClip
Definition: FW3DViewBase.h:76
TEveLine * m_DMTline
Definition: FW3DViewBase.h:107
TEveBoxSet * m_ecalBarrel
Definition: FW3DViewBase.h:89
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:93
FWLongParameter m_clipHGCalLayerEnd
Definition: FW3DViewBase.h:104
FWEnumParameter m_cameraType
Definition: FW3DViewBase.h:95
void setFrom(const FWConfiguration &) override
FWLongParameter m_clipAppexOffset
Definition: FW3DViewBase.h:102
FWBoolParameter m_showTrackerEndcap
Definition: FW3DViewBase.h:84
FWDoubleParameter m_clipDelta2
Definition: FW3DViewBase.h:101
FWBoolParameter m_showPixelBarrel
Definition: FW3DViewBase.h:81