CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
FWGeometryTableView Class Reference

#include <Fireworks/Core/interface/FWGeometryTableView.h>

Inheritance diagram for FWGeometryTableView:
FWGeometryTableViewBase FWViewBase FWParameterSetterEditorBase FWConfigurableParameterizable FWParameterizable FWConfigurable

Public Types

enum  EFiterType { kFilterMaterialName, kFilterMaterialTitle, kFilterShapeName, kFilterShapeClassName }
 
enum  EMode { kNode, kVolume }
 
enum  EProximityAlgo { kBBoxCenter, kBBoxSurface }
 
- Public Types inherited from FWParameterizable
typedef std::vector
< FWParameterBase * >
::const_iterator 
const_iterator
 

Public Member Functions

void autoExpandCallback ()
 
void checkRegionOfInterest ()
 
bool drawTopNode () const
 
void filterListCallback ()
 
void filterTextEntryCallback ()
 
 FWGeometryTableView (TEveWindowSlot *iParent, FWColorManager *colMng)
 
int getAutoExpand () const
 
std::string getFilter () const
 
int getFilterType () const
 
bool getIgnoreVisLevelWhenFilter () const
 
virtual
FWGeometryTableManagerBase
getTableManager ()
 
int getVisLevel () const
 
bool getVolumeMode () const
 
bool isSelectedByRegion () const
 
virtual void populateController (ViewerParameterGUI &) const
 
virtual void setFrom (const FWConfiguration &)
 
virtual void setPath (int, std::string &)
 
void updateFilter (std::string &)
 
void updateVisibilityTopNode ()
 
virtual ~FWGeometryTableView ()
 
- Public Member Functions inherited from FWGeometryTableViewBase
virtual void addTo (FWConfiguration &) const
 
void cdNode (int)
 
virtual void cdTop ()
 
virtual void cdUp ()
 
