1 #ifndef Fireworks_Core_FWGeometryTableManager_h
2 #define Fireworks_Core_FWGeometryTableManager_h
22 #include <sigc++/sigc++.h>
23 #include <boost/tr1/unordered_map.hpp>
33 #include "TGeoVolume.h"
73 const char*
name()
const;
98 typedef boost::unordered_map<TGeoVolume*, Match>
Volumes_t;
112 virtual void draw(Drawable_t iID,
int iX,
int iY,
unsigned int iWidth,
unsigned int iHeight);
130 virtual std::vector<std::string>
getTitles()
const;
133 virtual const std::string
title()
const;
160 void getNodeMatrix(
const NodeInfo& nodeInfo, TGeoHMatrix& mat)
const;
230 int nD = geoNode->GetNdaughters();
232 for (
int i = 0;
i < nD; ++
i )
void setDaughtersSelfVisibility(bool)
void setVisibility(NodeInfo &nodeInfo, bool)
FWGeometryTableView * m_browser
void loadGeometry(TGeoNode *, TObjArray *)
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 und...
virtual ~ColorBoxRenderer()
virtual std::vector< std::string > getTitles() const
returns the title names for each column
bool getVisibilityChld(const NodeInfo &nodeInfo) const
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const
virtual void implSort(int, bool)
Called by 'sort' method to actually handle the sorting of the rows. Arguments are the same as 'sort'...
FWGeometryTableManager(FWGeometryTableView *)
virtual UInt_t width() const
returns the minimum width of the cell to which the renderer is representing
std::vector< NodeInfo > Entries_v
FWTextTreeCellRenderer m_renderer
void setVisibilityChld(NodeInfo &nodeInfo, bool)
void getNodePath(int, std::string &) const
const FWGeometryTableManager & operator=(const FWGeometryTableManager &)
void topGeoNodeChanged(int)
virtual bool rowIsSelected(int row) const
std::vector< int > rowToIndex()
void recalculateVisibilityNodeRec(int)
const char * name() const
ColorBoxRenderer m_colorBoxRenderer
int getLevelOffset() const
std::vector< int > m_row_to_index
virtual const std::string title() const
void setBackgroundToWhite(bool)
void setBitVal(UChar_t f, bool x)
virtual UInt_t height() const
returns the minimum height of the cell to which the renderer is representing
bool getVisibility(const NodeInfo &nodeInfo) const
virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight)
void assertNodeFilterCache(NodeInfo &data)
bool testBit(UChar_t f) const
bool testBitAny(UChar_t f) const
virtual ~FWGeometryTableManager()
void switchBit(UChar_t f)
int selectedColumn() const
void setSelection(int row, int column, int mask)
void setData(Color_t c, bool)
bool nodeImported(int idx) const
void getNodeMatrix(const NodeInfo &nodeInfo, TGeoHMatrix &mat) const
static void getNNodesTotal(TGeoNode *geoNode, int &off)
Entries_v::iterator Entries_i
void checkChildMatches(TGeoVolume *v, std::vector< TGeoVolume * > &)
void recalculateVisibilityVolumeRec(int)
virtual int numberOfColumns() const
Number of columns in the table.
void recalculateVisibility()
Volumes_t::iterator Volumes_i
const char * nameIndent() const
void printChildren(int) const
void firstColumnClicked(int row)
boost::unordered_map< TGeoVolume *, Match > Volumes_t
void importChildren(int parent_idx)
virtual int numberOfRows() const
Number of rows in the table.
void changeSelection(int iRow, int iColumn)