OpenWalnut
1.5.0dev
|
This class represents a ROI branch in the tree widget. More...
#include <WQtBranchTreeItem.h>
Public Member Functions | |
WQtBranchTreeItem (QTreeWidgetItem *parent, std::shared_ptr< WRMBranch > branch) | |
default constructor More... | |
virtual | ~WQtBranchTreeItem () |
destructor More... | |
WQtRoiTreeItem * | addRoiItem (osg::ref_ptr< WROI >) |
Add a ROI to the tree view. More... | |
std::shared_ptr< WRMBranch > | getBranch () |
getter More... | |
QWidget * | getWidget () const |
Create a representation widget for this item. More... | |
void | updateRoiManagerSorting () |
Update internal Roi Manager sorting using the sorting of the children of this tree item. More... | |
Private Attributes | |
std::shared_ptr< WRMBranch > | m_branch |
ROI. More... | |
QWidget * | m_itemWidget |
Widget representing the item. More... | |
This class represents a ROI branch in the tree widget.
Definition at line 43 of file WQtBranchTreeItem.h.
|
explicit |
default constructor
parent | |
branch |
Definition at line 47 of file WQtBranchTreeItem.cpp.
References WPropertyStringWidget::disableTextInteraction(), WPropertyWidget::forceInformationMode(), WQtGui::getMainWindow(), m_itemWidget, and WPropertyColorWidget::setColorPickerButtonHidden().
|
virtual |
destructor
Definition at line 127 of file WQtBranchTreeItem.cpp.
WQtRoiTreeItem * WQtBranchTreeItem::addRoiItem | ( | osg::ref_ptr< WROI > | roi | ) |
Add a ROI to the tree view.
roi | The new ROI. |
Definition at line 131 of file WQtBranchTreeItem.cpp.
Referenced by WQtControlPanel::addRoi().
std::shared_ptr< WRMBranch > WQtBranchTreeItem::getBranch | ( | ) |
getter
Definition at line 137 of file WQtBranchTreeItem.cpp.
References m_branch.
Referenced by WQtControlPanel::addRoi(), and WQtControlPanel::handleRoiDragDrop().
QWidget * WQtBranchTreeItem::getWidget | ( | ) | const |
Create a representation widget for this item.
Definition at line 142 of file WQtBranchTreeItem.cpp.
References m_itemWidget.
Referenced by WQtControlPanel::addRoi().
void WQtBranchTreeItem::updateRoiManagerSorting | ( | ) |
Update internal Roi Manager sorting using the sorting of the children of this tree item.
Definition at line 183 of file WQtBranchTreeItem.cpp.
References WQtRoiTreeItem::getRoi(), and m_branch.
Referenced by WQtControlPanel::event().
|
private |
ROI.
Definition at line 86 of file WQtBranchTreeItem.h.
Referenced by getBranch(), and updateRoiManagerSorting().
|
private |
Widget representing the item.
Definition at line 91 of file WQtBranchTreeItem.h.
Referenced by getWidget(), and WQtBranchTreeItem().