![]() |
OpenWalnut
1.5.0dev
|
A tree widget item to represent a ROI in the control panel. More...
#include <WQtRoiTreeItem.h>
Inheritance diagram for WQtRoiTreeItem:
Collaboration diagram for WQtRoiTreeItem:Public Member Functions | |
| WQtRoiTreeItem (QTreeWidgetItem *parent, osg::ref_ptr< WROI > roi, WTreeItemType type=ROI) | |
| Constructor. More... | |
| virtual | ~WQtRoiTreeItem () |
| Destructor. More... | |
| osg::ref_ptr< WROI > | getRoi () |
| Getter. More... | |
| QWidget * | createWidget () const |
| Create a representation widget for this item. More... | |
Private Attributes | |
| osg::ref_ptr< WROI > | m_roi |
| Pointer to the ROI represented by this item. More... | |
A tree widget item to represent a ROI in the control panel.
Definition at line 39 of file WQtRoiTreeItem.h.
| WQtRoiTreeItem::WQtRoiTreeItem | ( | QTreeWidgetItem * | parent, |
| osg::ref_ptr< WROI > | roi, | ||
| WTreeItemType | type = ROI |
||
| ) |
Constructor.
| parent | The parent widget. |
| roi | The ROI taht is represented by this item. |
| type |
Definition at line 43 of file WQtRoiTreeItem.cpp.
|
virtual |
Destructor.
Definition at line 50 of file WQtRoiTreeItem.cpp.
| QWidget * WQtRoiTreeItem::createWidget | ( | ) | const |
Create a representation widget for this item.
Definition at line 59 of file WQtRoiTreeItem.cpp.
References WPropertyStringWidget::disableTextInteraction(), WPropertyWidget::forceInformationMode(), WQtGui::getMainWindow(), and m_roi.
Referenced by WQtControlPanel::addRoi(), and WQtControlPanel::handleRoiDragDrop().
Here is the call graph for this function:
Here is the caller graph for this function:| osg::ref_ptr< WROI > WQtRoiTreeItem::getRoi | ( | ) |
Getter.
Definition at line 54 of file WQtRoiTreeItem.cpp.
References m_roi.
Referenced by WQtControlPanel::handleRoiDragDrop(), WQtControlPanel::removeRoi(), and WQtBranchTreeItem::updateRoiManagerSorting().
Here is the caller graph for this function:
|
private |
Pointer to the ROI represented by this item.
Definition at line 71 of file WQtRoiTreeItem.h.
Referenced by createWidget(), and getRoi().