![]() |
![]() |
#include <Fireworks/Core/interface/FWGeometryTableManager.h>
Classes | |
class | ColorBoxRenderer |
struct | Match |
struct | NodeInfo |
Public Member Functions | |
virtual FWTableCellRendererBase * | cellRenderer (int iSortedRowNumber, int iCol) const |
void | firstColumnClicked (int row) |
FWGeometryTableManager (FWGeometryBrowser *) | |
virtual std::vector< std::string > | getTitles () const |
returns the title names for each column More... | |
virtual void | implSort (int, bool) |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'. More... | |
void | loadGeometry (TGeoManager *geoManager) |
virtual int | numberOfColumns () const |
Number of columns in the table. More... | |
virtual int | numberOfRows () const |
Number of rows in the table. More... | |
virtual bool | rowIsSelected (int row) const |
std::vector< int > | rowToIndex () |
int | selectedColumn () const |
int | selectedRow () const |
void | setSelection (int row, int column, int mask) |
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 | ~FWGeometryTableManager () |
![]() | |
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... | |
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 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 () |
Private Types | |
enum | ECol { kName, kColor, kVisSelf, kVisChild, kMaterial, kPosition, kBBoxSize, kNumCol } |
typedef Entries_v::iterator | Entries_i |
typedef std::vector< NodeInfo > | Entries_v |
typedef Volumes_t::iterator | Volumes_i |
typedef boost::unordered_map < TGeoVolume *, Match > | Volumes_t |
Private Member Functions | |
void | changeSelection (int iRow, int iColumn) |
void | checkChildMatches (TGeoVolume *v, std::vector< TGeoVolume * > &) |
void | checkHierarchy () |
void | checkUniqueVolume (TGeoVolume *v) |
bool | filterOff () const |
FWGeometryTableManager (const FWGeometryTableManager &) | |
int | getNdaughtersLimited (TGeoNode *) const |
void | getNNodesTotal (TGeoNode *geoNode, int level, int &off, bool debug) const |
void | importChildren (int parent_idx, bool recurse) |
const FWGeometryTableManager & | operator= (const FWGeometryTableManager &) |
void | recalculateVisibility () |
void | redrawTable () |
void | setTableContent () |
void | updateAutoExpand () |
void | updateFilter () |
void | updateMode () |
Private Attributes | |
sigc::signal< void, int, int > | indexSelected_ |
int | m_autoExpand |
FWGeometryBrowser * | m_browser |
ColorBoxRenderer | m_colorBoxRenderer |
Entries_v | m_entries |
TGeoManager * | m_geoManager |
int | m_maxDaughters |
bool | m_modeVolume |
FWTextTreeCellRenderer | m_renderer |
std::vector< int > | m_row_to_index |
int | m_selectedColumn |
int | m_selectedRow |
Volumes_t | m_volumes |
Additional Inherited Members |
Description: [one line class summary]
Usage: <usage>
Definition at line 39 of file FWGeometryTableManager.h.
|
private |
Definition at line 146 of file FWGeometryTableManager.h.
|
private |
Definition at line 145 of file FWGeometryTableManager.h.
|
private |
Definition at line 149 of file FWGeometryTableManager.h.
|
private |
Definition at line 148 of file FWGeometryTableManager.h.
|
private |
Enumerator | |
---|---|
kName | |
kColor | |
kVisSelf | |
kVisChild | |
kMaterial | |
kPosition | |
kBBoxSize | |
kNumCol |
Definition at line 118 of file FWGeometryTableManager.h.
FWGeometryTableManager::FWGeometryTableManager | ( | FWGeometryBrowser * | browser | ) |
Definition at line 100 of file FWGeometryTableManager.cc.
References FWGenericParameter< T >::changed_, FWTextTableCellRenderer::height(), FWGeometryBrowser::m_autoExpand, m_autoExpand, m_browser, m_colorBoxRenderer, FWGeometryBrowser::m_filter, FWGeometryTableManager::ColorBoxRenderer::m_height, FWGeometryBrowser::m_maxDaughters, m_maxDaughters, FWGeometryBrowser::m_mode, m_modeVolume, m_renderer, FWGeometryTableManager::ColorBoxRenderer::m_width, updateAutoExpand(), updateFilter(), updateMode(), and FWGenericParameter< T >::value().
|
virtual |
Definition at line 125 of file FWGeometryTableManager.cc.
|
private |
|
virtual |
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 210 of file FWGeometryTableManager.cc.
References runTheMatrix::data, filterOff(), getNdaughtersLimited(), FWTextTableCellRenderer::graphicsContext(), FWTextTreeCellRenderer::iconWidth(), kColor, kMaterial, kName, kPosition, kVisChild, kVisSelf, m_colorBoxRenderer, m_entries, FWGeometryTableManager::NodeInfo::m_expanded, FWGeometryTableManager::NodeInfo::m_level, m_modeVolume, FWGeometryTableManager::NodeInfo::m_node, m_renderer, m_row_to_index, m_volumes, L1TEmulatorMonitor_cff::p, FWTextTableCellRenderer::setData(), FWGeometryTableManager::ColorBoxRenderer::setData(), FWTextTreeCellRenderer::setIndentation(), FWTextTreeCellRenderer::setIsOpen(), and FWTextTreeCellRenderer::setIsParent().
|
private |
Definition at line 192 of file FWGeometryTableManager.cc.
References indexSelected_, m_selectedColumn, m_selectedRow, and FWTableManagerBase::visualPropertiesChanged().
Referenced by redrawTable(), and setSelection().
|
private |
Definition at line 632 of file FWGeometryTableManager.cc.
References i, FWGeometryTableManager::Match::m_childMatches, m_maxDaughters, m_volumes, and siStripFEDMonitor_P5_cff::Min.
Referenced by updateFilter().
|
private |
Definition at line 608 of file FWGeometryTableManager.cc.
References ExpressReco_HICollisions_FallBack::e, i, m_entries, AlCaRecoCosmics_cfg::name, convertSQLiteXML::ok, and redTxt.
Referenced by setTableContent().
|
private |
Definition at line 359 of file FWGeometryTableManager.cc.
Referenced by loadGeometry().
|
private |
Definition at line 695 of file FWGeometryTableManager.cc.
References m_browser, FWGeometryBrowser::m_filter, and FWGenericParameter< T >::value().
Referenced by cellRenderer(), importChildren(), loadGeometry(), and setTableContent().
void FWGeometryTableManager::firstColumnClicked | ( | int | row | ) |
Definition at line 298 of file FWGeometryTableManager.cc.
References runTheMatrix::data, FWTableManagerBase::dataChanged(), importChildren(), m_entries, FWGeometryTableManager::NodeInfo::m_expanded, FWGeometryTableManager::NodeInfo::m_imported, recalculateVisibility(), rowToIndex(), and FWTableManagerBase::visualPropertiesChanged().
Referenced by FWGeometryBrowser::cellClicked().
|
inlineprivate |
Definition at line 177 of file FWGeometryTableManager.h.
References m_maxDaughters, and siStripFEDMonitor_P5_cff::Min.
Referenced by cellRenderer(), getNNodesTotal(), and importChildren().
|
private |
Definition at line 459 of file FWGeometryTableManager.cc.
References cyanTxt, getNdaughtersLimited(), i, testEve_cfg::level, m_autoExpand, m_modeVolume, m_volumes, and n.
Referenced by importChildren().
|
virtual |
returns the title names for each column
Implements FWTableManagerBase.
Definition at line 146 of file FWGeometryTableManager.cc.
References m_modeVolume, and numberOfColumns().
|
inlinevirtual |
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'.
Implements FWTableManagerBase.
Definition at line 113 of file FWGeometryTableManager.h.
|
private |
Definition at line 502 of file FWGeometryTableManager.cc.
References debug, filterOff(), getNdaughtersLimited(), getNNodesTotal(), greenTxt, i, m_autoExpand, m_entries, FWGeometryTableManager::NodeInfo::m_expanded, FWGeometryTableManager::NodeInfo::m_level, m_modeVolume, FWGeometryTableManager::NodeInfo::m_node, FWGeometryTableManager::NodeInfo::m_parent, m_volumes, n, AlCaRecoCosmics_cfg::name, FWGeometryTableManager::NodeInfo::name(), dbtoconf::parent, and redTxt.
Referenced by firstColumnClicked(), and setTableContent().
void FWGeometryTableManager::loadGeometry | ( | TGeoManager * | geoManager | ) |
Definition at line 371 of file FWGeometryTableManager.cc.
References checkUniqueVolume(), filterOff(), m_browser, m_geoManager, m_volumes, setTableContent(), updateFilter(), and FWGeometryBrowser::updateStatusBar().
Referenced by FWGeometryBrowser::readFile().
|
virtual |
Number of columns in the table.
Implements FWTableManagerBase.
Definition at line 140 of file FWGeometryTableManager.cc.
References kNumCol.
Referenced by getTitles().
|
virtual |
Number of rows in the table.
Implements FWTableManagerBase.
Definition at line 135 of file FWGeometryTableManager.cc.
References m_row_to_index.
|
private |
|
private |
Definition at line 320 of file FWGeometryTableManager.cc.
References runTheMatrix::data, ExpressReco_HICollisions_FallBack::e, i, m_entries, FWGeometryTableManager::NodeInfo::m_parent, m_row_to_index, and FWGeometryTableManager::NodeInfo::m_visible.
Referenced by firstColumnClicked(), and redrawTable().
|
private |
Definition at line 347 of file FWGeometryTableManager.cc.
References changeSelection(), FWTableManagerBase::dataChanged(), recalculateVisibility(), and FWTableManagerBase::visualPropertiesChanged().
Referenced by setTableContent().
|
virtual |
|
inline |
Definition at line 110 of file FWGeometryTableManager.h.
References m_row_to_index.
Referenced by firstColumnClicked().
int FWGeometryTableManager::selectedColumn | ( | ) | const |
Definition at line 182 of file FWGeometryTableManager.cc.
References m_selectedColumn.
int FWGeometryTableManager::selectedRow | ( | ) | const |
void FWGeometryTableManager::setSelection | ( | int | row, |
int | column, | ||
int | mask | ||
) |
Definition at line 166 of file FWGeometryTableManager.cc.
References changeSelection().
|
private |
Definition at line 387 of file FWGeometryTableManager.cc.
References checkHierarchy(), debug, filterOff(), i, importChildren(), FWGeometryBrowser::kVolume, FWGeometryBrowser::m_autoExpand, m_autoExpand, m_browser, m_entries, FWGeometryBrowser::m_filter, m_geoManager, FWGeometryTableManager::NodeInfo::m_level, FWGeometryBrowser::m_maxDaughters, m_maxDaughters, FWGeometryBrowser::m_mode, m_modeVolume, FWGeometryTableManager::NodeInfo::m_node, FWGeometryTableManager::NodeInfo::m_parent, m_row_to_index, m_volumes, n, redrawTable(), FWGeometryBrowser::updateStatusBar(), and FWGenericParameter< T >::value().
Referenced by loadGeometry(), updateAutoExpand(), updateFilter(), and updateMode().
|
virtual |
Definition at line 172 of file FWGeometryTableManager.cc.
Referenced by python.Vispa.Views.LineDecayView.LineDecayContainer::autolayout(), python.Vispa.Views.LineDecayView.LineDecayContainer::autolayoutThreadFinished(), python.Vispa.Views.LineDecayView.LineDecayContainer::childFinishedAutolayouting(), and python.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 130 of file FWGeometryTableManager.cc.
|
private |
Definition at line 681 of file FWGeometryTableManager.cc.
References m_geoManager, and setTableContent().
Referenced by FWGeometryTableManager().
|
private |
Definition at line 657 of file FWGeometryTableManager.cc.
References checkChildMatches(), i, m_browser, FWGeometryBrowser::m_filter, m_geoManager, m_volumes, setTableContent(), and FWGenericParameter< T >::value().
Referenced by FWGeometryTableManager(), and loadGeometry().
|
private |
Definition at line 688 of file FWGeometryTableManager.cc.
References m_geoManager, and setTableContent().
Referenced by FWGeometryTableManager().
|
private |
Definition at line 172 of file FWGeometryTableManager.h.
Referenced by changeSelection().
|
private |
Definition at line 167 of file FWGeometryTableManager.h.
Referenced by FWGeometryTableManager(), getNNodesTotal(), importChildren(), and setTableContent().
|
private |
Definition at line 160 of file FWGeometryTableManager.h.
Referenced by filterOff(), FWGeometryTableManager(), loadGeometry(), setTableContent(), and updateFilter().
|
mutableprivate |
Definition at line 153 of file FWGeometryTableManager.h.
Referenced by cellRenderer(), and FWGeometryTableManager().
|
private |
Definition at line 164 of file FWGeometryTableManager.h.
Referenced by cellRenderer(), checkHierarchy(), firstColumnClicked(), importChildren(), recalculateVisibility(), and setTableContent().
|
private |
Definition at line 161 of file FWGeometryTableManager.h.
Referenced by loadGeometry(), setTableContent(), updateAutoExpand(), updateFilter(), and updateMode().
|
private |
Definition at line 168 of file FWGeometryTableManager.h.
Referenced by checkChildMatches(), FWGeometryTableManager(), getNdaughtersLimited(), and setTableContent().
|
private |
Definition at line 169 of file FWGeometryTableManager.h.
Referenced by cellRenderer(), FWGeometryTableManager(), getNNodesTotal(), getTitles(), importChildren(), and setTableContent().
|
mutableprivate |
Definition at line 152 of file FWGeometryTableManager.h.
Referenced by cellRenderer(), and FWGeometryTableManager().
|
private |
Definition at line 155 of file FWGeometryTableManager.h.
Referenced by cellRenderer(), numberOfRows(), recalculateVisibility(), rowToIndex(), and setTableContent().
|
private |
Definition at line 157 of file FWGeometryTableManager.h.
Referenced by changeSelection(), and selectedColumn().
|
private |
Definition at line 156 of file FWGeometryTableManager.h.
Referenced by changeSelection(), rowIsSelected(), and selectedRow().
|
mutableprivate |
Definition at line 163 of file FWGeometryTableManager.h.
Referenced by cellRenderer(), checkChildMatches(), checkUniqueVolume(), getNNodesTotal(), importChildren(), loadGeometry(), setTableContent(), and updateFilter().