#include <Fireworks/Core/interface/FWGeometryTableManagerBase.h>
Classes | |
class | ColorBoxRenderer |
struct | NodeInfo |
Public Types | |
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 | |
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 () |
std::vector< std::string > | getTitles () const override |
returns the title names for each column More... | |
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 &) |
virtual void | recalculateVisibility ()=0 |
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) |
virtual void | setDaughtersSelfVisibility (int selectedIdx, bool v) |
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... | |
virtual FWTableCellRendererBase * | cellRenderer (int iSortedRowNumber, int iCol) const =0 |
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 int | numberOfColumns () const =0 |
Number of columns in the table. 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 | |
Static Public Member Functions | |
static void | getNNodesTotal (TGeoNode *geoNode, int &off) |
Public Attributes | |
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 |
Protected Member Functions | |
virtual bool | nodeIsParent (const NodeInfo &) const |
Friends | |
class | FWGeometryTableViewBase |
Description: [one line class summary]
Usage: <usage>
Definition at line 36 of file FWGeometryTableManagerBase.h.
typedef Entries_v::iterator FWGeometryTableManagerBase::Entries_i |
Definition at line 88 of file FWGeometryTableManagerBase.h.
typedef std::vector<NodeInfo> FWGeometryTableManagerBase::Entries_v |
Definition at line 87 of file FWGeometryTableManagerBase.h.
Enumerator | |
---|---|
kExpanded | |
kVisNodeSelf | |
kVisNodeChld | |
kHighlighted | |
kSelected |
Definition at line 42 of file FWGeometryTableManagerBase.h.
FWGeometryTableManagerBase::FWGeometryTableManagerBase | ( | ) |
Definition at line 86 of file FWGeometryTableManagerBase.cc.
References FWTextTableCellRenderer::height(), m_colorBoxRenderer, FWGeometryTableManagerBase::ColorBoxRenderer::m_height, m_highlightContext, m_renderer, FWGeometryTableManagerBase::ColorBoxRenderer::m_width, and FWTextTableCellRenderer::setHighlightContext().
|
override |
Definition at line 103 of file FWGeometryTableManagerBase.cc.
FWGeometryTableManagerBase::FWGeometryTableManagerBase | ( | const FWGeometryTableManagerBase & | ) |
|
virtual |
Definition at line 286 of file FWGeometryTableManagerBase.cc.
References data, getNNodesTotal(), heavyIonCSV_trainingSettings::idx, m_entries, FWGeometryTableManagerBase::NodeInfo::m_node, and create_idmaps::n.
Referenced by FWGeometryTableViewBase::chosenItem().
void FWGeometryTableManagerBase::applyTransparencyFromEditor | ( | ) |
Definition at line 223 of file FWGeometryTableManagerBase.cc.
References cancelEditor(), cppFunctionSkipper::exception, fwLog, fwlog::kError, m_editor, m_editTransparencyIdx, m_entries, and submitPVValidationJobs::t.
Referenced by FWGeometryTableViewBase::transparencyChanged().
void FWGeometryTableManagerBase::cancelEditor | ( | bool | redraw | ) |
Definition at line 241 of file FWGeometryTableManagerBase.cc.
References m_editor, m_editTransparencyIdx, and redrawTable().
Referenced by applyTransparencyFromEditor(), and FWGeometryTableViewBase::cellClicked().
|
inlineoverridevirtual |
Reimplemented from FWTableManagerBase.
Definition at line 186 of file FWGeometryTableManagerBase.h.
|
inlinevirtual |
Reimplemented in FWGeometryTableManager.
Definition at line 119 of file FWGeometryTableManagerBase.h.
bool FWGeometryTableManagerBase::firstColumnClicked | ( | int | row, |
int | xPos | ||
) |
Definition at line 134 of file FWGeometryTableManagerBase.cc.
References FWTableManagerBase::dataChanged(), heavyIonCSV_trainingSettings::idx, kExpanded, m_entries, m_levelOffset, recalculateVisibility(), rowToIndex(), and FWTableManagerBase::visualPropertiesChanged().
Referenced by FWGeometryTableViewBase::cellClicked().
|
inline |
Definition at line 151 of file FWGeometryTableManagerBase.h.
References m_levelOffset.
Referenced by FWEveDetectorGeo::Paint().
|
inlinestatic |
Definition at line 204 of file FWGeometryTableManagerBase.h.
References mps_fire::i.
Referenced by FWOverlapTableManager::addOverlapEntry(), applyColorTranspToDaughters(), FWGeometryTableManager::importChildren(), FWGeometryTableManager::loadGeometry(), FWEveOverlap::paintChildNodesRecurse(), FWEveDetectorGeo::paintChildNodesRecurse(), FWGeometryTableManager::recalculateVisibilityNodeRec(), FWOverlapTableManager::recalculateVisibilityNodeRec(), FWGeometryTableManager::recalculateVisibilityVolumeRec(), FWGeometryTableManager::setDaughtersSelfVisibility(), FWOverlapTableManager::setDaughtersSelfVisibility(), and setDaughtersSelfVisibility().
void FWGeometryTableManagerBase::getNodeMatrix | ( | const NodeInfo & | nodeInfo, |
TGeoHMatrix & | mat | ||
) | const |
Definition at line 160 of file FWGeometryTableManagerBase.cc.
References data, and m_entries.
Referenced by FWEveDetectorGeo::Paint(), and FWEveOverlap::Paint().
void FWGeometryTableManagerBase::getNodePath | ( | int | idx, |
std::string & | path | ||
) | const |
Definition at line 191 of file FWGeometryTableManagerBase.cc.
References mps_fire::i, heavyIonCSV_trainingSettings::idx, m_entries, mergeVDriftHistosByStation::name, and EnsembleCalibrationLA_cfg::path.
Referenced by FWGeometryTableViewBase::cdNode(), FWGeometryTableViewBase::cdUp(), and FWGeometryTableViewBase::chosenItem().
NodeInfo* FWGeometryTableManagerBase::getSelected | ( | ) |
|
overridevirtual |
returns the title names for each column
Implements FWTableManagerBase.
Reimplemented in FWOverlapTableManager.
Definition at line 109 of file FWGeometryTableManagerBase.cc.
References FWTableManagerBase::numberOfColumns().
|
virtual |
Reimplemented in FWGeometryTableManager.
Definition at line 278 of file FWGeometryTableManagerBase.cc.
References data, and kVisNodeSelf.
|
virtual |
Reimplemented in FWGeometryTableManager.
Definition at line 282 of file FWGeometryTableManagerBase.cc.
References data, and kVisNodeChld.
|
inlineoverridevirtual |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'.
Implements FWTableManagerBase.
Definition at line 136 of file FWGeometryTableManagerBase.h.
bool FWGeometryTableManagerBase::isNodeRendered | ( | int | idx, |
int | top_node_idx | ||
) | const |
Definition at line 307 of file FWGeometryTableManagerBase.cc.
References data, heavyIonCSV_trainingSettings::idx, kVisNodeChld, kVisNodeSelf, and m_entries.
Referenced by FWOverlapTableView::refreshTable3D().
void FWGeometryTableManagerBase::loadGeometry | ( | TGeoNode * | , |
TObjArray * | |||
) |
bool FWGeometryTableManagerBase::nodeImported | ( | int | idx | ) | const |
|
inlineprotectedvirtual |
Reimplemented in FWGeometryTableManager, and FWOverlapTableManager.
Definition at line 112 of file FWGeometryTableManagerBase.h.
|
overridevirtual |
Number of rows in the table.
Implements FWTableManagerBase.
Definition at line 107 of file FWGeometryTableManagerBase.cc.
References m_row_to_index.
const FWGeometryTableManagerBase& FWGeometryTableManagerBase::operator= | ( | const FWGeometryTableManagerBase & | ) |
|
pure virtual |
Implemented in FWOverlapTableManager, and FWGeometryTableManager.
Referenced by firstColumnClicked(), and redrawTable().
void FWGeometryTableManagerBase::redrawTable | ( | bool | setExpand = false | ) |
Definition at line 176 of file FWGeometryTableManagerBase.cc.
References FWTableManagerBase::dataChanged(), m_entries, recalculateVisibility(), and FWTableManagerBase::visualPropertiesChanged().
Referenced by FWGeometryTableView::autoExpandCallback(), cancelEditor(), FWGeometryTableViewBase::refreshTable3D(), FWGeometryTableViewBase::setColumnSelected(), and showEditor().
|
inline |
Definition at line 143 of file FWGeometryTableManagerBase.h.
References m_entries.
Referenced by FWGeometryTableViewBase::cdTop(), FWGeometryTableViewBase::cdUp(), FWGeometryTableViewBase::cellClicked(), FWGeometryTableViewBase::checkExpandLevel(), FWGeoMaterialValidator::fillOptions(), FWGeoTopNode::getFirstSelectedTableIndex(), FWEveOverlap::GetHighlightTooltip(), FWEveDetectorGeo::GetHighlightTooltip(), FWGeometryTableViewBase::nodeColorChangeRequested(), FWEveDetectorGeo::Paint(), FWEveOverlap::Paint(), FWGeoTopNode::paintShape(), FWGeometryTableViewBase::reloadColors(), FWGeometryTableView::setPath(), FWGeoTopNode::SetStateOf(), FWGeometryTableViewBase::setTopNodePathFromConfig(), FWGeoTopNode::UnHighlighted(), FWGeoTopNode::UnSelected(), FWGeometryTableView::updateFilter(), and FWGeometryTableView::updateVisibilityTopNode().
|
inline |
Definition at line 144 of file FWGeometryTableManagerBase.h.
References mps_fire::i, and m_entries.
Referenced by FWGeometryTableViewBase::chosenItem(), and FWGeometryTableViewBase::setColumnSelected().
|
inline |
Definition at line 133 of file FWGeometryTableManagerBase.h.
References m_row_to_index.
Referenced by FWGeometryTableViewBase::cellClicked(), and firstColumnClicked().
void FWGeometryTableManagerBase::setBackgroundToWhite | ( | bool | iToWhite | ) |
Definition at line 124 of file FWGeometryTableManagerBase.cc.
References m_renderer, FWTextTreeCellRenderer::setBlackIcon(), and FWTextTableCellRenderer::setGraphicsContext().
Referenced by FWGeometryTableViewBase::setBackgroundColor().
void FWGeometryTableManagerBase::setCellValueEditor | ( | TGTextEntry * | editor | ) |
Definition at line 209 of file FWGeometryTableManagerBase.cc.
References m_editor, m_renderer, and FWTextTreeCellRenderer::setCellEditor().
Referenced by FWGeometryTableViewBase::postConst().
void FWGeometryTableManagerBase::setDaughtersSelfVisibility | ( | bool | ) |
Referenced by FWGeometryTableViewBase::chosenItem().
|
virtual |
Reimplemented in FWOverlapTableManager, and FWGeometryTableManager.
Definition at line 261 of file FWGeometryTableManagerBase.cc.
References data, getNNodesTotal(), heavyIonCSV_trainingSettings::idx, m_entries, create_idmaps::n, setVisibility(), setVisibilityChld(), and findQualityFiles::v.
|
inline |
Definition at line 152 of file FWGeometryTableManagerBase.h.
References m_levelOffset, and x.
Referenced by FWOverlapTableView::recalculate(), FWGeometryTableView::setPath(), and FWGeometryTableViewBase::setPath().
|
virtual |
Reimplemented in FWGeometryTableManager.
Definition at line 253 of file FWGeometryTableManagerBase.cc.
References data, kVisNodeSelf, and x.
Referenced by FWGeometryTableViewBase::cellClicked(), FWGeometryTableViewBase::chosenItem(), and setDaughtersSelfVisibility().
|
virtual |
Reimplemented in FWGeometryTableManager.
Definition at line 257 of file FWGeometryTableManagerBase.cc.
References data, kVisNodeChld, and x.
Referenced by FWGeometryTableViewBase::cellClicked(), and setDaughtersSelfVisibility().
void FWGeometryTableManagerBase::showEditor | ( | int | row | ) |
Definition at line 214 of file FWGeometryTableManagerBase.cc.
References m_editor, m_editTransparencyIdx, m_entries, and redrawTable().
Referenced by FWGeometryTableViewBase::cellClicked().
|
virtual |
Definition at line 122 of file FWGeometryTableManagerBase.cc.
|
overridevirtual |
when passed the index to the sorted order of the rows it returns the original row number from the underlying data
Implements FWTableManagerBase.
Definition at line 105 of file FWGeometryTableManagerBase.cc.
|
friend |
Definition at line 37 of file FWGeometryTableManagerBase.h.
|
mutable |
Definition at line 192 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), and FWGeometryTableManagerBase().
TGTextEntry* FWGeometryTableManagerBase::m_editor |
Definition at line 200 of file FWGeometryTableManagerBase.h.
Referenced by applyTransparencyFromEditor(), cancelEditor(), setCellValueEditor(), and showEditor().
int FWGeometryTableManagerBase::m_editTransparencyIdx |
Definition at line 201 of file FWGeometryTableManagerBase.h.
Referenced by applyTransparencyFromEditor(), cancelEditor(), FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), and showEditor().
Entries_v FWGeometryTableManagerBase::m_entries |
Definition at line 196 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::addOverlapEntry(), applyColorTranspToDaughters(), applyTransparencyFromEditor(), FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), FWGeometryTableManager::checkHierarchy(), FWGeometryTableManager::checkRegionOfInterest(), firstColumnClicked(), getNodeMatrix(), getNodePath(), FWGeometryTableManager::importChildren(), FWOverlapTableManager::importOverlaps(), isNodeRendered(), FWGeometryTableManager::loadGeometry(), FWGeometryTableManager::recalculateVisibility(), FWOverlapTableManager::recalculateVisibility(), FWGeometryTableManager::recalculateVisibilityNodeRec(), FWOverlapTableManager::recalculateVisibilityNodeRec(), FWGeometryTableManager::recalculateVisibilityVolumeRec(), redrawTable(), refEntries(), refEntry(), FWGeometryTableManager::resetRegionOfInterest(), FWGeometryTableManager::setDaughtersSelfVisibility(), FWOverlapTableManager::setDaughtersSelfVisibility(), setDaughtersSelfVisibility(), showEditor(), and FWGeometryTableManager::updateFilter().
|
mutable |
Definition at line 190 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), and FWGeometryTableManagerBase().
int FWGeometryTableManagerBase::m_highlightIdx |
Definition at line 90 of file FWGeometryTableManagerBase.h.
int FWGeometryTableManagerBase::m_levelOffset |
Definition at line 198 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), firstColumnClicked(), getLevelOffset(), FWGeometryTableManager::loadGeometry(), and setLevelOffset().
|
mutable |
Definition at line 191 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), FWGeometryTableManagerBase(), setBackgroundToWhite(), and setCellValueEditor().
std::vector<int> FWGeometryTableManagerBase::m_row_to_index |
Definition at line 194 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), FWGeometryTableManager::loadGeometry(), numberOfRows(), FWGeometryTableManager::recalculateVisibility(), FWOverlapTableManager::recalculateVisibility(), FWGeometryTableManager::recalculateVisibilityNodeRec(), FWOverlapTableManager::recalculateVisibilityNodeRec(), FWGeometryTableManager::recalculateVisibilityVolumeRec(), and rowToIndex().