CMS 3D CMS Logo

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
 
FWGeometryTableManagerBasegetTableManager () override
 
int getVisLevel () const
 
bool getVolumeMode () const
 
bool isSelectedByRegion () const
 
void populateController (ViewerParameterGUI &) const override
 
void setFrom (const FWConfiguration &) override
 
void setPath (int, std::string &) override
 
void updateFilter (std::string &)
 
void updateVisibilityTopNode ()
 
 ~FWGeometryTableView () override
 
- Public Member Functions inherited from FWGeometryTableViewBase
void addTo (FWConfiguration &) const override
 
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 ()
 
void saveImageTo (const std::string &iName) const override
 
void selectView (int)
 
void setBackgroundColor ()
 
void transparencyChanged ()
 
 ~FWGeometryTableViewBase () override
 
- Public Member Functions inherited from FWViewBase
virtual FWViewContextMenuHandlerBasecontextMenuHandler () const
 
void destroy ()
 
 FWViewBase (FWViewType::EType, unsigned int iVersion=1)
 
 FWViewBase (const FWViewBase &)=delete
 
const FWViewBaseoperator= (const FWViewBase &)=delete
 
void promptForSaveImageTo (TGFrame *) const
 
FWViewType::EType typeId () const
 
const std::string & typeName () const
 
- Public Member Functions inherited from FWConfigurableParameterizable
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
 FWConfigurableParameterizable (const FWConfigurableParameterizable &)=delete
 
const FWConfigurableParameterizableoperator= (const FWConfigurableParameterizable &)=delete
 
unsigned int version () const
 
 ~FWConfigurableParameterizable () override
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
 FWParameterizable (const FWParameterizable &)=delete
 
const FWParameterizableoperator= (const FWParameterizable &)=delete
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
 FWConfigurable (const FWConfigurable &)=delete
 
const FWConfigurableoperator= (const FWConfigurable &)=delete
 
virtual ~FWConfigurable ()
 
- Public Member Functions inherited from FWParameterSetterEditorBase
 FWParameterSetterEditorBase ()
 
 FWParameterSetterEditorBase (const FWParameterSetterEditorBase &)=delete
 
const FWParameterSetterEditorBaseoperator= (const FWParameterSetterEditorBase &)=delete
 
virtual void updateEditor ()
 
virtual ~FWParameterSetterEditorBase ()
 

Private Member Functions

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

Private Attributes

FWBoolParameter m_disableTopNode
 
FWStringParameter m_filter
 
FWGUIValidatingTextEntrym_filterEntry
 
FWEnumParameter m_filterType
 
std::shared_ptr< FWParameterSetterBasem_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
 ~FWViewBase () override
 
- 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 28 of file FWGeometryTableView.h.

Member Enumeration Documentation

◆ EFiterType

◆ EMode

Enumerator
kNode 
kVolume 

Definition at line 30 of file FWGeometryTableView.h.

◆ EProximityAlgo

Enumerator
kBBoxCenter 
kBBoxSurface 

Definition at line 31 of file FWGeometryTableView.h.

Constructor & Destructor Documentation

◆ FWGeometryTableView() [1/2]

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

Definition at line 123 of file FWGeometryTableView.cc.

References FWEnumParameter::addEntry(), autoExpandCallback(), FWGeometryTableViewBase::cdTop(), FWGenericParameter< T >::changed_, checkRegionOfInterest(), FWGeometryTableViewManager::getGeoMangeur(), FWGUIValidatingTextEntry::getListBox(), trackingPlots::hp, 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().

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

◆ ~FWGeometryTableView()

FWGeometryTableView::~FWGeometryTableView ( )
override

Definition at line 224 of file FWGeometryTableView.cc.

224 {}

◆ FWGeometryTableView() [2/2]

FWGeometryTableView::FWGeometryTableView ( const FWGeometryTableView )
private

Member Function Documentation

◆ autoExpandCallback()

void FWGeometryTableView::autoExpandCallback ( )

◆ checkRegionOfInterest()

void FWGeometryTableView::checkRegionOfInterest ( )

Definition at line 341 of file FWGeometryTableView.cc.

References FWGeometryTableManager::checkRegionOfInterest(), fwLog, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, 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().

