#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 *) | |
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... | |
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 Member Functions | |
FWGeometryTableManager (const FWGeometryTableManager &)=delete | |
const FWGeometryTableManager & | operator= (const FWGeometryTableManager &)=delete |
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 31 of file FWGeometryTableManager.h.
typedef Volumes_t::iterator FWGeometryTableManager::Volumes_i |
Definition at line 54 of file FWGeometryTableManager.h.
typedef std::unordered_map<TGeoVolume*, Match> FWGeometryTableManager::Volumes_t |
Definition at line 53 of file FWGeometryTableManager.h.
Enumerator | |
---|---|
kNameColumn | |
kColorColumn | |
kTranspColumn | |
kVisSelfColumn | |
kVisChildColumn | |
kMaterialColumn | |
kNumColumn |
Definition at line 34 of file FWGeometryTableManager.h.
Enumerator | |
---|---|
kMatches | |
kChildMatches | |
kFilterCached |
Definition at line 36 of file FWGeometryTableManager.h.
FWGeometryTableManager::FWGeometryTableManager | ( | FWGeometryTableView * | v | ) |
Definition at line 29 of file FWGeometryTableManager.cc.
Referenced by numberOfColumns().
|
override |
Definition at line 35 of file FWGeometryTableManager.cc.
|
privatedelete |
void FWGeometryTableManager::assertNodeFilterCache | ( | NodeInfo & | data | ) |
Definition at line 431 of file FWGeometryTableManager.cc.
References kChildMatches, FWGeometryTableManagerBase::kExpanded, kFilterCached, kMatches, FWGeometryTableManagerBase::NodeInfo::m_node, m_volumes, patRefSel_triggerMatching_cfi::matches, FWGeometryTableManagerBase::NodeInfo::setBit(), FWGeometryTableManagerBase::NodeInfo::setBitVal(), setVisibility(), setVisibilityChld(), and FWGeometryTableManagerBase::NodeInfo::testBit().
Referenced by recalculateVisibility(), recalculateVisibilityNodeRec(), recalculateVisibilityVolumeRec(), and updateFilter().
|
overrideprotectedvirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 38 of file FWGeometryTableManager.cc.
References FWGeometryTableView::getVolumeMode(), m_browser, and FWGeometryTableManagerBase::NodeInfo::m_node.
Referenced by cellRenderer(), and numberOfColumns().
|
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 48 of file FWGeometryTableManager.cc.
References cellName(), data, getVisibility(), getVisibilityChld(), FWTextTreeCellRenderer::iconWidth(), kColorColumn, FWGeometryTableManagerBase::kExpanded, FWGeometryTableManagerBase::kHighlighted, kMatches, kMaterialColumn, kNameColumn, FWGeometryTableManagerBase::kSelected, kTranspColumn, kVisChildColumn, kVisSelfColumn, hcalDigis_cfi::level, FWGeometryTableManagerBase::NodeInfo::m_color, FWGeometryTableManagerBase::m_colorBoxRenderer, FWGeometryTableManagerBase::m_editTransparencyIdx, FWGeometryTableManagerBase::m_entries, FWGeometryTableManagerBase::m_highlightContext, FWGeometryTableManagerBase::NodeInfo::m_level, FWGeometryTableManagerBase::m_levelOffset, FWGeometryTableManagerBase::NodeInfo::m_node, FWGeometryTableManagerBase::m_renderer, FWGeometryTableManagerBase::m_row_to_index, FWGeometryTableManagerBase::NodeInfo::m_transparency, nodeIsParent(), FWTextTableCellRenderer::setData(), FWGeometryTableManagerBase::ColorBoxRenderer::setData(), FWTextTreeCellRenderer::setIndentation(), FWTextTreeCellRenderer::setIsOpen(), FWTextTreeCellRenderer::setIsParent(), FWTextTreeCellRenderer::showEditor(), and FWGeometryTableManagerBase::NodeInfo::testBit().
Referenced by numberOfColumns().
void FWGeometryTableManager::checkChildMatches | ( | TGeoVolume * | v, |
std::vector< TGeoVolume * > & | pstack | ||
) |
Definition at line 186 of file FWGeometryTableManager.cc.
References mps_fire::i, FWGeometryTableManager::Match::m_childMatches, m_volumes, fetchall_from_DQM_v2::regexp, alignCSCRings::s, and w.
Referenced by updateFilter().
void FWGeometryTableManager::checkHierarchy | ( | ) |
Definition at line 162 of file FWGeometryTableManager.cc.
References edmIntegrityCheck::d, MillePedeFileConverter_cfg::e, mps_fire::i, FWGeometryTableManagerBase::m_entries, dataset::name, and convertSQLiteXML::ok.
void FWGeometryTableManager::checkRegionOfInterest | ( | double * | center, |
double | radius, | ||
long | algo | ||
) |
Definition at line 531 of file FWGeometryTableManager.cc.
References edmIntegrityCheck::d, delta, FWGeometryTableViewManager::getGeoMangeur(), mps_fire::i, FWGeometryTableView::kBBoxCenter, FWGeometryTableView::kBBoxSurface, FWGeometryTableManagerBase::kVisNodeChld, FWGeometryTableManagerBase::kVisNodeSelf, FWGeometryTableManagerBase::m_entries, alignCSCRings::r, TCMET_cfi::radius, and lumiQTWidget::t.
Referenced by FWGeometryTableView::checkRegionOfInterest(), and numberOfColumns().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 506 of file FWGeometryTableManager.cc.
References FWGeometryTableView::getVolumeMode(), FWGeometryTableManagerBase::kVisNodeSelf, m_browser, FWGeometryTableManagerBase::NodeInfo::m_node, and FWGeometryTableManagerBase::NodeInfo::testBit().
Referenced by cellRenderer().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 514 of file FWGeometryTableManager.cc.
References FWGeometryTableView::getVolumeMode(), FWGeometryTableManagerBase::kVisNodeChld, m_browser, FWGeometryTableManagerBase::NodeInfo::m_node, and FWGeometryTableManagerBase::NodeInfo::testBit().
Referenced by cellRenderer().
void FWGeometryTableManager::importChildren | ( | int | parent_idx | ) |
Definition at line 137 of file FWGeometryTableManager.cc.
References data, FWGeometryTableView::getAutoExpand(), FWGeometryTableManagerBase::getNNodesTotal(), FWGeometryTableManagerBase::kExpanded, m_browser, FWGeometryTableManagerBase::NodeInfo::m_color, FWGeometryTableManagerBase::m_entries, FWGeometryTableManagerBase::NodeInfo::m_level, FWGeometryTableManagerBase::NodeInfo::m_node, FWGeometryTableManagerBase::NodeInfo::m_parent, FWGeometryTableManagerBase::NodeInfo::m_transparency, gen::n, class-composition::parent, and FWGeometryTableManagerBase::NodeInfo::setBit().
Referenced by loadGeometry().
void FWGeometryTableManager::loadGeometry | ( | TGeoNode * | iGeoTopNode, |
TObjArray * | iVolumes | ||
) |
Definition at line 268 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 524 of file FWGeometryTableManager.cc.
References kChildMatches, m_filterOff, FWGeometryTableManagerBase::NodeInfo::m_node, and FWGeometryTableManagerBase::NodeInfo::testBit().
Referenced by cellRenderer(), and numberOfColumns().
|
inlineoverridevirtual |
Number of columns in the table.
Implements FWTableManagerBase.
Definition at line 81 of file FWGeometryTableManager.h.
References patPFMETCorrections_cff::algo, cellName(), cellRenderer(), checkRegionOfInterest(), data, FWGeometryTableManager(), kNumColumn, nodeIsParent(), operator=(), TCMET_cfi::radius, and resetRegionOfInterest().
|
privatedelete |
Referenced by numberOfColumns().
void FWGeometryTableManager::printMaterials | ( | ) |
|
overridevirtual |
Implements FWGeometryTableManagerBase.
Definition at line 327 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, Max(), recalculateVisibilityNodeRec(), recalculateVisibilityVolumeRec(), and FWGeometryTableManagerBase::NodeInfo::testBit().
void FWGeometryTableManager::recalculateVisibilityNodeRec | ( | int | pIdx | ) |
Definition at line 403 of file FWGeometryTableManager.cc.
References assertNodeFilterCache(), data, FWGeometryTableManagerBase::getNNodesTotal(), training_settings::idx, kChildMatches, FWGeometryTableManagerBase::kExpanded, kMatches, FWGeometryTableManagerBase::m_entries, m_filterOff, FWGeometryTableManagerBase::m_row_to_index, gen::n, FWGeometryTableManagerBase::NodeInfo::testBit(), and FWGeometryTableManagerBase::NodeInfo::testBitAny().
Referenced by recalculateVisibility().
void FWGeometryTableManager::recalculateVisibilityVolumeRec | ( | int | pIdx | ) |
Definition at line 353 of file FWGeometryTableManager.cc.
References assertNodeFilterCache(), data, FWGeometryTableManagerBase::getNNodesTotal(), training_settings::idx, kChildMatches, FWGeometryTableManagerBase::kExpanded, kMatches, FWGeometryTableManagerBase::m_entries, m_filterOff, FWGeometryTableManagerBase::NodeInfo::m_node, FWGeometryTableManagerBase::m_row_to_index, gen::n, FWGeometryTableManagerBase::NodeInfo::testBit(), FWGeometryTableManagerBase::NodeInfo::testBitAny(), and pfDeepCMVAJetTags_cfi::toAdd.
Referenced by recalculateVisibility().
void FWGeometryTableManager::resetRegionOfInterest | ( | ) |
Definition at line 610 of file FWGeometryTableManager.cc.
References FWGeometryTableManagerBase::kVisNodeChld, FWGeometryTableManagerBase::kVisNodeSelf, and FWGeometryTableManagerBase::m_entries.
Referenced by FWGeometryTableView::checkRegionOfInterest(), and numberOfColumns().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 487 of file FWGeometryTableManager.cc.
References data, FWGeometryTableManagerBase::getNNodesTotal(), training_settings::idx, FWGeometryTableManagerBase::m_entries, gen::n, setVisibility(), and setVisibilityChld().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 452 of file FWGeometryTableManager.cc.
References FWGeometryTableViewManager::getGeoMangeur(), FWGeometryTableView::getVolumeMode(), FWGeometryTableManagerBase::kVisNodeSelf, m_browser, FWGeometryTableManagerBase::NodeInfo::m_node, FWGeometryTableManagerBase::NodeInfo::setBitVal(), and x.
Referenced by assertNodeFilterCache(), setDaughtersSelfVisibility(), and FWGeometryTableView::updateFilter().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 470 of file FWGeometryTableManager.cc.
References FWGeometryTableViewManager::getGeoMangeur(), FWGeometryTableView::getVolumeMode(), FWGeometryTableManagerBase::kVisNodeChld, m_browser, FWGeometryTableManagerBase::NodeInfo::m_node, FWGeometryTableManagerBase::NodeInfo::setBitVal(), and x.
Referenced by assertNodeFilterCache(), setDaughtersSelfVisibility(), and FWGeometryTableView::updateFilter().
void FWGeometryTableManager::updateFilter | ( | int | iType | ) |
Definition at line 216 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 97 of file FWGeometryTableManager.h.
Referenced by cellName(), getVisibility(), getVisibilityChld(), importChildren(), loadGeometry(), recalculateVisibility(), setVisibility(), setVisibilityChld(), and updateFilter().
|
private |
Definition at line 101 of file FWGeometryTableManager.h.
Referenced by loadGeometry(), nodeIsParent(), recalculateVisibility(), recalculateVisibilityNodeRec(), recalculateVisibilityVolumeRec(), and updateFilter().
|
mutableprivate |
Definition at line 99 of file FWGeometryTableManager.h.
Referenced by assertNodeFilterCache(), checkChildMatches(), loadGeometry(), and updateFilter().