|
CEDRIC
Revision_backup-2009-02
|
The event's particles in a QTreeWidget, relates PaParticles (model) and OSG (graphical) representation. More...
#include <ParticleTreeWidget.h>
Public Types | |
| enum | ItemDataRoles { ROLE_OSG_NODE = 100, ROLE_LINE_WIDTH = 101 } |
| enum | ColumnType { COL_INDEX = 0, COL_VISIBLE, COL_COLOR, COL_CHARGE, COL_MOMENTUM, COL_RICHINFO, COL_TYPE, COL_MASS, COL_PARTICLE, COL_NVERTEX, COL_NCALORIM, COL_PARTICLE_TYPE, COL_IS_BEAM, COL_IS_MUPRIM, COL_ZFIRST, COL_ZLAST, COL_LENGTH, COL_NHITS, COL_CHI2TOT, COL_MEANTIME, NUM_COLUMNS } |
Public Slots | |
| void | highlight (int uid) |
| Highlight in widget. More... | |
| void | autoResizeColumns () |
| Resize columns to fit content (just calls QTreeWidget::resizeColumnToContents() for every column) More... | |
Signals | |
| void | updateNeeded () |
| Views must be updated (e.g. due to color/alpha change) More... | |
| void | particleActivated (int index) |
| User has selected another particle from the widget (e.g. usefull for FilterVis updates) More... | |
Public Member Functions | |
| ParticleTreeWidget (QWidget *parent=0) | |
| void | updateContent (const PaEvent &event, PhastScene *scene) |
| Fill this tree widget based on PaEvent and PhastScene content. More... | |
Protected Slots | |
| void | updateItem (QTreeWidgetItem *item, int col) |
| Called when item was changed by user. More... | |
| void | onItemActivated (QTreeWidgetItem *item, int col) |
| Slot for signal itemActivated(), just translates to signal particleActivated(int) More... | |
| void | onCurrentItemChanged (QTreeWidgetItem *item, QTreeWidgetItem *) |
| Slot for signal currentItemChanged(), just translates to signal particleActivated(int) More... | |
Protected Member Functions | |
| QColor | getPIDColor (int PID) |
The event's particles in a QTreeWidget, relates PaParticles (model) and OSG (graphical) representation.
| ParticleTreeWidget::ParticleTreeWidget | ( | QWidget * | parent = 0 | ) |
References autoResizeColumns(), COL_CHARGE, COL_CHI2TOT, COL_COLOR, COL_INDEX, COL_IS_BEAM, COL_IS_MUPRIM, COL_LENGTH, COL_MASS, COL_MEANTIME, COL_MOMENTUM, COL_NCALORIM, COL_NHITS, COL_NVERTEX, COL_PARTICLE, COL_PARTICLE_TYPE, COL_RICHINFO, COL_TYPE, COL_VISIBLE, COL_ZFIRST, COL_ZLAST, highlight(), NUM_COLUMNS, onCurrentItemChanged(), and SelectionDispatcher::ref().
|
inlineslot |
Resize columns to fit content (just calls QTreeWidget::resizeColumnToContents() for every column)
Referenced by ParticleTreeWidget(), and updateContent().
|
protected |
References PID::getColor().
Referenced by updateContent().
|
slot |
Highlight in widget.
Referenced by ParticleTreeWidget().
|
protectedslot |
Slot for signal currentItemChanged(), just translates to signal particleActivated(int)
References COL_INDEX, and particleActivated().
Referenced by ParticleTreeWidget().
|
protectedslot |
Slot for signal itemActivated(), just translates to signal particleActivated(int)
References COL_INDEX, and particleActivated().
|
signal |
User has selected another particle from the widget (e.g. usefull for FilterVis updates)
Referenced by onCurrentItemChanged(), and onItemActivated().
| void ParticleTreeWidget::updateContent | ( | const PaEvent & | event, |
| PhastScene * | scene | ||
| ) |
Fill this tree widget based on PaEvent and PhastScene content.
References autoResizeColumns(), COL_CHARGE, COL_CHI2TOT, COL_COLOR, COL_INDEX, COL_IS_BEAM, COL_IS_MUPRIM, COL_LENGTH, COL_MASS, COL_MEANTIME, COL_MOMENTUM, COL_NCALORIM, COL_NHITS, COL_NVERTEX, COL_PARTICLE, COL_PARTICLE_TYPE, COL_RICHINFO, COL_TYPE, COL_ZFIRST, COL_ZLAST, PID::getName(), getPIDColor(), PhastInterface::getRICHRefractiveIndex(), PhastScene::getTrack(), PhastNode::getUID(), EventDiscriminator::isPhysicalTrack(), NUM_COLUMNS, PhastInterface::ref(), ROLE_LINE_WIDTH, ROLE_OSG_NODE, GlobalOptions::showOnlyParticles(), and GlobalOptions::showOnlyPhysicalTracks().
Referenced by PhastEventParser::PhastEventParser().
|
protectedslot |
Called when item was changed by user.
|
signal |
Views must be updated (e.g. due to color/alpha change)
1.8.6