341  {
342  if (m_selectRegion.value()) {
343  double* center = nullptr;
344  for (TEveElement::List_i it = gEve->GetViewers()->BeginChildren(); it != gEve->GetViewers()->EndChildren(); ++it) {
345  TEveViewer* v = ((TEveViewer*)(*it));
346  if (viewIsChecked(v, m_eveTopNode)) {
347  if (center) {
348  fwLog(fwlog::kWarning) << "Center picked from first view \n";
349  } else {
350  center = v->GetGLViewer()->CurrentCamera().GetCenterVec();
351  fwLog(fwlog::kInfo) << Form(
352  "Center picked (%.1f, %.1f, %.1f) from first selected 3D view \n", center[0], center[1], center[2]);
353  }
354  }
355  }
356 
357  if (!center) {
358  fwLog(fwlog::kError) << "No 3D view selected \n";
359  return;
360  }
361 
363  } else {
365  }
366 
367  refreshTable3D();
368 }
FWDoubleParameter m_regionRadius
FWBoolParameter m_selectRegion
void checkRegionOfInterest(double *center, double radius, long algo)
FWGeometryTableManager * m_tableManager
#define fwLog(_level_)
Definition: fwLog.h:45
bool viewIsChecked(TEveViewer *v, TEveElement *el)
FWEnumParameter m_proximityAlgo

◆ ClassDefOverride()

FWGeometryTableView::ClassDefOverride ( FWGeometryTableView  ,
 
)
private

◆ drawTopNode()

bool FWGeometryTableView::drawTopNode ( ) const
inline

◆ filterListCallback()

void FWGeometryTableView::filterListCallback ( )

Definition at line 260 of file FWGeometryTableView.cc.

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

260  {
261  // std::cout << "list click ed [" << m_filterEntry->GetText() << "] \n" ;
262 
263  std::string exp = m_filterEntry->GetText();
264  updateFilter(exp);
265 }
void updateFilter(std::string &)
FWGUIValidatingTextEntry * m_filterEntry

◆ filterTextEntryCallback()

void FWGeometryTableView::filterTextEntryCallback ( )

Definition at line 253 of file FWGeometryTableView.cc.

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

253  {
254  // std::cout << "text entry click ed \n" ;
255  std::string exp = m_filterEntry->GetText();
256  updateFilter(exp);
257 }
void updateFilter(std::string &)
FWGUIValidatingTextEntry * m_filterEntry

◆ getAutoExpand()

int FWGeometryTableView::getAutoExpand ( ) const
inline

◆ getFilter()

std::string FWGeometryTableView::getFilter ( ) const
inline

◆ getFilterType()

int FWGeometryTableView::getFilterType ( ) const
inline

◆ getIgnoreVisLevelWhenFilter()

bool FWGeometryTableView::getIgnoreVisLevelWhenFilter ( ) const
inline

◆ getTableManager()

FWGeometryTableManagerBase * FWGeometryTableView::getTableManager ( )
overridevirtual

◆ getVisLevel()

int FWGeometryTableView::getVisLevel ( ) const
inline

Definition at line 47 of file FWGeometryTableView.h.

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

Referenced by FWEveDetectorGeo::Paint().

47 { return m_visLevel.value(); }
FWLongParameter m_visLevel

◆ getVolumeMode()

bool FWGeometryTableView::getVolumeMode ( ) const
inline

◆ isSelectedByRegion()

bool FWGeometryTableView::isSelectedByRegion ( ) const
inline

◆ operator=()

const FWGeometryTableView& FWGeometryTableView::operator= ( const FWGeometryTableView )
private

◆ populateController()

void FWGeometryTableView::populateController ( ViewerParameterGUI gui) const
overridevirtual

Reimplemented from FWGeometryTableViewBase.

Definition at line 291 of file FWGeometryTableView.cc.

References ViewerParameterGUI::addParam(), 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().

291  {
292  gui.requestTab("Style")
293  .addParam(&m_mode)
295  .separator()
301  .separator()
305  .separator();
306 
307  TGTextButton* butt = new TGTextButton(gui.getTabContainer(), "ReloadColors");
308  gui.getTabContainer()->AddFrame(butt);
309  butt->Connect("Clicked()", "FWGeometryTableViewBase", (FWGeometryTableViewBase*)this, "reloadColors()");
310 }
FWDoubleParameter m_regionRadius
ViewerParameterGUI & requestTab(const char *)
ViewerParameterGUI & separator()
FWBoolParameter m_selectRegion
FWBoolParameter m_disableTopNode
FWLongParameter m_visLevel
FWEnumParameter m_mode
ViewerParameterGUI & addParam(const FWParameterBase *)
TGCompositeFrame * getTabContainer()
FWBoolParameter m_visLevelFilter
FWEnumParameter m_proximityAlgo

◆ setFrom()

void FWGeometryTableView::setFrom ( const FWConfiguration iFrom)
overridevirtual

Reimplemented from FWConfigurableParameterizable.

Definition at line 372 of file FWGeometryTableView.cc.