virtual void cellClicked (Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
 
void checkExpandLevel ()
 
virtual void chosenItem (int)
 
 FWGeometryTableViewBase (TEveWindowSlot *, FWViewType::EType, FWColorManager *)
 
bool getEnableHighlight ()
 
long getLeafTransparencyFactor () const
 
FWEveDigitSetScalableMarkergetMarker ()
 
long getMinLeafTransparency () const
 
long getMinParentTransparency () const
 
long getParentTransparencyFactor () const
 
int getTopNodeIdx () const
 
void nodeColorChangeRequested (Color_t)
 
void populate3DViewsFromConfig ()
 
virtual void refreshTable3D ()
 
void reloadColors ()
 
virtual void saveImageTo (const std::string &iName) const
 
void selectView (int)
 
void setBackgroundColor ()
 
void transparencyChanged ()
 
virtual ~FWGeometryTableViewBase ()
 
- Public Member Functions inherited from FWViewBase
virtual
FWViewContextMenuHandlerBase
contextMenuHandler () const
 
void destroy ()
 
 FWViewBase (FWViewType::EType, unsigned int iVersion=1)
 
void promptForSaveImageTo (TGFrame *) const
 
FWViewType::EType typeId () const
 
const std::string & typeName () const
 
- Public Member Functions inherited from FWConfigurableParameterizable
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
unsigned int version () const
 
virtual ~FWConfigurableParameterizable ()
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 
- Public Member Functions inherited from FWParameterSetterEditorBase
 FWParameterSetterEditorBase ()
 
virtual void updateEditor ()
 
virtual ~FWParameterSetterEditorBase ()
 

Private Member Functions

 ClassDef (FWGeometryTableView, 0)
 
 FWGeometryTableView (const FWGeometryTableView &)
 
const FWGeometryTableViewoperator= (const FWGeometryTableView &)
 

Private Attributes

FWBoolParameter m_disableTopNode
 
FWStringParameter m_filter
 
FWGUIValidatingTextEntrym_filterEntry
 
FWEnumParameter m_filterType
 
boost::shared_ptr
< FWParameterSetterBase
m_filterTypeSetter
 
FWGeoMaterialValidatorm_filterValidator
 
FWEnumParameter m_mode
 
FWEnumParameter m_proximityAlgo
 
FWDoubleParameter m_regionRadius
 
FWBoolParameter m_selectRegion
 
FWGeometryTableManagerm_tableManager
 
FWLongParameter m_visLevel
 
FWBoolParameter m_visLevelFilter
 

Additional Inherited Members

- Public Attributes inherited from FWViewBase
sigc::signal< void, const
FWViewBase * > 
beingDestroyed_
 
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
 
- Protected Member Functions inherited from FWGeometryTableViewBase
void postConst ()
 
void setTopNodePathFromConfig (const FWConfiguration &iFrom)
 
- Protected Member Functions inherited from FWViewBase
virtual ~FWViewBase ()
 
- Protected Attributes inherited from FWGeometryTableViewBase
FWLongParameter m_autoExpand
 
FWColorManagerm_colorManager
 
FWColorPopupm_colorPopup
 
FWBoolParameter m_enableHighlight
 
bool m_enableRedraw
 
TEveScene * m_eveScene
 
FWGeoTopNodem_eveTopNode
 
TEveWindowFrame * m_eveWindow
 
TGCompositeFrame * m_frame
 
FWLongParameter m_leafTransparencyFactor
 
FWEveDigitSetScalableMarkerm_marker
 
FWLongParameter m_minLeafTransparency
 
FWLongParameter m_minParentTransparency
 
FWLongParameter m_parentTransparencyFactor
 
FWTableWidgetm_tableWidget
 
FWLongParameter m_topNodeIdx
 
FWViewCombom_viewBox
 
const FWConfigurationm_viewersConfig
 
- Protected Attributes inherited from FWViewBase
FWViewType m_type
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 29 of file FWGeometryTableView.h.

Member Enumeration Documentation

Enumerator
kNode 
kVolume 

Definition at line 32 of file FWGeometryTableView.h.

Enumerator
kBBoxCenter 
kBBoxSurface 

Definition at line 33 of file FWGeometryTableView.h.

Constructor & Destructor Documentation

FWGeometryTableView::FWGeometryTableView ( TEveWindowSlot *  iParent,
FWColorManager colMng 
)

Definition at line 133 of file FWGeometryTableView.cc.

References FWEnumParameter::addEntry(), autoExpandCallback(), FWGeometryTableViewBase::cdTop(), FWGenericParameter< T >::changed_, checkRegionOfInterest(), FWGeometryTableViewManager::getGeoMangeur(), FWGUIValidatingTextEntry::getListBox(), kBBoxCenter, kBBoxSurface, kFilterMaterialName, kFilterMaterialTitle, kFilterShapeClassName, kFilterShapeName, kNode, kVolume, FWGeometryTableManager::loadGeometry(), FWGeometryTableViewBase::m_autoExpand, m_disableTopNode, FWGeometryTableViewBase::m_eveScene, FWGeoTopNodeGLScene::m_eveTopNode, FWGeometryTableViewBase::m_eveTopNode, m_filterEntry, m_filterType, m_filterTypeSetter, m_filterValidator, FWGeometryTableViewBase::m_frame, m_mode, m_proximityAlgo, m_regionRadius, FWGeoTopNode::m_scene, m_selectRegion, m_tableManager, FWGeometryTableViewBase::m_viewBox, m_visLevel, m_visLevelFilter, FWParameterSetterBase::makeSetterFor(), FWGeometryTableViewBase::postConst(), FWGeometryTableViewBase::refreshTable3D(), FWGUIValidatingTextEntry::setMaxListBoxHeight(), FWGUIValidatingTextEntry::setValidator(), and updateVisibilityTopNode().

135  m_tableManager(0),
136  m_filterEntry(0),
138  m_mode(this, "Mode", 0l, 0l, 1l),
139  m_disableTopNode(this,"HideTopNode", true),
140  m_visLevel(this,"VisLevel", 3l, 1l, 100l),
141  m_filter(this,"Materials", std::string()),
142  m_filterType(this,"FilterType:", 0l, 0l, 3l),
143  m_visLevelFilter(this,"IgnoreVisLevelOnFilter", true),
144  m_selectRegion(this, "SelectNearCameraCenter", false),
145  m_regionRadius(this, "SphereRadius", 10.0, 1.0, 300.0),
146  m_proximityAlgo(this, "Proximity algorithm", 1l, 0l, 1l)
147 {
149 #if ROOT_VERSION_CODE < ROOT_VERSION(5,32,0)
150  m_eveScene = new FWGeoTopNodeEveScene(gls, "TopGeoNodeScene", "");
151 #else
152  m_eveScene = new TEveScene(gls, "TopGeoNodeScene", "");
153 #endif
154  gEve->GetScenes()->AddElement(m_eveScene);
155 
156  m_eveTopNode = new FWEveDetectorGeo(this);
157  m_eveTopNode->IncDenyDestroy();
158  m_eveTopNode->SetPickable(true);
159  m_eveScene->AddElement(m_eveTopNode);
160 
161  gls->m_eveTopNode = m_eveTopNode;
162  m_eveTopNode->m_scene = gls;
163 
164  // top row
165  TGHorizontalFrame *hp = new TGHorizontalFrame(m_frame);
166  {
167  TGTextButton *rb = new TGTextButton (hp, "CdTop");
168  hp->AddFrame(rb, new TGLayoutHints(kLHintsNormal, 2, 2, 0, 0) );
169  rb->Connect("Clicked()","FWGeometryTableViewBase",this,"cdTop()");
170  }
171  {
172  TGTextButton *rb = new TGTextButton (hp, "CdUp");
173  hp->AddFrame(rb, new TGLayoutHints(kLHintsNormal, 2, 2, 0, 0));
174  rb->Connect("Clicked()","FWGeometryTableViewBase",this,"cdUp()");
175  }
176  {
177  m_viewBox = new FWViewCombo(hp, this);
178  hp->AddFrame( m_viewBox,new TGLayoutHints(kLHintsExpandY, 2, 2, 0, 0));
179  }
180  {
181 
182  m_filterType.addEntry(kFilterMaterialName, "MaterialName");
183  m_filterType.addEntry(kFilterMaterialTitle, "MaterialTitle");
184  m_filterType.addEntry(kFilterShapeName, "ShapeName");
185  m_filterType.addEntry(kFilterShapeClassName, "ShapeClassName");
186 
187  boost::shared_ptr<FWParameterSetterBase> ptr( FWParameterSetterBase::makeSetterFor((FWParameterBase*)&m_filterType) );
188  ptr->attach((FWParameterBase*)&m_filterType, this);
189 
190  TGFrame* pframe = ptr->build(hp, false);
191  hp->AddFrame(pframe, new TGLayoutHints(kLHintsLeft));
192  m_filterTypeSetter.swap(ptr);
193  }
194  {
195  hp->AddFrame(new TGLabel(hp, "FilterExp:"), new TGLayoutHints(kLHintsBottom, 0, 0, 0, 2));
197  m_filterEntry->SetHeight(20);
200  hp->AddFrame(m_filterEntry, new TGLayoutHints(kLHintsExpandX, 0, 2, 1, 0));
202  m_filterEntry->getListBox()->Connect("Selected(int)", "FWGeometryTableView", this, "filterListCallback()");
203  m_filterEntry->Connect("ReturnPressed()", "FWGeometryTableView", this, "filterTextEntryCallback()");
204 
205  gVirtualX->GrabKey( m_filterEntry->GetId(),gVirtualX->KeysymToKeycode((int)kKey_A), kKeyControlMask, true);
206  }
207  m_frame->AddFrame(hp,new TGLayoutHints(kLHintsLeft|kLHintsExpandX, 2, 2, 2, 0));
208 
210  {
211  TEveGeoManagerHolder gmgr( FWGeometryTableViewManager::getGeoMangeur());
212  m_tableManager->loadGeometry( gGeoManager->GetTopNode(), gGeoManager->GetListOfVolumes());
213  }
214  cdTop();
215 
216  m_mode.addEntry(kNode, "Node");
217  m_mode.addEntry(kVolume, "Volume");
218 
219  m_mode.changed_.connect(boost::bind(&FWGeometryTableView::refreshTable3D,this));
221  m_visLevel.changed_.connect(boost::bind(&FWGeometryTableView::refreshTable3D,this));
222 
223 
225 
227  postConst();
228 
229  m_proximityAlgo.addEntry(kBBoxCenter, "BBox center");
230  m_proximityAlgo.addEntry(kBBoxSurface, "BBox surface");
231 
235 
236 }
FWGeoTopNode * m_eveTopNode
FWGeoMaterialValidator * m_filterValidator
FWDoubleParameter m_regionRadius
FWBoolParameter m_selectRegion
static boost::shared_ptr< FWParameterSetterBase > makeSetterFor(FWParameterBase *)
FWBoolParameter m_disableTopNode
sigc::signal< void, T > changed_
FWEnumParameter m_filterType
FWGeoTopNodeGLScene * m_scene
Definition: FWGeoTopNode.h:67
FWLongParameter m_visLevel
FWGeometryTableViewBase(TEveWindowSlot *, FWViewType::EType, FWColorManager *)
FWStringParameter m_filter
void setValidator(FWValidatorBase *)
bool addEntry(Long_t id, const std::string &txt)
FWEnumParameter m_mode
FWGeometryTableManager * m_tableManager
boost::shared_ptr< FWParameterSetterBase > m_filterTypeSetter
void loadGeometry(TGeoNode *iGeoTopNode, TObjArray *iVolumes)
FWBoolParameter m_visLevelFilter
FWEnumParameter m_proximityAlgo
FWGUIValidatingTextEntry * m_filterEntry
FWGeometryTableView::~FWGeometryTableView ( )
virtual

Definition at line 238 of file FWGeometryTableView.cc.

239 {}
FWGeometryTableView::FWGeometryTableView ( const FWGeometryTableView )
private

Member Function Documentation

void FWGeometryTableView::autoExpandCallback ( )
void FWGeometryTableView::checkRegionOfInterest ( )

Definition at line 367 of file FWGeometryTableView.cc.

References FWGeometryTableManager::checkRegionOfInterest(), fwLog, fwlog::kError, fwlog::kInfo, fwlog::kWarning, FWGeometryTableViewBase::m_eveTopNode, m_proximityAlgo, m_regionRadius, m_selectRegion, m_tableManager, FWGeometryTableViewBase::refreshTable3D(), FWGeometryTableManager::resetRegionOfInterest(), findQualityFiles::v, FWGenericParameter< T >::value(), and viewIsChecked().

Referenced by FWGeometryTableView().

368 {
369  if (m_selectRegion.value())
370  {
371  double* center = 0;
372  for (TEveElement::List_i it = gEve->GetViewers()->BeginChildren(); it != gEve->GetViewers()->EndChildren(); ++it)
373  {
374  TEveViewer* v = ((TEveViewer*)(*it));
375  if (viewIsChecked(v, m_eveTopNode))
376  {
377  if (center) {
378  fwLog(fwlog::kWarning) << "Center picked from first view \n";
379  } else {
380  center = v->GetGLViewer()->CurrentCamera().GetCenterVec();
381  fwLog(fwlog::kInfo) << Form("Center picked (%.1f, %.1f, %.1f) from first selected 3D view \n",
382  center[0], center[1], center[2]);
383  }
384  }
385  }
386 
387  if (! center)
388  {
389  fwLog(fwlog::kError) << "No 3D view selected \n";
390  return;
391  }
392 
394  }
395  else
396  {
398  }
399 
400  refreshTable3D();
401 }
FWDoubleParameter m_regionRadius
FWBoolParameter m_selectRegion
void checkRegionOfInterest(double *center, double radius, long algo)
FWGeometryTableManager * m_tableManager
#define fwLog(_level_)
Definition: fwLog.h:51
bool viewIsChecked(TEveViewer *v, TEveElement *el)
FWEnumParameter m_proximityAlgo
FWGeometryTableView::ClassDef ( FWGeometryTableView  ,
 
)
private
bool FWGeometryTableView::drawTopNode ( ) const
inline

Definition at line 54 of file FWGeometryTableView.h.

References m_disableTopNode, and FWGenericParameter< T >::value().

Referenced by FWGeometryTableManager::loadGeometry().

54 { return ! m_disableTopNode.value(); }
FWBoolParameter m_disableTopNode
void FWGeometryTableView::filterListCallback ( )

Definition at line 277 of file FWGeometryTableView.cc.

References create_public_lumi_plots::exp, m_filterEntry, AlCaHLTBitMon_QueryRunRegistry::string, and updateFilter().

278 {
279  // std::cout << "list click ed [" << m_filterEntry->GetText() << "] \n" ;
280 
281  std::string exp = m_filterEntry->GetText();
282  updateFilter(exp);
283 }
void updateFilter(std::string &)
FWGUIValidatingTextEntry * m_filterEntry
void FWGeometryTableView::filterTextEntryCallback ( )

Definition at line 269 of file FWGeometryTableView.cc.

References create_public_lumi_plots::exp, m_filterEntry, AlCaHLTBitMon_QueryRunRegistry::string, and updateFilter().

270 {
271  // std::cout << "text entry click ed \n" ;
272  std::string exp = m_filterEntry->GetText();
273  updateFilter(exp);
274 }
void updateFilter(std::string &)
FWGUIValidatingTextEntry * m_filterEntry
int FWGeometryTableView::getAutoExpand ( ) const
inline
std::string FWGeometryTableView::getFilter ( ) const
inline

Definition at line 47 of file FWGeometryTableView.h.

References m_filter, and FWGenericParameter< T >::value().

Referenced by FWEveDetectorGeo::Paint(), and FWGeometryTableManager::updateFilter().

47 { return m_filter.value(); }
FWStringParameter m_filter
int FWGeometryTableView::getFilterType ( ) const
inline
bool FWGeometryTableView::getIgnoreVisLevelWhenFilter ( ) const
inline
FWGeometryTableManagerBase * FWGeometryTableView::getTableManager ( )
virtual
int FWGeometryTableView::getVisLevel ( ) const
inline

Definition at line 49 of file FWGeometryTableView.h.

References m_visLevel, and FWGenericParameter< T >::value().

Referenced by FWEveDetectorGeo::Paint().

49 { return m_visLevel.value(); }
FWLongParameter m_visLevel
bool FWGeometryTableView::getVolumeMode ( ) const
inline
bool FWGeometryTableView::isSelectedByRegion ( ) const
inline

Definition at line 63 of file FWGeometryTableView.h.

References m_selectRegion, and FWGenericParameter< T >::value().

Referenced by FWEveDetectorGeo::paintChildNodesRecurse().

63 { return m_selectRegion.value(); }
FWBoolParameter m_selectRegion
const FWGeometryTableView& FWGeometryTableView::operator= ( const FWGeometryTableView )
private
void FWGeometryTableView::populateController ( ViewerParameterGUI gui) const
virtual

Reimplemented from FWGeometryTableViewBase.

Definition at line 312 of file FWGeometryTableView.cc.

References ViewerParameterGUI::getTabContainer(), FWGeometryTableViewBase::m_autoExpand, m_disableTopNode, FWGeometryTableViewBase::m_minLeafTransparency, FWGeometryTableViewBase::m_minParentTransparency, m_mode, m_proximityAlgo, m_regionRadius, m_selectRegion, m_visLevel, m_visLevelFilter, ViewerParameterGUI::requestTab(), and ViewerParameterGUI::separator().

313 {
314  gui.requestTab("Style").
315  addParam(&m_mode).
316  addParam(&m_autoExpand).
317  separator().
318  addParam(&m_disableTopNode).
319  addParam(&m_minParentTransparency).
320  addParam(&m_minLeafTransparency).
321  addParam(&m_visLevel).
322  addParam(&m_visLevelFilter).
323  separator().
324  addParam(&m_selectRegion).
325  addParam(&m_regionRadius).
326  addParam(&m_proximityAlgo).separator();
327 
328  TGTextButton* butt = new TGTextButton(gui.getTabContainer(), "ReloadColors");
329  gui.getTabContainer()->AddFrame(butt);
330  butt->Connect("Clicked()", "FWGeometryTableViewBase", (FWGeometryTableViewBase*)this, "reloadColors()");
331 }
FWDoubleParameter m_regionRadius
ViewerParameterGUI & requestTab(const char *)
ViewerParameterGUI & separator()
FWBoolParameter m_selectRegion
FWBoolParameter m_disableTopNode
FWLongParameter m_visLevel
FWEnumParameter m_mode
TGCompositeFrame * getTabContainer()
FWBoolParameter m_visLevelFilter
FWEnumParameter m_proximityAlgo
void FWGeometryTableView::setFrom ( const FWConfiguration iFrom)
virtual

Reimplemented from FWConfigurableParameterizable.

Definition at line 405 of file FWGeometryTableView.cc.

References FWParameterizable::begin(), FWGeometryTableViewBase::cdNode(), FWGeometryTableViewBase::checkExpandLevel(), FWParameterizable::end(), FWGeometryTableViewBase::m_enableRedraw, m_filter, m_filterEntry, m_filterType, m_filterTypeSetter, m_tableManager, FWGeometryTableViewBase::m_topNodeIdx, FWGeometryTableViewBase::m_viewersConfig, FWParameterBase::name(), FWGeometryTableViewBase::refreshTable3D(), FWGeometryTableViewBase::setTopNodePathFromConfig(), FWGeometryTableManager::updateFilter(), FWGenericParameter< T >::value(), and FWConfiguration::valueForKey().

406 {
407  m_enableRedraw = false;
408  for (const_iterator it =begin(), itEnd = end(); it != itEnd; ++it)
409  {
410  // printf("set from %s \n",(*it)->name().c_str() );
411  if ((*it)->name() == m_topNodeIdx.name() )
413  else
414  (*it)->setFrom(iFrom);
415  }
416 
417 
419 
420  TGComboBox* cbox = ((FWEnumParameterSetter*) m_filterTypeSetter.get())->getWidget();
421  cbox->Select(m_filterType.value(), false);
422  m_viewersConfig = iFrom.valueForKey("Viewers");
423 
424 
425  m_enableRedraw = true;
426  m_filterEntry->SetText(m_filter.value().c_str(), false);
429  refreshTable3D();
430  /*
431  getTableManager()->redrawTable();
432  m_eveTopNode->ElementChanged();
433  gEve->FullRedraw3D(false, true);
434  */
435 }
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator begin() const
void setTopNodePathFromConfig(const FWConfiguration &iFrom)
const FWConfiguration * m_viewersConfig
FWEnumParameter m_filterType
FWStringParameter m_filter
const_iterator end() const
FWGeometryTableManager * m_tableManager
boost::shared_ptr< FWParameterSetterBase > m_filterTypeSetter
const FWConfiguration * valueForKey(const std::string &iKey) const
FWGUIValidatingTextEntry * m_filterEntry
const std::string & name() const
void FWGeometryTableView::setPath ( int  parentIdx,
std::string &   
)
virtual

Reimplemented from FWGeometryTableViewBase.

Definition at line 242 of file FWGeometryTableView.cc.

References asciidump::at, FWGeometryTableViewBase::checkExpandLevel(), FWGeoTopNode::clearSelection(), getTableManager(), FWGeometryTableViewBase::getTopNodeIdx(), FWGeometryTableManagerBase::kVisNodeSelf, m_disableTopNode, FWGeometryTableViewBase::m_eveTopNode, FWGeometryTableViewBase::m_topNodeIdx, FWGeometryTableManagerBase::refEntries(), FWGeometryTableViewBase::refreshTable3D(), FWGenericParameter< T >::set(), FWGeometryTableManagerBase::setLevelOffset(), and FWGenericParameter< T >::value().

243 {
245 
246  m_topNodeIdx.set(parentIdx);
248  getTableManager()->setLevelOffset(getTableManager()->refEntries().at(getTopNodeIdx()).m_level);
249 
251  refreshTable3D();
252 }
FWBoolParameter m_disableTopNode
void clearSelection()
Definition: FWGeoTopNode.h:77
virtual FWGeometryTableManagerBase * getTableManager()
list at
Definition: asciidump.py:428
void FWGeometryTableView::updateFilter ( std::string &  exp)

Definition at line 286 of file FWGeometryTableView.cc.

References i, m_filter, m_filterEntry, m_filterType, m_tableManager, FWGeometryTableManagerBase::refEntries(), FWGeometryTableViewBase::refreshTable3D(), FWGenericParameter< T >::set(), FWGeometryTableManager::setVisibility(), FWGeometryTableManager::setVisibilityChld(), FWGeometryTableManager::updateFilter(), and FWGenericParameter< T >::value().

Referenced by filterListCallback(), and filterTextEntryCallback().

287 {
288  // std::cout << "=FWGeometryTableViewBase::updateFilter()" << m_filterEntry->GetText() <<std::endl;
289 
290 
291  if (exp.empty())
292  {
293  // std::cout << "FITLER OFF \n";
295  {
296  m_tableManager->setVisibility(*i, true);
298  }
299 
300  // NOTE: entry should be cleared automatically
301  m_filterEntry->Clear();
302  }
303 
304  m_filter.set(exp);
306  refreshTable3D();
307 
308 }
virtual void setVisibility(NodeInfo &nodeInfo, bool)
int i
Definition: DBlmapReader.cc:9
virtual void setVisibilityChld(NodeInfo &nodeInfo, bool)
FWEnumParameter m_filterType
FWStringParameter m_filter
FWGeometryTableManager * m_tableManager
FWGUIValidatingTextEntry * m_filterEntry
void FWGeometryTableView::updateVisibilityTopNode ( )

Member Data Documentation

FWBoolParameter FWGeometryTableView::m_disableTopNode
private
FWStringParameter FWGeometryTableView::m_filter
private

Definition at line 83 of file FWGeometryTableView.h.

Referenced by getFilter(), setFrom(), and updateFilter().

FWGUIValidatingTextEntry* FWGeometryTableView::m_filterEntry
private
FWEnumParameter FWGeometryTableView::m_filterType
private

Definition at line 84 of file FWGeometryTableView.h.

Referenced by FWGeometryTableView(), getFilterType(), setFrom(), and updateFilter().

boost::shared_ptr<FWParameterSetterBase> FWGeometryTableView::m_filterTypeSetter
private

Definition at line 92 of file FWGeometryTableView.h.

Referenced by FWGeometryTableView(), and setFrom().

FWGeoMaterialValidator* FWGeometryTableView::m_filterValidator
private

Definition at line 76 of file FWGeometryTableView.h.

Referenced by FWGeometryTableView().

FWEnumParameter FWGeometryTableView::m_mode
private

Definition at line 79 of file FWGeometryTableView.h.

Referenced by FWGeometryTableView(), getVolumeMode(), and populateController().

FWEnumParameter FWGeometryTableView::m_proximityAlgo
private
FWDoubleParameter FWGeometryTableView::m_regionRadius
private
FWBoolParameter FWGeometryTableView::m_selectRegion
private
FWGeometryTableManager* FWGeometryTableView::m_tableManager
private
FWLongParameter FWGeometryTableView::m_visLevel
private

Definition at line 81 of file FWGeometryTableView.h.

Referenced by FWGeometryTableView(), getVisLevel(), and populateController().

FWBoolParameter FWGeometryTableView::m_visLevelFilter
private