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
FW3DViewBase::m_showPixelEndcap
FWBoolParameter m_showPixelEndcap
Definition: FW3DViewBase.h:82
FWEnumParameter
Definition: FWEnumParameter.h:30
FW3DViewBase::FW3DViewBase
FW3DViewBase(TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
Definition: FW3DViewBase.cc:99
FW3DViewBase::m_DMTline
TEveLine * m_DMTline
Definition: FW3DViewBase.h:107
DDAxes::y
fireworks::Context
Definition: Context.h:41
FW3DViewBase::setFrom
void setFrom(const FWConfiguration &) override
Definition: FW3DViewBase.cc:440
FWGenericParameterWithRange
Definition: FWGenericParameterWithRange.h:27
FW3DViewBase::setContext
void setContext(const fireworks::Context &) override
Definition: FW3DViewBase.cc:169
FWViewType::EType
EType
Definition: FWViewType.h:31
FWBoolParameter.h
ViewerParameterGUI
Definition: CmsShowViewPopup.h:49
FW3DViewBase::operator=
const FW3DViewBase & operator=(const FW3DViewBase &)
FWEveView.h
FW3DViewBase::m_showEcalBarrel
FWBoolParameter m_showEcalBarrel
Definition: FW3DViewBase.h:90
FW3DViewBase::m_rnrStyle
FWEnumParameter m_rnrStyle
Definition: FW3DViewBase.h:92
DDAxes::x
FW3DViewBase::showEcalBarrel
void showEcalBarrel(bool)
Definition: FW3DViewBase.cc:510
FW3DViewBase::m_showHGCalHSc
FWBoolParameter m_showHGCalHSc
Definition: FW3DViewBase.h:87
FW3DViewBase::showMuonBarrel
void showMuonBarrel(long)
Definition: FW3DViewBase.cc:202
FWGenericParameter
Definition: FWGenericParameter.h:31
FW3DViewBase::addTo
void addTo(FWConfiguration &) const override
Definition: FW3DViewBase.cc:431
FW3DViewBase::m_geometry
FW3DViewGeometry * m_geometry
Definition: FW3DViewBase.h:75
FWEveView
Definition: FWEveView.h:53
PVValHelper::eta
Definition: PVValidationHelpers.h:69
FW3DViewBase::m_ecalBarrel
TEveBoxSet * m_ecalBarrel
Definition: FW3DViewBase.h:89
FW3DViewBase::m_clipHGCalLayerBegin
FWLongParameter m_clipHGCalLayerBegin
Definition: FW3DViewBase.h:103
DDAxes::z
FW3DViewBase::m_clipHGCalLayerEnd
FWLongParameter m_clipHGCalLayerEnd
Definition: FW3DViewBase.h:104
FW3DViewBase::m_clipAppexOffset
FWLongParameter m_clipAppexOffset
Definition: FW3DViewBase.h:102
FW3DViewBase::populateController
void populateController(ViewerParameterGUI &) const override
Definition: FW3DViewBase.cc:472
FWLongParameter.h
FW3DViewBase::setCurrentDMTVertex
void setCurrentDMTVertex(double x, double y, double z)
Definition: FW3DViewBase.cc:460
FW3DViewBase::selectable
void selectable(bool)
Definition: FW3DViewBase.cc:223
FW3DViewBase::m_showTrackerEndcap
FWBoolParameter m_showTrackerEndcap
Definition: FW3DViewBase.h:84
FW3DViewBase::setCameraType
void setCameraType(long)
Definition: FW3DViewBase.cc:209
FW3DViewBase::m_glClip
TGLClip * m_glClip
Definition: FW3DViewBase.h:76
FW3DViewBase::m_showMuonEndcap
FWBoolParameter m_showMuonEndcap
Definition: FW3DViewBase.h:80
FW3DViewBase::m_clipEnable
FWBoolParameter m_clipEnable
Definition: FW3DViewBase.h:97
FW3DViewBase::updateHGCalVisibility
void updateHGCalVisibility(bool)
Definition: FW3DViewBase.cc:389
FW3DViewBase::m_showMuonBarrel
FWEnumParameter m_showMuonBarrel
Definition: FW3DViewBase.h:79
fwLog.h
FWColorManager
Definition: FWColorManager.h:45
FW3DViewBase::rnrStyle
void rnrStyle(long)
Definition: FW3DViewBase.cc:217
FW3DViewBase::getDMT
FW3DViewDistanceMeasureTool * getDMT()
Definition: FW3DViewBase.h:61
FW3DViewBase::m_selectable
FWBoolParameter m_selectable
Definition: FW3DViewBase.h:93
FW3DViewBase::setClip
void setClip(float eta, float phi)
Definition: FW3DViewBase.cc:242
DDAxes::phi
FW3DViewBase
Definition: FW3DViewBase.h:42
FW3DViewBase::m_cameraType
FWEnumParameter m_cameraType
Definition: FW3DViewBase.h:95
FW3DViewBase::m_clipDelta2
FWDoubleParameter m_clipDelta2
Definition: FW3DViewBase.h:101
FW3DViewBase::m_clipPhi
FWDoubleParameter m_clipPhi
Definition: FW3DViewBase.h:99
FWConfigurableParameterizable::version
unsigned int version() const
Definition: FWConfigurableParameterizable.h:37
FW3DViewBase::m_showPixelBarrel
FWBoolParameter m_showPixelBarrel
Definition: FW3DViewBase.h:81
FW3DViewBase::m_showTrackerBarrel
FWBoolParameter m_showTrackerBarrel
Definition: FW3DViewBase.h:83
FW3DViewGeometry
Definition: FW3DViewGeometry.h:29
FW3DViewBase::m_DMT
FW3DViewDistanceMeasureTool * m_DMT
Definition: FW3DViewBase.h:106
FWEveView::resetCamera
virtual void resetCamera()
Definition: FWEveView.cc:224
FW3DViewBase::requestGLHandlerPick
bool requestGLHandlerPick() const override
Definition: FW3DViewBase.cc:458
FW3DViewBase::~FW3DViewBase
~FW3DViewBase() override
Definition: FW3DViewBase.cc:167
FW3DViewBase::m_showHGCalHSi
FWBoolParameter m_showHGCalHSi
Definition: FW3DViewBase.h:86
FW3DViewBase::m_clipTheta
FWDoubleParameter m_clipTheta
Definition: FW3DViewBase.h:98
FW3DViewBase::enableSceneClip
void enableSceneClip(bool)
Definition: FW3DViewBase.cc:224
FWConfiguration
Definition: FWConfiguration.h:31
FW3DViewBase::updateGlobalSceneScaleParameters
void updateGlobalSceneScaleParameters()
FW3DViewBase::updateClipPlanes
void updateClipPlanes(bool resetCamera)
Definition: FW3DViewBase.cc:318
FW3DViewDistanceMeasureTool
Definition: FW3DViewDistanceMeasureTool.h:10
FW3DViewBase::m_showHGCalEE
FWBoolParameter m_showHGCalEE
Definition: FW3DViewBase.h:85
FW3DViewBase::m_clipDelta1
FWDoubleParameter m_clipDelta1
Definition: FW3DViewBase.h:100