CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWGeometryTableView.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWGeometryTableView_h
2 #define Fireworks_Core_FWGeometryTableView_h
3 
4 #ifndef __CINT__
5 #include <boost/shared_ptr.hpp>
6 #endif
7 
8 
9 #include "Rtypes.h"
10 #include "TGFrame.h"
11 
12 #ifndef __CINT__
21 #endif
22 
23 
24 class TGTextButton;
25 class TGeoNode;
26 class TGeoVolume;
27 class TGTextEntry;
28 class TGComboBox;
29 class TGStatusBar;
30 class TGeoManager;
31 class TEveWindowSlot;
32 class TEveWindowFrame;
33 
34 class FWTableWidget;
36 class FWConfiguration;
37 class FWColorPopup;
38 class FWColorManager;
39 class FWGeoTopNode;
40 
41 class FWParameterBase;
42 class FWViewCombo;
45 
47 #ifndef __CINT__
48  : public FWViewBase,
50 #endif
51 {
52 
53 public:
54  enum EMode { kNode, kVolume };
55 
56  FWGeometryTableView(TEveWindowSlot*, FWColorManager*, TGeoNode*, TObjArray*);
57  virtual ~FWGeometryTableView();
58 
59  void cellClicked(Int_t iRow, Int_t iColumn,
60  Int_t iButton, Int_t iKeyMod,
61  Int_t iGlobalX, Int_t iGlobalY);
62 
63  void chosenItem(int);
64  void selectView(int);
65  void filterListCallback();
67  void updateFilter(std::string&);
68 
69  void printTable();
70 
71  void cdNode(int);
72  void cdTop();
73  void cdUp();
74  void setPath(int, std::string&);
75 
76  bool getVolumeMode() const { return m_mode.value(); }
77  std::string getFilter () const { return m_filter.value(); }
78  int getAutoExpand() const { return m_autoExpand.value(); }
79  int getVisLevel() const {return m_visLevel.value(); }
81 
82  int getTopNodeIdx() const { return m_topNodeIdx.value(); }
84  virtual void setFrom(const FWConfiguration&);
85 
86  // ---------- const member functions ---------------------
87 
88  virtual void addTo(FWConfiguration&) const;
89  virtual void saveImageTo( const std::string& iName ) const {}
90  void nodeColorChangeRequested(Color_t);
91 
92  void setBackgroundColor();
94 
95 private:
98 
99 
100 #ifndef __CINT__
107 #endif
108 
112 
113  TGCompositeFrame *m_settersFrame;
115 
117 
118  TEveWindowFrame* m_eveWindow;
119  TGCompositeFrame* m_frame;
120 
122 
125 
127 
128 #ifndef __CINT__
129  std::vector<boost::shared_ptr<FWParameterSetterBase> > m_setters;
130 #endif
131  void resetSetters();
132  void makeSetter(TGCompositeFrame* frame, FWParameterBase* param);
133  void loadGeometry();
134 
135  void autoExpandChanged();
136  void modeChanged();
137  void refreshTable3D();
138 
140 };
141 
142 #endif
143 
TGCompositeFrame * m_frame
virtual void setFrom(const FWConfiguration &)
void updateFilter(std::string &)
FWGeoMaterialValidator * m_filterValidator
std::string getFilter() const
FWGeometryTableView(TEveWindowSlot *, FWColorManager *, TGeoNode *, TObjArray *)
void cellClicked(Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
FWGeometryTableManager * getTableManager()
FWColorManager * m_colorManager
FWTableWidget * m_tableWidget
FWLongParameter m_visLevel
const FWGeometryTableView & operator=(const FWGeometryTableView &)
bool getIgnoreVisLevelWhenFilter() const
FWStringParameter m_filter
ClassDef(FWGeometryTableView, 0)
FWGeometryTableManager * m_tableManager
FWGeoTopNode * m_eveTopNode
FWLongParameter m_autoExpand
std::vector< boost::shared_ptr< FWParameterSetterBase > > m_setters
const FWConfiguration * m_viewersConfig
virtual void addTo(FWConfiguration &) const
bool getVolumeMode() const
void makeSetter(TGCompositeFrame *frame, FWParameterBase *param)
FWColorPopup * m_colorPopup
FWBoolParameter m_visLevelFilter
void nodeColorChangeRequested(Color_t)
virtual void saveImageTo(const std::string &iName) const
FWLongParameter m_topNodeIdx
FWGUIValidatingTextEntry * m_filterEntry
void setPath(int, std::string &)
TEveWindowFrame * m_eveWindow
TGCompositeFrame * m_settersFrame