OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WQtBranchTreeItem Class Reference

This class represents a ROI branch in the tree widget. More...

#include <WQtBranchTreeItem.h>

+ Inheritance diagram for WQtBranchTreeItem:
+ Collaboration diagram for WQtBranchTreeItem:

Public Member Functions

 WQtBranchTreeItem (QTreeWidgetItem *parent, std::shared_ptr< WRMBranch > branch)
 default constructor More...
 
virtual ~WQtBranchTreeItem ()
 destructor More...
 
WQtRoiTreeItemaddRoiItem (osg::ref_ptr< WROI >)
 Add a ROI to the tree view. More...
 
std::shared_ptr< WRMBranchgetBranch ()
 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< WRMBranchm_branch
 ROI. More...
 
QWidget * m_itemWidget
 Widget representing the item. More...
 

Detailed Description

This class represents a ROI branch in the tree widget.

Definition at line 43 of file WQtBranchTreeItem.h.

Constructor & Destructor Documentation

◆ WQtBranchTreeItem()

WQtBranchTreeItem::WQtBranchTreeItem ( QTreeWidgetItem parent,
std::shared_ptr< WRMBranch branch 
)
explicit

default constructor

Parameters
parent
branch

Definition at line 47 of file WQtBranchTreeItem.cpp.

References WPropertyStringWidget::disableTextInteraction(), WPropertyWidget::forceInformationMode(), WQtGui::getMainWindow(), m_itemWidget, and WPropertyColorWidget::setColorPickerButtonHidden().

+ Here is the call graph for this function:

◆ ~WQtBranchTreeItem()

WQtBranchTreeItem::~WQtBranchTreeItem ( )
virtual

destructor

Definition at line 127 of file WQtBranchTreeItem.cpp.

Member Function Documentation

◆ addRoiItem()

WQtRoiTreeItem * WQtBranchTreeItem::addRoiItem ( osg::ref_ptr< WROI roi)

Add a ROI to the tree view.

Parameters
roiThe new ROI.
Returns
Pointer to the new ROI tree item.

Definition at line 131 of file WQtBranchTreeItem.cpp.

Referenced by WQtControlPanel::addRoi().

+ Here is the caller graph for this function:

◆ getBranch()

std::shared_ptr< WRMBranch > WQtBranchTreeItem::getBranch ( )

getter

Returns
the branch representation object

Definition at line 137 of file WQtBranchTreeItem.cpp.

References m_branch.

Referenced by WQtControlPanel::addRoi(), and WQtControlPanel::handleRoiDragDrop().

+ Here is the caller graph for this function:

◆ getWidget()

QWidget * WQtBranchTreeItem::getWidget ( ) const

Create a representation widget for this item.

Returns
the widget.

Definition at line 142 of file WQtBranchTreeItem.cpp.

References m_itemWidget.

Referenced by WQtControlPanel::addRoi().

+ Here is the caller graph for this function:

◆ updateRoiManagerSorting()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_branch

std::shared_ptr< WRMBranch > WQtBranchTreeItem::m_branch
private

ROI.

Definition at line 86 of file WQtBranchTreeItem.h.

Referenced by getBranch(), and updateRoiManagerSorting().

◆ m_itemWidget

QWidget* WQtBranchTreeItem::m_itemWidget
private

Widget representing the item.

Definition at line 91 of file WQtBranchTreeItem.h.

Referenced by getWidget(), and WQtBranchTreeItem().


The documentation for this class was generated from the following files: