CMS 3D CMS Logo

FWGeometryTableViewBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWGeometryTableViewBase_h
2 #define Fireworks_Core_FWGeometryTableViewBase_h
3 
4 #ifndef __CINT__
5 #include <memory>
6 #endif
7 
8 #include "Rtypes.h"
9 #include "TGFrame.h"
10 #include "TGButton.h"
12 #ifndef __CINT__
21 #endif
22 
23 class TGeoNode;
24 class TGeoVolume;
25 class TGStatusBar;
26 class TGeoManager;
27 class TEveWindowSlot;
28 class TEveWindowFrame;
29 class TEveElement;
31 class TEveScene;
32 
33 class FWTableWidget;
35 class FWConfiguration;
36 class FWColorPopup;
37 class FWColorManager;
38 class FWGeoTopNode;
39 class FWParameterBase;
40 
42 #ifndef __CINT__
43  : public FWViewBase,
45 #endif
46 {
47 public:
48  class FWViewCombo : public TGTextButton {
49  private:
51  TEveElement* m_el;
52 
53  public:
55  : TGTextButton(p,
56  "Select Views",
57  -1,
58  TGButton::GetDefaultGC()(),
59  TGTextButton::GetDefaultFontStruct(),
60  kRaisedFrame | kDoubleBorder),
61  m_tableView(t),
62  m_el(nullptr) {}
63  ~FWViewCombo() override {}
64  void setElement(TEveElement* x) { m_el = x; }
65  Bool_t HandleButton(Event_t* event) override;
66  };
67 
69  ~FWGeometryTableViewBase() override;
70 
71  virtual void cellClicked(Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY);
72 
73  // void chosenItemFrom3DView(int);
74  virtual void chosenItem(int);
75  void selectView(int);
76 
78  virtual FWGeometryTableManagerBase* getTableManager() { return nullptr; }
79 
80  // ---------- const member functions ---------------------
81 
82  void addTo(FWConfiguration&) const override;
83  void saveImageTo(const std::string& iName) const override {}
84  void nodeColorChangeRequested(Color_t);
85 
86  void setBackgroundColor();
88  virtual void refreshTable3D();
89 
90  void cdNode(int);
91  virtual void cdTop();
92  virtual void cdUp();
93  virtual void setPath(int, std::string&);
94 
95  void checkExpandLevel();
96 
97  int getTopNodeIdx() const { return TMath::Max((int)m_topNodeIdx.value(), 0); }
98 
100  void transparencyChanged();
101 
102  void reloadColors();
103 
108 
109 protected:
110 #ifndef __CINT__
114 
119 #endif
120 
123 
124  // TGCompositeFrame *m_settersFrame;
125 
127 
128  TEveWindowFrame* m_eveWindow;
129  TGCompositeFrame* m_frame;
130 
132 
134 
136 
139  TEveScene* m_eveScene;
140 
141 #ifndef __CINT__
142  // std::vector<std::shared_ptr<FWParameterSetterBase> > m_setters;
143 #endif
144  // void resetSetters();
145  // void makeSetter(TGCompositeFrame* frame, FWParameterBase* param);
146 
147  void postConst();
148 
149  void setTopNodePathFromConfig(const FWConfiguration& iFrom);
150 
151  void populateController(ViewerParameterGUI&) const override;
152 
153 private:
155 
156  FWGeometryTableViewBase(const FWGeometryTableViewBase&); // stop default
157  const FWGeometryTableViewBase& operator=(const FWGeometryTableViewBase&); // stop default
158  void setColumnSelected(int idx);
160 };
161 
162 #endif
FWGeometryTableViewBase::m_tableWidget
FWTableWidget * m_tableWidget
Definition: FWGeometryTableViewBase.h:122
FWGeometryTableViewBase::reloadColors
void reloadColors()
Definition: FWGeometryTableViewBase.cc:594
FWParameterSetterEditorBase
Definition: FWParameterSetterEditorBase.h:27
FWGeometryTableViewBase::getTableManager
virtual FWGeometryTableManagerBase * getTableManager()
Definition: FWGeometryTableViewBase.h:78
FWGeometryTableViewBase::m_viewersConfig
const FWConfiguration * m_viewersConfig
Definition: FWGeometryTableViewBase.h:133
FWGeometryTableViewBase::FWViewCombo::m_tableView
FWGeometryTableViewBase * m_tableView
Definition: FWGeometryTableViewBase.h:50
FWGeometryTableViewBase::FWViewCombo::setElement
void setElement(TEveElement *x)
Definition: FWGeometryTableViewBase.h:64
FWGeometryTableViewBase::FWViewCombo::m_el
TEveElement * m_el
Definition: FWGeometryTableViewBase.h:51
FWGenericParameterWithRange
Definition: FWGenericParameterWithRange.h:27
FWGeometryTableViewBase::chosenItem
virtual void chosenItem(int)
Definition: FWGeometryTableViewBase.cc:452
FWGeometryTableViewBase::getParentTransparencyFactor
long getParentTransparencyFactor() const
Definition: FWGeometryTableViewBase.h:104
FWViewType::EType
EType
Definition: FWViewType.h:31
FWGeometryTableViewBase::m_eveTopNode
FWGeoTopNode * m_eveTopNode
Definition: FWGeometryTableViewBase.h:138
FWGeometryTableViewBase::ClassDef
ClassDef(FWGeometryTableViewBase, 0)
FWGeometryTableViewBase::getMarker
FWEveDigitSetScalableMarker * getMarker()
Definition: FWGeometryTableViewBase.h:99
ViewerParameterGUI
Definition: CmsShowViewPopup.h:49
FWGeometryTableViewBase::setColumnSelected
void setColumnSelected(int idx)
Definition: FWGeometryTableViewBase.cc:339
FWGeometryTableViewBase::m_enableHighlight
FWBoolParameter m_enableHighlight
Definition: FWGeometryTableViewBase.h:113
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
FWGeometryTableViewBase::refreshTable3D
virtual void refreshTable3D()
Definition: FWGeometryTableViewBase.cc:535
FWParameterBase
Definition: FWParameterBase.h:31
FWGeometryTableViewBase::m_autoExpand
FWLongParameter m_autoExpand
Definition: FWGeometryTableViewBase.h:112
FWGeometryTableViewBase::postConst
void postConst()
Definition: FWGeometryTableViewBase.cc:183
FWGeometryTableViewBase::m_parentTransparencyFactor
FWLongParameter m_parentTransparencyFactor
Definition: FWGeometryTableViewBase.h:115
FWGeometryTableViewBase::selectView
void selectView(int)
Definition: FWGeometryTableViewBase.cc:312
FWGeometryTableViewBase::m_minParentTransparency
FWLongParameter m_minParentTransparency
Definition: FWGeometryTableViewBase.h:117
FWGeometryTableViewBase::setTopNodePathFromConfig
void setTopNodePathFromConfig(const FWConfiguration &iFrom)
Definition: FWGeometryTableViewBase.cc:573
DDAxes::x
FWConfigurableParameterizable.h
FWGenericParameter
Definition: FWGenericParameter.h:31
FWGeometryTableViewBase::checkExpandLevel
void checkExpandLevel()
Definition: FWGeometryTableViewBase.cc:266
FWParameterSetterEditorBase.h
FWGeometryTableViewBase::FWViewCombo::~FWViewCombo
~FWViewCombo() override
Definition: FWGeometryTableViewBase.h:63
FWGeometryTableViewBase::addTo
void addTo(FWConfiguration &) const override
Definition: FWGeometryTableViewBase.cc:552
FWGeometryTableViewBase::m_leafTransparencyFactor
FWLongParameter m_leafTransparencyFactor
Definition: FWGeometryTableViewBase.h:116
FWGeometryTableViewBase::m_marker
FWEveDigitSetScalableMarker * m_marker
Definition: FWGeometryTableViewBase.h:137
FWGeometryTableManagerBase
Definition: FWGeometryTableManagerBase.h:36
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
FWGeometryTableViewBase::getMinLeafTransparency
long getMinLeafTransparency() const
Definition: FWGeometryTableViewBase.h:107
FWGeometryTableViewBase::nodeColorChangeRequested
void nodeColorChangeRequested(Color_t)
Definition: FWGeometryTableViewBase.cc:438
FWGeometryTableViewBase::saveImageTo
void saveImageTo(const std::string &iName) const override
Definition: FWGeometryTableViewBase.h:83
FWGeometryTableViewBase::setPath
virtual void setPath(int, std::string &)
Definition: FWGeometryTableViewBase.cc:252
FWGeometryTableViewBase::cdTop
virtual void cdTop()
Definition: FWGeometryTableViewBase.cc:237
FWViewType.h
FWGeometryTableViewBase::populate3DViewsFromConfig
void populate3DViewsFromConfig()
Definition: FWGeometryTableViewBase.cc:284
FWTableWidget
Definition: FWTableWidget.h:35
FWGeometryTableViewBase::getMinParentTransparency
long getMinParentTransparency() const
Definition: FWGeometryTableViewBase.h:106
FWGeometryTableViewBase
Definition: FWGeometryTableViewBase.h:41
FWGeometryTableViewBase::m_tableRowIndexForColorPopup
int m_tableRowIndexForColorPopup
Definition: FWGeometryTableViewBase.h:154
FWLongParameter.h
FWGeometryTableViewBase::m_frame
TGCompositeFrame * m_frame
Definition: FWGeometryTableViewBase.h:129
FWGeometryTableViewBase::setBackgroundColor
void setBackgroundColor()
Definition: FWGeometryTableViewBase.cc:423
FWGeometryTableViewBase::populateController
void populateController(ViewerParameterGUI &) const override
Definition: FWGeometryTableViewBase.cc:607
FWGeometryTableViewBase::m_eveScene
TEveScene * m_eveScene
Definition: FWGeometryTableViewBase.h:139
FWGeometryTableViewBase::cdNode
void cdNode(int)
Definition: FWGeometryTableViewBase.cc:231
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWGeometryTableViewBase::operator=
const FWGeometryTableViewBase & operator=(const FWGeometryTableViewBase &)
FWGeometryTableViewBase::getEnableHighlight
bool getEnableHighlight()
Definition: FWGeometryTableViewBase.h:77
FWGeometryTableViewBase::m_topNodeIdx
FWLongParameter m_topNodeIdx
Definition: FWGeometryTableViewBase.h:111
FWStringParameter.h
FWParameterSetterBase.h
FWGeometryTableViewBase::getLeafTransparencyFactor
long getLeafTransparencyFactor() const
Definition: FWGeometryTableViewBase.h:105
FWGeometryTableViewBase::transparencyChanged
void transparencyChanged()
Definition: FWGeometryTableViewBase.cc:528
FWGeometryTableViewBase::FWGeometryTableViewBase
FWGeometryTableViewBase(TEveWindowSlot *, FWViewType::EType, FWColorManager *)
Definition: FWGeometryTableViewBase.cc:148
FWGeometryTableViewBase::m_enableRedraw
bool m_enableRedraw
Definition: FWGeometryTableViewBase.h:135
FWEnumParameter.h
FWGeometryTableViewBase::m_colorPopup
FWColorPopup * m_colorPopup
Definition: FWGeometryTableViewBase.h:126
Max
T Max(T a, T b)
Definition: MathUtil.h:44
FWGeometryTableViewBase::cdUp
virtual void cdUp()
Definition: FWGeometryTableViewBase.cc:243
FWColorManager
Definition: FWColorManager.h:45
FWColorPopup
Definition: FWColorSelect.h:68
FWGeometryTableViewBase::getTopNodeIdx
int getTopNodeIdx() const
Definition: FWGeometryTableViewBase.h:97
FWGenericParameter::value
T value() const
Definition: FWGenericParameter.h:50
FWGeometryTableViewBase::m_minLeafTransparency
FWLongParameter m_minLeafTransparency
Definition: FWGeometryTableViewBase.h:118
FWGeometryTableViewBase::FWViewCombo::FWViewCombo
FWViewCombo(const TGWindow *p, FWGeometryTableViewBase *t)
Definition: FWGeometryTableViewBase.h:54
FWViewBase.h
FWGeometryTableViewBase::m_colorManager
FWColorManager * m_colorManager
Definition: FWGeometryTableViewBase.h:121
FWGeoTopNode
Definition: FWGeoTopNode.h:41
FWGeometryTableViewBase::m_viewBox
FWViewCombo * m_viewBox
Definition: FWGeometryTableViewBase.h:131
FWConfiguration
Definition: FWConfiguration.h:31
event
Definition: event.py:1
FWViewBase
Definition: FWViewBase.h:36
FWGeometryTableViewBase::~FWGeometryTableViewBase
~FWGeometryTableViewBase() override
Definition: FWGeometryTableViewBase.cc:210
FWEveDigitSetScalableMarker
Definition: FWEveDigitSetScalableMarker.h:9
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
FWGeometryTableViewBase::m_eveWindow
TEveWindowFrame * m_eveWindow
Definition: FWGeometryTableViewBase.h:128
FWGeometryTableViewBase::cellClicked
virtual void cellClicked(Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
Definition: FWGeometryTableViewBase.cc:360
FWGeometryTableViewBase::FWViewCombo
Definition: FWGeometryTableViewBase.h:48
FWGeometryTableViewBase::FWViewCombo::HandleButton
Bool_t HandleButton(Event_t *event) override
Definition: FWGeometryTableViewBase.cc:51