|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Widget for creating, managing, and selecting bounding objects. More...
#include <QmitkBoundingObjectWidget.h>


Signals | |
| void | BoundingObjectsChanged () |
| Emitted when bounding objects are added, removed, or modified. More... | |
Public Member Functions | |
| QmitkBoundingObjectWidget (QWidget *parent=nullptr, Qt::WindowFlags f={}) | |
| Construct the bounding object widget. More... | |
| ~QmitkBoundingObjectWidget () override | |
| Destructor. More... | |
| void | SetDataStorage (mitk::DataStorage *dataStorage) |
| Set the data storage used to store bounding object nodes. More... | |
| mitk::DataStorage * | GetDataStorage () |
| Get the currently assigned data storage. More... | |
| mitk::BoundingObject::Pointer | GetSelectedBoundingObject () |
| Get the currently selected bounding object. More... | |
| mitk::DataNode::Pointer | GetSelectedBoundingObjectNode () |
| Get the data node of the currently selected bounding object. More... | |
| mitk::DataNode::Pointer | GetAllBoundingObjects () |
| Get a data node containing a BoundingObjectGroup with all bounding objects. More... | |
| void | setEnabled (bool flag) |
| Enable or disable the widget and toggle bounding object visibility. More... | |
| void | OnBoundingObjectModified (const itk::EventObject &e) |
| ITK observer callback for bounding object modification events. More... | |
| void | RemoveAllItems () |
| Remove all bounding object items from the list and reset the counter. More... | |
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::DataStorage * | m_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 |
Widget for creating, managing, and selecting bounding objects.
Provides a tree view listing bounding objects (cuboid, cone, ellipsoid, cylinder) with controls to add, remove, rename, and toggle visibility and inversion. Selected bounding objects receive an AffineBaseDataInteractor3D for interactive 3D manipulation. A union BoundingObjectGroup of all objects can be retrieved.
Definition at line 39 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 127 of file QmitkBoundingObjectWidget.h.
|
protected |
| Enumerator | |
|---|---|
| CUBOID | |
| CONE | |
| ELLIPSOID | |
| CYLINDER | |
Definition at line 132 of file QmitkBoundingObjectWidget.h.
| QmitkBoundingObjectWidget::QmitkBoundingObjectWidget | ( | QWidget * | parent = nullptr, |
| Qt::WindowFlags | f = {} |
||
| ) |
Construct the bounding object widget.
| [in] | parent | The parent widget. |
| [in] | f | Window flags. |
|
override |
Destructor.
|
protected |
|
signal |
Emitted when bounding objects are added, removed, or modified.
|
protectedslot |
| mitk::DataNode::Pointer QmitkBoundingObjectWidget::GetAllBoundingObjects | ( | ) |
Get a data node containing a BoundingObjectGroup with all bounding objects.
Creates a union BoundingObjectGroup from all nodes in the data storage that have the "bounding object" property set to true.
| mitk::DataStorage* QmitkBoundingObjectWidget::GetDataStorage | ( | ) |
Get the currently assigned data storage.
| mitk::BoundingObject::Pointer QmitkBoundingObjectWidget::GetSelectedBoundingObject | ( | ) |
Get the currently selected bounding object.
| mitk::DataNode::Pointer QmitkBoundingObjectWidget::GetSelectedBoundingObjectNode | ( | ) |
Get the data node of the currently selected bounding object.
| void QmitkBoundingObjectWidget::OnBoundingObjectModified | ( | const itk::EventObject & | e | ) |
ITK observer callback for bounding object modification events.
| [in] | e | The ITK event object (AffineInteractionEvent). |
|
protectedslot |
|
protectedslot |
|
protectedslot |
| void QmitkBoundingObjectWidget::RemoveAllItems | ( | ) |
Remove all bounding object items from the list and reset the counter.
|
protected |
|
protectedslot |
| void QmitkBoundingObjectWidget::SetDataStorage | ( | mitk::DataStorage * | dataStorage | ) |
Set the data storage used to store bounding object nodes.
| [in] | dataStorage | Pointer to the data storage instance. |
| void QmitkBoundingObjectWidget::setEnabled | ( | bool | flag | ) |
Enable or disable the widget and toggle bounding object visibility.
| [in] | flag | True to enable, false to disable. |
|
protected |
Definition at line 120 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 130 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 118 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 121 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 128 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 125 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 124 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 123 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 122 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 119 of file QmitkBoundingObjectWidget.h.