|
CEDRIC
Revision_backup-2009-02
|
The Phast Setup in a QTreeWidget, relates DOM (XML) and OSG (graphical) representation. More...
#include <SetupTreeWidget.h>
Public Types | |
| enum | ItemTypes { ROOT_NODE = 1024, INNER_NODE = 2048, LEAF_NODE = 4096, DETECTOR = 8192, RICH = 16384, CALORIMETER = 32768, MAGNET = 65536, TARGET = 131072 } |
| enum | ItemDataRoles { ROLE_OSG_NODE = 100, ROLE_DOM_NODE = 101, ROLE_COLOR_TYPE = 102 } |
| enum | ColumnType { COL_NAME = 0, COL_VISIBLE = 1, COL_DBG_OSG = 4, COL_DBG_DOM = 5, COL_COLOR = 2, COL_ALPHA = 3 } |
| enum | ColorType { UNKNOWN = 0, MIXED = 1, RGB = 2 } |
Public Slots | |
| bool | loadConfiguration () |
| void | saveConfiguration () |
| void | addGroup () |
| void | deleteGroup () |
| void | updateContextMenu (QTreeWidgetItem *current, int col) |
| void | updateItem (QTreeWidgetItem *item, int col) |
| void | changeSetupAlpha (int alpha) |
| void | highlight (int uid) |
| void | autoResizeColumns () |
| Resize columns to fit content (just calls QTreeWidget::resizeColumnToContents() for every column) More... | |
Signals | |
| void | doReload () |
| void | updateNeeded () |
| views must be updated (e.g. due to color/alpha change) More... | |
Public Member Functions | |
| SetupTreeWidget (QWidget *parent=0) | |
| QDomDocument * | getDomDocument () |
| void | setInitialBuild (bool state=false) |
| void | setOsgRootNode (osg::ref_ptr< osg::Node > rootNode) |
| bool | loadConfiguration (QString filename) |
| void | createUIDMapEntry (int uid, QTreeWidgetItem *item) |
Protected Member Functions | |
| void | createActions () |
| void | createContextMenu () |
| void | mousePressEvent (QMouseEvent *event) |
| void | startDrag (Qt::DropActions supportedActions) |
| void | dropEvent (QDropEvent *event) |
The Phast Setup in a QTreeWidget, relates DOM (XML) and OSG (graphical) representation.
| SetupTreeWidget::SetupTreeWidget | ( | QWidget * | parent = 0 | ) |
|
slot |
References COL_COLOR, COL_NAME, COL_VISIBLE, PhastNode::getUID(), LEAF_NODE, ROLE_DOM_NODE, ROLE_OSG_NODE, and ROOT_NODE.
Referenced by createActions().
|
inlineslot |
Resize columns to fit content (just calls QTreeWidget::resizeColumnToContents() for every column)
Referenced by loadConfiguration(), and SetupTreeWidget().
|
slot |
References COL_NAME, ROLE_OSG_NODE, PhastNode::setAlpha(), and updateNeeded().
|
protected |
References addGroup(), deleteGroup(), loadConfiguration(), saveConfiguration(), and updateItem().
Referenced by SetupTreeWidget().
|
protected |
Referenced by SetupTreeWidget().
| void SetupTreeWidget::createUIDMapEntry | ( | int | uid, |
| QTreeWidgetItem * | item | ||
| ) |
|
slot |
References COL_NAME, INNER_NODE, and ROLE_OSG_NODE.
Referenced by createActions().
|
signal |
Referenced by loadConfiguration().
|
protected |
References COL_NAME, and ROLE_OSG_NODE.
|
inline |
|
slot |
Referenced by SetupTreeWidget().
|
slot |
References autoResizeColumns(), and doReload().
Referenced by createActions().
| bool SetupTreeWidget::loadConfiguration | ( | QString | filename | ) |
References autoResizeColumns().
|
protected |
References CALORIMETER, DETECTOR, INNER_NODE, LEAF_NODE, RICH, and ROOT_NODE.
|
slot |
References CALORIMETER, COL_COLOR, COL_NAME, COL_VISIBLE, DETECTOR, MAGNET, RGB, RICH, and ROLE_COLOR_TYPE.
Referenced by createActions().
| void SetupTreeWidget::setInitialBuild | ( | bool | state = false | ) |
Referenced by PhastParser::PhastParser().
|
inline |
Referenced by PhastParser::PhastParser().
|
protected |
References COL_NAME, and ROLE_OSG_NODE.
|
slot |
References LEAF_NODE, and ROOT_NODE.
Referenced by SetupTreeWidget().
|
slot |
References COL_COLOR, COL_NAME, COL_VISIBLE, RGB, ROLE_COLOR_TYPE, ROLE_OSG_NODE, PhastNode::setVisible(), and updateNeeded().
Referenced by createActions().
|
signal |
views must be updated (e.g. due to color/alpha change)
Referenced by changeSetupAlpha(), and updateItem().
1.8.6