References FWParameterizable::begin(), FWGeometryTableViewBase::cdNode(), FWGeometryTableViewBase::checkExpandLevel(), FWParameterizable::end(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, 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().

372  {
373  m_enableRedraw = false;
374  for (const_iterator it = begin(), itEnd = end(); it != itEnd; ++it) {
375  // printf("set from %s \n",(*it)->name().c_str() );
376  if ((*it)->name() == m_topNodeIdx.name())
378  else
379  (*it)->setFrom(iFrom);
380  }
381 
383 
384  TGComboBox* cbox = ((FWEnumParameterSetter*)m_filterTypeSetter.get())->getWidget();
385  cbox->Select(m_filterType.value(), false);
386  m_viewersConfig = iFrom.valueForKey("Viewers");
387 
388  m_enableRedraw = true;
389  m_filterEntry->SetText(m_filter.value().c_str(), false);
392  refreshTable3D();
393  /*
394  getTableManager()->redrawTable();
395  m_eveTopNode->ElementChanged();
396  gEve->FullRedraw3D(false, true);
397  */
398 }
const_iterator begin() const
void setTopNodePathFromConfig(const FWConfiguration &iFrom)
const FWConfiguration * m_viewersConfig
std::vector< FWParameterBase * >::const_iterator const_iterator
const_iterator end() const
const std::string & name() const
FWEnumParameter m_filterType
FWStringParameter m_filter
std::shared_ptr< FWParameterSetterBase > m_filterTypeSetter
FWGeometryTableManager * m_tableManager
const FWConfiguration * valueForKey(const std::string &iKey) const
FWGUIValidatingTextEntry * m_filterEntry

◆ setPath()

void FWGeometryTableView::setPath ( int  parentIdx,
std::string &   
)
overridevirtual

Reimplemented from FWGeometryTableViewBase.

Definition at line 227 of file FWGeometryTableView.cc.

References 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().

227  {
229 
230  m_topNodeIdx.set(parentIdx);
232  ->refEntries()
233  .at(getTopNodeIdx())
235  getTableManager()->setLevelOffset(getTableManager()->refEntries().at(getTopNodeIdx()).m_level);
236 
238  refreshTable3D();
239 }
FWBoolParameter m_disableTopNode
void clearSelection()
Definition: FWGeoTopNode.h:76
FWGeometryTableManagerBase * getTableManager() override

◆ updateFilter()

void FWGeometryTableView::updateFilter ( std::string &  exp)

Definition at line 268 of file FWGeometryTableView.cc.

References JetChargeProducer_cfi::exp, mps_fire::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().

268  {
269  // std::cout << "=FWGeometryTableViewBase::updateFilter()" << m_filterEntry->GetText() <<std::endl;
270 
271  if (exp.empty()) {
272  // std::cout << "FITLER OFF \n";
274  i != m_tableManager->refEntries().end();
275  ++i) {
276  m_tableManager->setVisibility(*i, true);
278  }
279 
280  // NOTE: entry should be cleared automatically
281  m_filterEntry->Clear();
282  }
283 
284  m_filter.set(exp);
286  refreshTable3D();
287 }
FWEnumParameter m_filterType
FWStringParameter m_filter
FWGeometryTableManager * m_tableManager
void setVisibility(NodeInfo &nodeInfo, bool) override
FWGUIValidatingTextEntry * m_filterEntry
void setVisibilityChld(NodeInfo &nodeInfo, bool) override

◆ updateVisibilityTopNode()

void FWGeometryTableView::updateVisibilityTopNode ( )

Member Data Documentation

◆ m_disableTopNode

FWBoolParameter FWGeometryTableView::m_disableTopNode
private

◆ m_filter

FWStringParameter FWGeometryTableView::m_filter
private

Definition at line 81 of file FWGeometryTableView.h.

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

◆ m_filterEntry

FWGUIValidatingTextEntry* FWGeometryTableView::m_filterEntry
private

◆ m_filterType

FWEnumParameter FWGeometryTableView::m_filterType
private

Definition at line 82 of file FWGeometryTableView.h.

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

◆ m_filterTypeSetter

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

Definition at line 89 of file FWGeometryTableView.h.

Referenced by FWGeometryTableView(), and setFrom().

◆ m_filterValidator

FWGeoMaterialValidator* FWGeometryTableView::m_filterValidator
private

Definition at line 74 of file FWGeometryTableView.h.

Referenced by FWGeometryTableView().

◆ m_mode

FWEnumParameter FWGeometryTableView::m_mode
private

Definition at line 77 of file FWGeometryTableView.h.

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

◆ m_proximityAlgo

FWEnumParameter FWGeometryTableView::m_proximityAlgo
private

◆ m_regionRadius

FWDoubleParameter FWGeometryTableView::m_regionRadius
private

◆ m_selectRegion

FWBoolParameter FWGeometryTableView::m_selectRegion
private

◆ m_tableManager

FWGeometryTableManager* FWGeometryTableView::m_tableManager
private

◆ m_visLevel

FWLongParameter FWGeometryTableView::m_visLevel
private

Definition at line 79 of file FWGeometryTableView.h.

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

◆ m_visLevelFilter

FWBoolParameter FWGeometryTableView::m_visLevelFilter
private