#include <Fireworks/Core/interface/FWGeometryTableManager.h>
Classes | |
struct | Match |
Public Types | |
enum | ECol { kNameColumn, kColorColumn, kTranspColumn, kVisSelfColumn, kVisChildColumn, kMaterialColumn, kNumColumn } |
enum | GeometryBits { kMatches = BIT(5), kChildMatches = BIT(6), kFilterCached = BIT(7) } |
typedef Volumes_t::iterator | Volumes_i |
typedef std::unordered_map< TGeoVolume *, Match > | Volumes_t |
Public Types inherited from FWGeometryTableManagerBase | |
enum | Bits { kExpanded = BIT(0), kVisNodeSelf = BIT(1), kVisNodeChld = BIT(2), kHighlighted = BIT(3), kSelected = BIT(4) } |
typedef Entries_v::iterator | Entries_i |
typedef std::vector< NodeInfo > | Entries_v |
Public Member Functions | |
void | assertNodeFilterCache (NodeInfo &data) |
FWTableCellRendererBase * | cellRenderer (int iSortedRowNumber, int iCol) const override |
void | checkChildMatches (TGeoVolume *v, std::vector< TGeoVolume *> &) |
void | checkHierarchy () |
void | checkRegionOfInterest (double *center, double radius, long algo) |
FWGeometryTableManager (FWGeometryTableView *) | |
FWGeometryTableManager (const FWGeometryTableManager &)=delete | |
bool | getVisibility (const NodeInfo &nodeInfo) const override |
bool | getVisibilityChld (const NodeInfo &nodeInfo) const override |
void | importChildren (int parent_idx) |
void | loadGeometry (TGeoNode *iGeoTopNode, TObjArray *iVolumes) |
int | numberOfColumns () const override |
Number of columns in the table. More... | |
const FWGeometryTableManager & | operator= (const FWGeometryTableManager &)=delete |
void | printMaterials () |
void | recalculateVisibility () override |
void | recalculateVisibilityNodeRec (int) |
void | recalculateVisibilityVolumeRec (int) |
void | resetRegionOfInterest () |
void | setDaughtersSelfVisibility (int i, bool v) override |
void | setVisibility (NodeInfo &nodeInfo, bool) override |
void | setVisibilityChld (NodeInfo &nodeInfo, bool) override |
void | updateFilter (int) |
~FWGeometryTableManager () override | |
Public Member Functions inherited from FWGeometryTableManagerBase | |
virtual void | applyColorTranspToDaughters (int selectedIdx, bool recurse) |
void | applyTransparencyFromEditor () |
void | cancelEditor (bool) |
bool | cellDataIsSortable () const override |
bool | firstColumnClicked (int row, int xPos) |
FWGeometryTableManagerBase () | |
FWGeometryTableManagerBase (const FWGeometryTableManagerBase &) | |
int | getLevelOffset () const |
void | getNodeMatrix (const NodeInfo &nodeInfo, TGeoHMatrix &mat) const |
void | getNodePath (int, std::string &) const |
NodeInfo * | getSelected () |
std::vector< std::string > | getTitles () const override |
returns the title names for each column More... | |
void | implSort (int, bool) override |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'. More... | |
bool | isNodeRendered (int idx, int top_node_idx) const |
void | loadGeometry (TGeoNode *, TObjArray *) |
bool | nodeImported (int idx) const |
int | numberOfRows () const override |
Number of rows in the table. More... | |
const FWGeometryTableManagerBase & | operator= (const FWGeometryTableManagerBase &) |
void | redrawTable (bool setExpand=false) |
Entries_v & | refEntries () |
NodeInfo & | refEntry (int i) |
std::vector< int > | rowToIndex () |
void | setBackgroundToWhite (bool) |
void | setCellValueEditor (TGTextEntry *editor) |
void | setDaughtersSelfVisibility (bool) |
void | setLevelOffset (int x) |
void | showEditor (int) |
virtual const std::string | title () const |
int | unsortedRowNumber (int unsorted) const override |
when passed the index to the sorted order of the rows it returns the original row number from the underlying data More... | |
~FWGeometryTableManagerBase () override | |
Public Member Functions inherited from FWTableManagerBase | |
virtual void | buttonPressedInRowHeader (Int_t row, Event_t *event, Int_t relX, Int_t relY) |
Called if mouse button pressed in Row Header, defaults is to do nothing. More... | |
virtual void | buttonReleasedInRowHeader (Int_t row, Event_t *event, Int_t relX, Int_t relY) |
virtual unsigned int | cellHeight () const |
require all cells to be the same height More... | |
ClassDefOverride (FWTableManagerBase, 0) | |
void | dataChanged () |
Classes which inherit from FWTableManagerBase must call this when their underlying data changes. More... | |
FWTableManagerBase () | |
virtual bool | hasLabelHeaders () const |
virtual bool | hasRowHeaders () const |
Returns 'true' if this table has row headers. Defaults return value is false. More... | |
virtual std::vector< unsigned int > | maxWidthForColumns () const |
for each column in the table this returns the present maximum width for that column More... | |
virtual FWTableCellRendererBase * | rowHeader (int iSortedRowNumber) const |
Returns the renderer for the row header for the sorted row number iSortedRowNumber. More... | |
void | sort (int iCol, bool iSortOrder) |
Call to have table sorted on values in column iCol with the sort order being descending if iSortOrder is 'true'. More... | |
int | sortColumn (void) |
The current sort column. More... | |
bool | sortOrder (void) |
The current sort order for the table. More... | |
void | visualPropertiesChanged () |
Classes which inherit from FWTableManagerBase must call this when how the data is shown (e.g. color) changes. More... | |
~FWTableManagerBase () override | |
Protected Member Functions | |
const char * | cellName (const NodeInfo &data) const override |
bool | nodeIsParent (const NodeInfo &) const override |
Private Attributes | |
FWGeometryTableView * | m_browser |
bool | m_filterOff |
Volumes_t | m_volumes |
Additional Inherited Members | |
Static Public Member Functions inherited from FWGeometryTableManagerBase | |
static void | getNNodesTotal (TGeoNode *geoNode, int &off) |
Public Attributes inherited from FWGeometryTableManagerBase | |
ColorBoxRenderer | m_colorBoxRenderer |
TGTextEntry * | m_editor |
int | m_editTransparencyIdx |
Entries_v | m_entries |
TGGC * | m_highlightContext |
int | m_highlightIdx |
int | m_levelOffset |
FWTextTreeCellRenderer | m_renderer |
std::vector< int > | m_row_to_index |
Description: [one line class summary]
Usage: <usage>
Definition at line 30 of file FWGeometryTableManager.h.
typedef Volumes_t::iterator FWGeometryTableManager::Volumes_i |
Definition at line 45 of file FWGeometryTableManager.h.
typedef std::unordered_map<TGeoVolume*, Match> FWGeometryTableManager::Volumes_t |
Definition at line 44 of file FWGeometryTableManager.h.
Enumerator | |
---|---|
kNameColumn | |
kColorColumn | |
kTranspColumn | |
kVisSelfColumn | |
kVisChildColumn | |
kMaterialColumn | |
kNumColumn |
Definition at line 32 of file FWGeometryTableManager.h.
Enumerator | |
---|---|
kMatches | |
kChildMatches | |
kFilterCached |
Definition at line 34 of file FWGeometryTableManager.h.
FWGeometryTableManager::FWGeometryTableManager | ( | FWGeometryTableView * | v | ) |
Definition at line 28 of file FWGeometryTableManager.cc.
|
override |
Definition at line 31 of file FWGeometryTableManager.cc.
|
delete |
void FWGeometryTableManager::assertNodeFilterCache | ( | NodeInfo & | data | ) |
Definition at line 379 of file FWGeometryTableManager.cc.
References data, kChildMatches, FWGeometryTableManagerBase::kExpanded, kFilterCached, kMatches, m_volumes, oniaPATMuonsWithTrigger_cff::matches, setVisibility(), and setVisibilityChld().
Referenced by recalculateVisibility(), recalculateVisibilityNodeRec(), recalculateVisibilityVolumeRec(), and updateFilter().
|
overrideprotectedvirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 33 of file FWGeometryTableManager.cc.
References data, FWGeometryTableView::getVolumeMode(), and m_browser.
Referenced by cellRenderer().
|
overridevirtual |
Returns the particular renderer used to handle the requested cell. Arguments: iSortedRowNumber: the row number from the present sort (i.e. the cell number of the view) iCol: the column number of the cell. The returned value must be used immediately and not held onto since the same Renderer can be used for subsequent calls
Implements FWTableManagerBase.
Definition at line 42 of file FWGeometryTableManager.cc.
References cellName(), data, getVisibility(), getVisibilityChld(), FWTextTreeCellRenderer::iconWidth(), isSelected(), kColorColumn, FWGeometryTableManagerBase::kExpanded, FWGeometryTableManagerBase::kHighlighted, kMatches, kMaterialColumn, kNameColumn, FWGeometryTableManagerBase::kSelected, kTranspColumn, kVisChildColumn, kVisSelfColumn, personalPlayback::level, FWGeometryTableManagerBase::m_colorBoxRenderer, FWGeometryTableManagerBase::m_editTransparencyIdx, FWGeometryTableManagerBase::m_entries, FWGeometryTableManagerBase::m_highlightContext, FWGeometryTableManagerBase::m_levelOffset, FWGeometryTableManagerBase::m_renderer, FWGeometryTableManagerBase::m_row_to_index, nodeIsParent(), FWTextTableCellRenderer::setData(), FWGeometryTableManagerBase::ColorBoxRenderer::setData(), FWTextTreeCellRenderer::setIndentation(), FWTextTreeCellRenderer::setIsOpen(), FWTextTreeCellRenderer::setIsParent(), and FWTextTreeCellRenderer::showEditor().
void FWGeometryTableManager::checkChildMatches | ( | TGeoVolume * | v, |
std::vector< TGeoVolume *> & | pstack | ||
) |
Definition at line 158 of file FWGeometryTableManager.cc.
References mps_fire::i, FWGeometryTableManager::Match::m_childMatches, and m_volumes.
Referenced by updateFilter().
void FWGeometryTableManager::checkHierarchy | ( | ) |
Definition at line 138 of file FWGeometryTableManager.cc.
References ztail::d, MillePedeFileConverter_cfg::e, mps_fire::i, FWGeometryTableManagerBase::m_entries, Skims_PA_cff::name, and convertSQLiteXML::ok.
void FWGeometryTableManager::checkRegionOfInterest | ( | double * | center, |
double | radius, | ||
long | algo | ||
) |
Definition at line 462 of file FWGeometryTableManager.cc.
References cms::cuda::assert(), gpuPixelDoublets::cc, ztail::d, dumpMFGeometry_cfg::delta, Calorimetry_cff::dp, FWGeometryTableViewManager::getGeoMangeur(), mps_fire::i, FWGeometryTableView::kBBoxCenter, FWGeometryTableView::kBBoxSurface, FWGeometryTableManagerBase::kVisNodeChld, FWGeometryTableManagerBase::kVisNodeSelf, FWGeometryTableManagerBase::m_entries, alignCSCRings::r, CosmicsPD_Skims::radius, and submitPVValidationJobs::t.
Referenced by FWGeometryTableView::checkRegionOfInterest().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 440 of file FWGeometryTableManager.cc.
References data, FWGeometryTableView::getVolumeMode(), FWGeometryTableManagerBase::kVisNodeSelf, and m_browser.
Referenced by cellRenderer().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 447 of file FWGeometryTableManager.cc.
References data, FWGeometryTableView::getVolumeMode(), FWGeometryTableManagerBase::kVisNodeChld, and m_browser.
Referenced by cellRenderer().
void FWGeometryTableManager::importChildren | ( | int | parent_idx | ) |
Definition at line 114 of file FWGeometryTableManager.cc.
References data, FWGeometryTableView::getAutoExpand(), FWGeometryTableManagerBase::getNNodesTotal(), FWGeometryTableManagerBase::kExpanded, m_browser, FWGeometryTableManagerBase::m_entries, dqmiodumpmetadata::n, and class-composition::parent.
Referenced by loadGeometry().
void FWGeometryTableManager::loadGeometry | ( | TGeoNode * | iGeoTopNode, |
TObjArray * | iVolumes | ||
) |
Definition at line 228 of file FWGeometryTableManager.cc.
References FWGeometryTableView::drawTopNode(), FWGeometryTableView::getAutoExpand(), FWGeometryTableView::getFilterType(), FWGeometryTableManagerBase::getNNodesTotal(), importChildren(), FWGeometryTableManagerBase::kExpanded, FWGeometryTableManagerBase::kVisNodeSelf, m_browser, FWGeometryTableManagerBase::NodeInfo::m_color, FWGeometryTableManagerBase::m_entries, m_filterOff, FWGeometryTableManagerBase::NodeInfo::m_level, FWGeometryTableManagerBase::m_levelOffset, FWGeometryTableManagerBase::NodeInfo::m_node, FWGeometryTableManagerBase::NodeInfo::m_parent, FWGeometryTableManagerBase::m_row_to_index, FWGeometryTableManagerBase::NodeInfo::m_transparency, m_volumes, MultipleCompare::Match(), GetRecoTauVFromDQM_MC_cff::next, FWGeometryTableManagerBase::NodeInfo::setBitVal(), updateFilter(), and findQualityFiles::v.
Referenced by FWGeometryTableView::FWGeometryTableView().
|
overrideprotectedvirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 456 of file FWGeometryTableManager.cc.
References data, kChildMatches, and m_filterOff.
Referenced by cellRenderer().
|
inlineoverridevirtual |
Number of columns in the table.
Implements FWTableManagerBase.
Definition at line 72 of file FWGeometryTableManager.h.
References kNumColumn.
|
delete |
void FWGeometryTableManager::printMaterials | ( | ) |
|
overridevirtual |
Implements FWGeometryTableManagerBase.
Definition at line 283 of file FWGeometryTableManager.cc.
References assertNodeFilterCache(), data, FWGeometryTableViewBase::getTopNodeIdx(), FWGeometryTableView::getVolumeMode(), mps_fire::i, kChildMatches, FWGeometryTableManagerBase::kExpanded, m_browser, FWGeometryTableManagerBase::m_entries, m_filterOff, FWGeometryTableManagerBase::m_row_to_index, METSkim_cff::Max, recalculateVisibilityNodeRec(), and recalculateVisibilityVolumeRec().
void FWGeometryTableManager::recalculateVisibilityNodeRec | ( | int | pIdx | ) |
Definition at line 353 of file FWGeometryTableManager.cc.
References assertNodeFilterCache(), data, FWGeometryTableManagerBase::getNNodesTotal(), heavyIonCSV_trainingSettings::idx, kChildMatches, FWGeometryTableManagerBase::kExpanded, kMatches, FWGeometryTableManagerBase::m_entries, m_filterOff, FWGeometryTableManagerBase::m_row_to_index, and dqmiodumpmetadata::n.
Referenced by recalculateVisibility().
void FWGeometryTableManager::recalculateVisibilityVolumeRec | ( | int | pIdx | ) |
Definition at line 308 of file FWGeometryTableManager.cc.
References assertNodeFilterCache(), data, FWGeometryTableManagerBase::getNNodesTotal(), heavyIonCSV_trainingSettings::idx, kChildMatches, FWGeometryTableManagerBase::kExpanded, kMatches, FWGeometryTableManagerBase::m_entries, m_filterOff, FWGeometryTableManagerBase::m_row_to_index, dqmiodumpmetadata::n, and HLT_2024v12_cff::toAdd.
Referenced by recalculateVisibility().
void FWGeometryTableManager::resetRegionOfInterest | ( | ) |
Definition at line 533 of file FWGeometryTableManager.cc.
References FWGeometryTableManagerBase::kVisNodeChld, FWGeometryTableManagerBase::kVisNodeSelf, and FWGeometryTableManagerBase::m_entries.
Referenced by FWGeometryTableView::checkRegionOfInterest().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 423 of file FWGeometryTableManager.cc.
References data, FWGeometryTableManagerBase::getNNodesTotal(), heavyIonCSV_trainingSettings::idx, FWGeometryTableManagerBase::m_entries, dqmiodumpmetadata::n, setVisibility(), setVisibilityChld(), and findQualityFiles::v.
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 398 of file FWGeometryTableManager.cc.
References data, FWGeometryTableViewManager::getGeoMangeur(), FWGeometryTableView::getVolumeMode(), FWGeometryTableManagerBase::kVisNodeSelf, m_browser, and x.
Referenced by assertNodeFilterCache(), setDaughtersSelfVisibility(), and FWGeometryTableView::updateFilter().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 411 of file FWGeometryTableManager.cc.
References data, FWGeometryTableViewManager::getGeoMangeur(), FWGeometryTableView::getVolumeMode(), FWGeometryTableManagerBase::kVisNodeChld, m_browser, and x.
Referenced by assertNodeFilterCache(), setDaughtersSelfVisibility(), and FWGeometryTableView::updateFilter().
void FWGeometryTableManager::updateFilter | ( | int | iType | ) |
Definition at line 185 of file FWGeometryTableManager.cc.
References assertNodeFilterCache(), checkChildMatches(), FWGeometryTableView::getFilter(), mps_fire::i, createfilelist::int, kFilterCached, FWGeometryTableView::kFilterMaterialName, FWGeometryTableView::kFilterMaterialTitle, FWGeometryTableView::kFilterShapeClassName, FWGeometryTableView::kFilterShapeName, m_browser, FWGeometryTableManagerBase::m_entries, m_filterOff, m_volumes, fetchall_from_DQM_v2::regexp, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by loadGeometry(), FWGeometryTableView::setFrom(), and FWGeometryTableView::updateFilter().
|
private |
Definition at line 88 of file FWGeometryTableManager.h.
Referenced by cellName(), getVisibility(), getVisibilityChld(), importChildren(), loadGeometry(), recalculateVisibility(), setVisibility(), setVisibilityChld(), and updateFilter().
|
private |
Definition at line 92 of file FWGeometryTableManager.h.
Referenced by loadGeometry(), nodeIsParent(), recalculateVisibility(), recalculateVisibilityNodeRec(), recalculateVisibilityVolumeRec(), and updateFilter().
|
mutableprivate |
Definition at line 90 of file FWGeometryTableManager.h.
Referenced by assertNodeFilterCache(), checkChildMatches(), loadGeometry(), and updateFilter().