CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 <boost/shared_ptr.hpp>
6 #endif
7 
8 
9 #include "Rtypes.h"
10 #include "TGFrame.h"
11 #include "TGButton.h"
13 #ifndef __CINT__
22 #endif
23 
24 
25 
26 class TGeoNode;
27 class TGeoVolume;
28 class TGStatusBar;
29 class TGeoManager;
30 class TEveWindowSlot;
31 class TEveWindowFrame;
32 class TEveElement;
33 class TEvePointSet;
34 class TEveScene;
35 
36 class FWTableWidget;
38 class FWConfiguration;
39 class FWColorPopup;
40 class FWColorManager;
41 class FWGeoTopNode;
42 class FWParameterBase;
43 
45 #ifndef __CINT__
46  : public FWViewBase,
48 #endif
49 {
50 public:
51  class FWViewCombo : public TGTextButton
52  {
53  private:
55  TEveElement* m_el;
56  public:
57  FWViewCombo(const TGWindow *p, FWGeometryTableViewBase* t):
58  TGTextButton(p, "Select Views", -1, TGButton::GetDefaultGC()(), TGTextButton::GetDefaultFontStruct(), kRaisedFrame | kDoubleBorder ), m_tableView(t), m_el(0) {}
59  virtual ~FWViewCombo() {}
60  void setElement(TEveElement* x) {m_el = x;}
61  virtual Bool_t HandleButton(Event_t* event);
62  };
63 
64 
66  virtual ~FWGeometryTableViewBase();
67 
68  virtual void cellClicked(Int_t iRow, Int_t iColumn,
69  Int_t iButton, Int_t iKeyMod,
70  Int_t iGlobalX, Int_t iGlobalY);
71 
72  // void chosenItemFrom3DView(int);
73  virtual void chosenItem(int);
74  void selectView(int);
75 
78 
79  // ---------- const member functions ---------------------
80 
81  virtual void addTo(FWConfiguration&) const;
82  virtual void saveImageTo( const std::string& iName ) const {}
83  void nodeColorChangeRequested(Color_t);
84 
85  void setBackgroundColor();
87  virtual void refreshTable3D();
88 
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 
99  void transparencyChanged();
100 
101  void reloadColors();
102 
107 
108 protected:
109 
110 #ifndef __CINT__
114 
119 #endif
120 
123 
124  // TGCompositeFrame *m_settersFrame;
125 
127 
128  TEveWindowFrame* m_eveWindow;
129  TGCompositeFrame* m_frame;
130 
132 
133 
135 
136 
138 
139  TEvePointSet* m_marker;
141  TEveScene* m_eveScene;
142 
143 #ifndef __CINT__
144  // std::vector<boost::shared_ptr<FWParameterSetterBase> > m_setters;
145 #endif
146  // void resetSetters();
147  // void makeSetter(TGCompositeFrame* frame, FWParameterBase* param);
148 
149  void enableHighlight();
150 
151  void postConst();
152 
153  void setTopNodePathFromConfig(const FWConfiguration& iFrom);
154 
155  virtual void populateController(ViewerParameterGUI&) const;
156 
157 private:
159 
160  FWGeometryTableViewBase(const FWGeometryTableViewBase&); // stop default
161  const FWGeometryTableViewBase& operator=(const FWGeometryTableViewBase&); // stop default
162  void setColumnSelected(int idx);
164 };
165 
166 #endif
167 
virtual void cellClicked(Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
virtual void addTo(FWConfiguration &) const
FWLongParameter m_parentTransparencyFactor
void setTopNodePathFromConfig(const FWConfiguration &iFrom)
const FWConfiguration * m_viewersConfig
FWLongParameter m_leafTransparencyFactor
ClassDef(FWGeometryTableViewBase, 0)
virtual void setPath(int, std::string &)
FWGeometryTableViewBase(TEveWindowSlot *, FWViewType::EType, FWColorManager *)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
const FWGeometryTableViewBase & operator=(const FWGeometryTableViewBase &)
FWViewCombo(const TGWindow *p, FWGeometryTableViewBase *t)
virtual void saveImageTo(const std::string &iName) const
virtual Bool_t HandleButton(Event_t *event)
x
Definition: VDTMath.h:216
virtual void populateController(ViewerParameterGUI &) const
virtual FWGeometryTableManagerBase * getTableManager()