#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) |
virtual bool | cellDataIsSortable () const |
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 std::vector< std::string > | getTitles () const |
returns the title names for each column More... | |
virtual bool | getVisibility (const NodeInfo &nodeInfo) const |
virtual bool | getVisibilityChld (const NodeInfo &nodeInfo) const |
virtual void | implSort (int, bool) |
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 |
virtual int | numberOfRows () const |
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 |
virtual int | unsortedRowNumber (int unsorted) const |
when passed the index to the sorted order of the rows it returns the original row number from the underlying data More... | |
virtual | ~FWGeometryTableManagerBase () |
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 |
ClassDef (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... | |
virtual | ~FWTableManagerBase () |
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 93 of file FWGeometryTableManagerBase.h.
typedef std::vector<NodeInfo> FWGeometryTableManagerBase::Entries_v |
Definition at line 92 of file FWGeometryTableManagerBase.h.
Enumerator | |
---|---|
kExpanded | |
kVisNodeSelf | |
kVisNodeChld | |
kHighlighted | |
kSelected |
Definition at line 43 of file FWGeometryTableManagerBase.h.
FWGeometryTableManagerBase::FWGeometryTableManagerBase | ( | ) |
Definition at line 102 of file FWGeometryTableManagerBase.cc.
References FWTextTableCellRenderer::height(), m_colorBoxRenderer, FWGeometryTableManagerBase::ColorBoxRenderer::m_height, m_highlightContext, m_renderer, FWGeometryTableManagerBase::ColorBoxRenderer::m_width, and FWTextTableCellRenderer::setHighlightContext().
|
virtual |
Definition at line 124 of file FWGeometryTableManagerBase.cc.
FWGeometryTableManagerBase::FWGeometryTableManagerBase | ( | const FWGeometryTableManagerBase & | ) |
|
virtual |
Definition at line 362 of file FWGeometryTableManagerBase.cc.
References FWGeometryTableManagerBase::NodeInfo::copyColorTransparency(), data, getNNodesTotal(), customizeTrackingMonitorSeedNumber::idx, m_entries, FWGeometryTableManagerBase::NodeInfo::m_node, and gen::n.
Referenced by FWGeometryTableViewBase::chosenItem().
void FWGeometryTableManagerBase::applyTransparencyFromEditor | ( | ) |
Definition at line 277 of file FWGeometryTableManagerBase.cc.
References cancelEditor(), fwLog, fwlog::kError, m_editor, m_editTransparencyIdx, m_entries, and edmStreamStallGrapher::t.
Referenced by FWGeometryTableViewBase::transparencyChanged().
void FWGeometryTableManagerBase::cancelEditor | ( | bool | redraw | ) |
Definition at line 301 of file FWGeometryTableManagerBase.cc.
References m_editor, m_editTransparencyIdx, and redrawTable().
Referenced by applyTransparencyFromEditor(), and FWGeometryTableViewBase::cellClicked().
|
inlinevirtual |
Reimplemented from FWTableManagerBase.
Definition at line 195 of file FWGeometryTableManagerBase.h.
References edm::false.
|
inlinevirtual |
Reimplemented in FWGeometryTableManager.
Definition at line 125 of file FWGeometryTableManagerBase.h.
bool FWGeometryTableManagerBase::firstColumnClicked | ( | int | row, |
int | xPos | ||
) |
Definition at line 171 of file FWGeometryTableManagerBase.cc.
References FWTableManagerBase::dataChanged(), customizeTrackingMonitorSeedNumber::idx, kExpanded, m_entries, m_levelOffset, recalculateVisibility(), rowToIndex(), and FWTableManagerBase::visualPropertiesChanged().
Referenced by FWGeometryTableViewBase::cellClicked().
|
inline |
Definition at line 157 of file FWGeometryTableManagerBase.h.
References m_levelOffset.
Referenced by FWEveDetectorGeo::Paint().
|
inlinestatic |
Definition at line 216 of file FWGeometryTableManagerBase.h.
References 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 202 of file FWGeometryTableManagerBase.cc.
References m_entries, FWGeometryTableManagerBase::NodeInfo::m_node, and FWGeometryTableManagerBase::NodeInfo::m_parent.
Referenced by FWEveDetectorGeo::Paint(), and FWEveOverlap::Paint().
void FWGeometryTableManagerBase::getNodePath | ( | int | idx, |
std::string & | path | ||
) | const |
Definition at line 237 of file FWGeometryTableManagerBase.cc.
References i, customizeTrackingMonitorSeedNumber::idx, m_entries, and mergeVDriftHistosByStation::name.
Referenced by FWGeometryTableViewBase::cdNode(), FWGeometryTableViewBase::cdUp(), and FWGeometryTableViewBase::chosenItem().
NodeInfo* FWGeometryTableManagerBase::getSelected | ( | ) |
|
virtual |
returns the title names for each column
Implements FWTableManagerBase.
Reimplemented in FWOverlapTableManager.
Definition at line 140 of file FWGeometryTableManagerBase.cc.
References FWTableManagerBase::numberOfColumns().
|
virtual |
Reimplemented in FWGeometryTableManager.
Definition at line 348 of file FWGeometryTableManagerBase.cc.
References kVisNodeSelf, and FWGeometryTableManagerBase::NodeInfo::testBit().
|
virtual |
Reimplemented in FWGeometryTableManager.
Definition at line 355 of file FWGeometryTableManagerBase.cc.
References kVisNodeChld, and FWGeometryTableManagerBase::NodeInfo::testBit().
|
inlinevirtual |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'.
Implements FWTableManagerBase.
Definition at line 142 of file FWGeometryTableManagerBase.h.
bool FWGeometryTableManagerBase::isNodeRendered | ( | int | idx, |
int | top_node_idx | ||
) | const |
Definition at line 386 of file FWGeometryTableManagerBase.cc.
References data, customizeTrackingMonitorSeedNumber::idx, kVisNodeChld, kVisNodeSelf, m_entries, FWGeometryTableManagerBase::NodeInfo::m_parent, and FWGeometryTableManagerBase::NodeInfo::testBit().
Referenced by FWOverlapTableView::refreshTable3D().
void FWGeometryTableManagerBase::loadGeometry | ( | TGeoNode * | , |
TObjArray * | |||
) |
bool FWGeometryTableManagerBase::nodeImported | ( | int | idx | ) | const |
|
inlineprotectedvirtual |
Reimplemented in FWGeometryTableManager, and FWOverlapTableManager.
Definition at line 118 of file FWGeometryTableManagerBase.h.
|
virtual |
Number of rows in the table.
Implements FWTableManagerBase.
Definition at line 134 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 220 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 149 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 150 of file FWGeometryTableManagerBase.h.
Referenced by FWGeometryTableViewBase::chosenItem(), and FWGeometryTableViewBase::setColumnSelected().
|
inline |
Definition at line 139 of file FWGeometryTableManagerBase.h.
References m_row_to_index.
Referenced by FWGeometryTableViewBase::cellClicked(), and firstColumnClicked().
void FWGeometryTableManagerBase::setBackgroundToWhite | ( | bool | iToWhite | ) |
Definition at line 160 of file FWGeometryTableManagerBase.cc.
References m_renderer, FWTextTreeCellRenderer::setBlackIcon(), and FWTextTableCellRenderer::setGraphicsContext().
Referenced by FWGeometryTableViewBase::setBackgroundColor().
void FWGeometryTableManagerBase::setCellValueEditor | ( | TGTextEntry * | editor | ) |
Definition at line 259 of file FWGeometryTableManagerBase.cc.
References idDealer::editor, 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 329 of file FWGeometryTableManagerBase.cc.
References data, getNNodesTotal(), customizeTrackingMonitorSeedNumber::idx, m_entries, gen::n, setVisibility(), and setVisibilityChld().
|
inline |
Definition at line 158 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 315 of file FWGeometryTableManagerBase.cc.
References kVisNodeSelf, and FWGeometryTableManagerBase::NodeInfo::setBitVal().
Referenced by FWGeometryTableViewBase::cellClicked(), FWGeometryTableViewBase::chosenItem(), and setDaughtersSelfVisibility().
|
virtual |
Reimplemented in FWGeometryTableManager.
Definition at line 322 of file FWGeometryTableManagerBase.cc.
References kVisNodeChld, and FWGeometryTableManagerBase::NodeInfo::setBitVal().
Referenced by FWGeometryTableViewBase::cellClicked(), and setDaughtersSelfVisibility().
void FWGeometryTableManagerBase::showEditor | ( | int | row | ) |
Definition at line 265 of file FWGeometryTableManagerBase.cc.
References m_editor, m_editTransparencyIdx, m_entries, and redrawTable().
Referenced by FWGeometryTableViewBase::cellClicked().
|
virtual |
Definition at line 154 of file FWGeometryTableManagerBase.cc.
Referenced by cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), Vispa.Views.LineDecayView.LineDecayContainer::autolayout(), Vispa.Views.LineDecayView.LineDecayContainer::autolayoutThreadFinished(), Vispa.Views.LineDecayView.LineDecayContainer::childFinishedAutolayouting(), and Vispa.Gui.PortWidget.PortWidget::name().
|
virtual |
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 129 of file FWGeometryTableManagerBase.cc.
|
friend |
Definition at line 38 of file FWGeometryTableManagerBase.h.
|
mutable |
Definition at line 202 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), and FWGeometryTableManagerBase().
TGTextEntry* FWGeometryTableManagerBase::m_editor |
Definition at line 210 of file FWGeometryTableManagerBase.h.
Referenced by applyTransparencyFromEditor(), cancelEditor(), setCellValueEditor(), and showEditor().
int FWGeometryTableManagerBase::m_editTransparencyIdx |
Definition at line 211 of file FWGeometryTableManagerBase.h.
Referenced by applyTransparencyFromEditor(), cancelEditor(), FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), and showEditor().
Entries_v FWGeometryTableManagerBase::m_entries |
Definition at line 206 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 200 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), and FWGeometryTableManagerBase().
int FWGeometryTableManagerBase::m_highlightIdx |
Definition at line 95 of file FWGeometryTableManagerBase.h.
int FWGeometryTableManagerBase::m_levelOffset |
Definition at line 208 of file FWGeometryTableManagerBase.h.
Referenced by FWOverlapTableManager::cellRenderer(), FWGeometryTableManager::cellRenderer(), firstColumnClicked(), getLevelOffset(), FWGeometryTableManager::loadGeometry(), and setLevelOffset().
|
mutable |
Definition at line 201 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 204 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().