#include <Fireworks/Core/interface/FWOverlapTableManager.h>
Classes | |
class | QuadId |
Public Types | |
enum | OverlapBits { kVisMarker = BIT(5), kOverlap = BIT(6), kOverlapChild = BIT(7) } |
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 | |
FWTableCellRendererBase * | cellRenderer (int iSortedRowNumber, int iCol) const override |
FWOverlapTableManager (FWOverlapTableView *) | |
void | getOverlapTitles (int, TString &) const |
std::vector< std::string > | getTitles () const override |
returns the title names for each column More... | |
void | importOverlaps (std::string path, double precision) |
int | numberOfColumns () const override |
Number of columns in the table. More... | |
void | printOverlaps (int) const |
void | recalculateVisibility () override |
virtual void | recalculateVisibilityNodeRec (int) |
void | setDaughtersSelfVisibility (int i, bool v) override |
~FWOverlapTableManager () override | |
Public Member Functions inherited from FWGeometryTableManagerBase | |
virtual void | applyColorTranspToDaughters (int selectedIdx, bool recurse) |
void | applyTransparencyFromEditor () |
void | cancelEditor (bool) |
bool | cellDataIsSortable () const override |
virtual const char * | cellName (const NodeInfo &) const |
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 () |
virtual bool | getVisibility (const NodeInfo &nodeInfo) const |
virtual bool | getVisibilityChld (const NodeInfo &nodeInfo) const |
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) |
virtual void | setVisibility (NodeInfo &, bool) |
virtual void | setVisibilityChld (NodeInfo &, bool) |
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 | |
bool | nodeIsParent (const NodeInfo &) const override |
Private Member Functions | |
void | addOverlapEntry (TGeoOverlap *, int, int, TGeoHMatrix *) |
FWOverlapTableManager (const FWOverlapTableManager &)=delete | |
const FWOverlapTableManager & | operator= (const FWOverlapTableManager &)=delete |
Private Attributes | |
FWOverlapTableView * | m_browser |
std::multimap< int, int > | m_mapNodeOverlaps |
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 33 of file FWOverlapTableManager.h.
FWOverlapTableManager::FWOverlapTableManager | ( | FWOverlapTableView * | v | ) |
Definition at line 40 of file FWOverlapTableManager.cc.
Referenced by numberOfColumns().
|
override |
Definition at line 46 of file FWOverlapTableManager.cc.
|
privatedelete |
|
private |
Definition at line 212 of file FWOverlapTableManager.cc.
References Abs(), PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, fwLog, FWGeometryTableViewBase::getMarker(), FWGeometryTableManagerBase::getNNodesTotal(), FWGeometryTableViewBase::getTopNodeIdx(), mps_fire::i, fwlog::kInfo, kOverlap, kOverlapChild, FWGeometryTableManagerBase::kVisNodeChld, FWGeometryTableManagerBase::kVisNodeSelf, m_browser, FWGeometryTableManagerBase::m_entries, m_mapNodeOverlaps, FWOverlapTableManager::QuadId::m_nodes, and gen::n.
Referenced by importOverlaps(), 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 411 of file FWOverlapTableManager.cc.
References MessageLogger_cfi::cerr, data, FWGeometryTableViewManager::getGeoMangeur(), FWGeometryTableViewBase::getTopNodeIdx(), FWTextTreeCellRenderer::iconWidth(), FWGeometryTableManagerBase::kExpanded, FWGeometryTableManagerBase::kHighlighted, kOverlap, FWGeometryTableManagerBase::kSelected, FWGeometryTableManagerBase::kVisNodeChld, FWGeometryTableManagerBase::kVisNodeSelf, hcalDigis_cfi::level, FWOverlapTableView::listAllNodes(), m_browser, FWGeometryTableManagerBase::NodeInfo::m_color, FWGeometryTableManagerBase::m_colorBoxRenderer, FWGeometryTableManagerBase::m_editTransparencyIdx, FWGeometryTableManagerBase::m_entries, FWGeometryTableManagerBase::m_highlightContext, FWGeometryTableManagerBase::NodeInfo::m_level, FWGeometryTableManagerBase::m_levelOffset, m_mapNodeOverlaps, FWGeometryTableManagerBase::NodeInfo::m_node, FWGeometryTableManagerBase::m_renderer, FWGeometryTableManagerBase::m_row_to_index, FWGeometryTableManagerBase::NodeInfo::m_transparency, FWGeometryTableManagerBase::NodeInfo::name(), Vispa.Plugins.EdmBrowser.EdmDataAccessor::ne(), nodeIsParent(), FWTextTableCellRenderer::setData(), FWGeometryTableManagerBase::ColorBoxRenderer::setData(), FWTextTreeCellRenderer::setIndentation(), FWTextTreeCellRenderer::setIsOpen(), FWTextTreeCellRenderer::setIsParent(), FWTextTreeCellRenderer::showEditor(), AlCaHLTBitMon_QueryRunRegistry::string, FWGeometryTableManagerBase::NodeInfo::testBit(), and x.
Referenced by numberOfColumns().
void FWOverlapTableManager::getOverlapTitles | ( | int | idx, |
TString & | txt | ||
) | const |
Definition at line 369 of file FWOverlapTableManager.cc.
References FWGeometryTableViewManager::getGeoMangeur(), and m_mapNodeOverlaps.
Referenced by numberOfColumns().
|
overridevirtual |
returns the title names for each column
Reimplemented from FWGeometryTableManagerBase.
Definition at line 52 of file FWOverlapTableManager.cc.
References numberOfColumns().
Referenced by numberOfColumns().
void FWOverlapTableManager::importOverlaps | ( | std::string | path, |
double | precision | ||
) |
Definition at line 71 of file FWOverlapTableManager.cc.
References addOverlapEntry(), relativeConstraints::geom, FWGeometryTableViewManager::getGeoMangeur(), FWGeometryTableViewBase::getMarker(), FWGeometryTableViewBase::getTopNodeIdx(), mps_fire::i, kOverlap, kOverlapChild, kVisMarker, FWGeometryTableManagerBase::kVisNodeChld, FWGeometryTableManagerBase::kVisNodeSelf, m_browser, FWGeometryTableManagerBase::NodeInfo::m_color, FWGeometryTableManagerBase::m_entries, FWGeometryTableManagerBase::NodeInfo::m_level, m_mapNodeOverlaps, FWGeometryTableManagerBase::NodeInfo::m_node, FWGeometryTableManagerBase::NodeInfo::m_parent, FWGeometryTableManagerBase::NodeInfo::m_transparency, GetRecoTauVFromDQM_MC_cff::obj, analyzePatCleaning_cfg::overlaps, and FWGeometryTableManagerBase::NodeInfo::resetBit().
Referenced by FWOverlapTableView::recalculate().
|
overrideprotectedvirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 352 of file FWOverlapTableManager.cc.
References kOverlapChild, FWOverlapTableView::listAllNodes(), m_browser, 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 64 of file FWOverlapTableManager.h.
References addOverlapEntry(), cellRenderer(), FWOverlapTableManager(), getOverlapTitles(), getTitles(), mps_fire::i, nodeIsParent(), operator=(), printOverlaps(), setDaughtersSelfVisibility(), and findQualityFiles::v.
Referenced by getTitles().
|
privatedelete |
Referenced by numberOfColumns().
void FWOverlapTableManager::printOverlaps | ( | int | idx | ) | const |
Definition at line 357 of file FWOverlapTableManager.cc.
References FWGeometryTableViewManager::getGeoMangeur(), and m_mapNodeOverlaps.
Referenced by FWOverlapTableView::chosenItem(), and numberOfColumns().
|
overridevirtual |
Implements FWGeometryTableManagerBase.
Definition at line 317 of file FWOverlapTableManager.cc.
References FWGeometryTableViewBase::getTopNodeIdx(), mps_fire::i, FWGeometryTableManagerBase::kExpanded, m_browser, FWGeometryTableManagerBase::m_entries, FWGeometryTableManagerBase::m_row_to_index, and recalculateVisibilityNodeRec().
|
virtual |
Definition at line 328 of file FWOverlapTableManager.cc.
References data, FWGeometryTableManagerBase::getNNodesTotal(), training_settings::idx, FWGeometryTableManagerBase::kExpanded, kOverlap, kOverlapChild, FWOverlapTableView::listAllNodes(), m_browser, FWGeometryTableManagerBase::m_entries, FWGeometryTableManagerBase::m_row_to_index, gen::n, FWGeometryTableManagerBase::NodeInfo::testBit(), and FWGeometryTableManagerBase::NodeInfo::testBitAny().
Referenced by recalculateVisibility().
|
overridevirtual |
Reimplemented from FWGeometryTableManagerBase.
Definition at line 534 of file FWOverlapTableManager.cc.
References data, FWGeometryTableManagerBase::getNNodesTotal(), training_settings::idx, FWGeometryTableManagerBase::kVisNodeChld, FWGeometryTableManagerBase::kVisNodeSelf, FWGeometryTableManagerBase::m_entries, gen::n, and FWGeometryTableManagerBase::NodeInfo::setBitVal().
Referenced by numberOfColumns().
|
private |
Definition at line 83 of file FWOverlapTableManager.h.
Referenced by addOverlapEntry(), cellRenderer(), importOverlaps(), nodeIsParent(), recalculateVisibility(), and recalculateVisibilityNodeRec().
|
private |
Definition at line 85 of file FWOverlapTableManager.h.
Referenced by addOverlapEntry(), cellRenderer(), getOverlapTitles(), importOverlaps(), and printOverlaps().