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

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< WROIgetRoi ()
 Getter. More...
 
QWidget * createWidget () const
 Create a representation widget for this item. More...
 

Private Attributes

osg::ref_ptr< WROIm_roi
 Pointer to the ROI represented by this item. More...
 

Detailed Description

A tree widget item to represent a ROI in the control panel.

Definition at line 39 of file WQtRoiTreeItem.h.

Constructor & Destructor Documentation

◆ WQtRoiTreeItem()

WQtRoiTreeItem::WQtRoiTreeItem ( QTreeWidgetItem parent,
osg::ref_ptr< WROI roi,
WTreeItemType  type = ROI 
)

Constructor.

Parameters
parentThe parent widget.
roiThe ROI taht is represented by this item.
type

Definition at line 43 of file WQtRoiTreeItem.cpp.

◆ ~WQtRoiTreeItem()

WQtRoiTreeItem::~WQtRoiTreeItem ( )
virtual

Destructor.

Definition at line 50 of file WQtRoiTreeItem.cpp.

Member Function Documentation

◆ createWidget()

QWidget * WQtRoiTreeItem::createWidget ( ) const

Create a representation widget for this item.

Returns
the widget.

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:

◆ getRoi()

osg::ref_ptr< WROI > WQtRoiTreeItem::getRoi ( )

Getter.

Returns
the ROI representation object

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:

Member Data Documentation

◆ m_roi

osg::ref_ptr< WROI > WQtRoiTreeItem::m_roi
private

Pointer to the ROI represented by this item.

Definition at line 71 of file WQtRoiTreeItem.h.

Referenced by createWidget(), and getRoi().


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