Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkBoundingObjectWidget Class Reference

#include <QmitkBoundingObjectWidget.h>

Inheritance diagram for QmitkBoundingObjectWidget:
Collaboration diagram for QmitkBoundingObjectWidget:

Signals

void BoundingObjectsChanged ()
 

Public Member Functions

 QmitkBoundingObjectWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 ~QmitkBoundingObjectWidget ()
 
void SetDataStorage (mitk::DataStorage *dataStorage)
 
mitk::DataStorageGetDataStorage ()
 
mitk::BoundingObject::Pointer GetSelectedBoundingObject ()
 
mitk::DataNode::Pointer GetSelectedBoundingObjectNode ()
 
mitk::DataNode::Pointer GetAllBoundingObjects ()
 
void setEnabled (bool flag)
 
void OnBoundingObjectModified (const itk::EventObject &e)
 
void RemoveAllItems ()
 

Protected Types

enum  BoundingObjectType { CUBOID, CONE, ELLIPSOID, CYLINDER }
 
typedef std::map< QTreeWidgetItem *, mitk::DataNode * > ItemNodeMapType
 

Protected Slots

void CreateBoundingObject (int type)
 
void OnDelButtonClicked ()
 
void SelectionChanged ()
 
void OnItemDoubleClicked (QTreeWidgetItem *item, int col)
 
void OnItemDataChanged (QTreeWidgetItem *item, int col)
 

Protected Member Functions

void AddItem (mitk::DataNode *node)
 
void RemoveItem ()
 

Protected Attributes

mitk::DataStoragem_DataStorage
 
QTreeWidget * m_TreeWidget
 
QComboBox * m_addComboBox
 
QPushButton * m_DelButton
 
QPushButton * m_SaveButton
 
QPushButton * m_LoadButton
 
QTreeWidgetItem * m_lastSelectedItem
 
unsigned long m_lastAffineObserver
 
ItemNodeMapType m_ItemNodeMap
 
unsigned int m_BoundingObjectCounter
 

Detailed Description

Definition at line 31 of file QmitkBoundingObjectWidget.h.

Member Typedef Documentation

typedef std::map<QTreeWidgetItem *, mitk::DataNode *> QmitkBoundingObjectWidget::ItemNodeMapType
protected

Definition at line 76 of file QmitkBoundingObjectWidget.h.

Member Enumeration Documentation

Enumerator
CUBOID 
CONE 
ELLIPSOID 
CYLINDER 

Definition at line 81 of file QmitkBoundingObjectWidget.h.

Constructor & Destructor Documentation

QmitkBoundingObjectWidget::QmitkBoundingObjectWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
QmitkBoundingObjectWidget::~QmitkBoundingObjectWidget ( )

Definition at line 98 of file QmitkBoundingObjectWidget.cpp.

Member Function Documentation

void QmitkBoundingObjectWidget::AddItem ( mitk::DataNode node)
protected
void QmitkBoundingObjectWidget::BoundingObjectsChanged ( )
signal
mitk::DataStorage * QmitkBoundingObjectWidget::GetDataStorage ( )

Definition at line 313 of file QmitkBoundingObjectWidget.cpp.

References m_DataStorage.

mitk::BoundingObject::Pointer QmitkBoundingObjectWidget::GetSelectedBoundingObject ( )
mitk::DataNode::Pointer QmitkBoundingObjectWidget::GetSelectedBoundingObjectNode ( )

Definition at line 431 of file QmitkBoundingObjectWidget.cpp.

References m_ItemNodeMap, and m_TreeWidget.

Referenced by GetSelectedBoundingObject().

void QmitkBoundingObjectWidget::OnBoundingObjectModified ( const itk::EventObject &  e)

Definition at line 443 of file QmitkBoundingObjectWidget.cpp.

References BoundingObjectsChanged().

Referenced by SelectionChanged().

void QmitkBoundingObjectWidget::OnDelButtonClicked ( )
protectedslot

Definition at line 318 of file QmitkBoundingObjectWidget.cpp.

References RemoveItem().

Referenced by QmitkBoundingObjectWidget().

void QmitkBoundingObjectWidget::OnItemDoubleClicked ( QTreeWidgetItem *  item,
int  col 
)
protectedslot

Definition at line 209 of file QmitkBoundingObjectWidget.cpp.

References m_TreeWidget.

Referenced by QmitkBoundingObjectWidget().

void QmitkBoundingObjectWidget::RemoveAllItems ( )
void QmitkBoundingObjectWidget::RemoveItem ( )
protected
void QmitkBoundingObjectWidget::SetDataStorage ( mitk::DataStorage dataStorage)

Member Data Documentation

QComboBox* QmitkBoundingObjectWidget::m_addComboBox
protected

Definition at line 69 of file QmitkBoundingObjectWidget.h.

Referenced by CreateBoundingObject(), and QmitkBoundingObjectWidget().

unsigned int QmitkBoundingObjectWidget::m_BoundingObjectCounter
protected

Definition at line 79 of file QmitkBoundingObjectWidget.h.

Referenced by CreateBoundingObject(), and RemoveAllItems().

mitk::DataStorage* QmitkBoundingObjectWidget::m_DataStorage
protected
QPushButton* QmitkBoundingObjectWidget::m_DelButton
protected

Definition at line 70 of file QmitkBoundingObjectWidget.h.

Referenced by QmitkBoundingObjectWidget().

ItemNodeMapType QmitkBoundingObjectWidget::m_ItemNodeMap
protected
unsigned long QmitkBoundingObjectWidget::m_lastAffineObserver
protected

Definition at line 74 of file QmitkBoundingObjectWidget.h.

Referenced by SelectionChanged().

QTreeWidgetItem* QmitkBoundingObjectWidget::m_lastSelectedItem
protected

Definition at line 73 of file QmitkBoundingObjectWidget.h.

Referenced by SelectionChanged().

QPushButton* QmitkBoundingObjectWidget::m_LoadButton
protected

Definition at line 72 of file QmitkBoundingObjectWidget.h.

Referenced by QmitkBoundingObjectWidget().

QPushButton* QmitkBoundingObjectWidget::m_SaveButton
protected

Definition at line 71 of file QmitkBoundingObjectWidget.h.

Referenced by QmitkBoundingObjectWidget().

QTreeWidget* QmitkBoundingObjectWidget::m_TreeWidget
protected

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