Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <QmitkBoundingObjectWidget.h>
Signals | |
void | BoundingObjectsChanged () |
Public Member Functions | |
QmitkBoundingObjectWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
~QmitkBoundingObjectWidget () | |
void | SetDataStorage (mitk::DataStorage *dataStorage) |
mitk::DataStorage * | GetDataStorage () |
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::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 |
Definition at line 31 of file QmitkBoundingObjectWidget.h.
|
protected |
Definition at line 76 of file QmitkBoundingObjectWidget.h.
|
protected |
Enumerator | |
---|---|
CUBOID | |
CONE | |
ELLIPSOID | |
CYLINDER |
Definition at line 81 of file QmitkBoundingObjectWidget.h.
QmitkBoundingObjectWidget::QmitkBoundingObjectWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 38 of file QmitkBoundingObjectWidget.cpp.
References CreateBoundingObject(), m_addComboBox, m_DelButton, m_LoadButton, m_SaveButton, m_TreeWidget, OnDelButtonClicked(), OnItemDataChanged(), OnItemDoubleClicked(), and SelectionChanged().
QmitkBoundingObjectWidget::~QmitkBoundingObjectWidget | ( | ) |
Definition at line 98 of file QmitkBoundingObjectWidget.cpp.
|
protected |
Definition at line 169 of file QmitkBoundingObjectWidget.cpp.
References mitk::DataNode::GetData(), mitk::DataNode::GetStringProperty(), m_ItemNodeMap, m_TreeWidget, and MITK_ERROR.
Referenced by CreateBoundingObject().
|
signal |
Referenced by CreateBoundingObject(), OnBoundingObjectModified(), and OnItemDataChanged().
|
protectedslot |
Definition at line 323 of file QmitkBoundingObjectWidget.cpp.
References mitk::DataStorage::Add(), AddItem(), BoundingObjectsChanged(), CONE, CUBOID, CYLINDER, ELLIPSOID, mitk::RenderingManager::GetAllRegisteredRenderWindows(), mitk::BaseRenderer::GetInstance(), mitk::RenderingManager::GetInstance(), mitk::PlaneGeometry::IntersectionLine(), mitk::PlaneGeometry::IntersectionPoint(), line, m_addComboBox, m_BoundingObjectCounter, m_DataStorage, mitk::BoolProperty::New(), mitk::Cylinder::New(), mitk::Cuboid::New(), mitk::Ellipsoid::New(), mitk::Cone::New(), mitk::FloatProperty::New(), mitk::StringProperty::New(), mitk::ColorProperty::New(), mitk::DataNode::New(), and mitk::RenderingManager::RequestUpdateAll().
Referenced by QmitkBoundingObjectWidget().
mitk::DataNode::Pointer QmitkBoundingObjectWidget::GetAllBoundingObjects | ( | ) |
Definition at line 405 of file QmitkBoundingObjectWidget.cpp.
References mitk::DataStorage::GetSubset(), m_DataStorage, mitk::BoolProperty::New(), mitk::NodePredicateProperty::New(), mitk::BoundingObjectGroup::New(), mitk::DataNode::New(), and mitk::BoundingObjectGroup::Union.
Referenced by QmitkToolRoiDataSelectionBox::OnRoiDataSelectionChanged().
mitk::DataStorage * QmitkBoundingObjectWidget::GetDataStorage | ( | ) |
Definition at line 313 of file QmitkBoundingObjectWidget.cpp.
References m_DataStorage.
mitk::BoundingObject::Pointer QmitkBoundingObjectWidget::GetSelectedBoundingObject | ( | ) |
Definition at line 294 of file QmitkBoundingObjectWidget.cpp.
References mitk::DataNode::GetData(), and GetSelectedBoundingObjectNode().
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().
|
protectedslot |
Definition at line 318 of file QmitkBoundingObjectWidget.cpp.
References RemoveItem().
Referenced by QmitkBoundingObjectWidget().
|
protectedslot |
Definition at line 217 of file QmitkBoundingObjectWidget.cpp.
References BoundingObjectsChanged(), mitk::DataNode::GetData(), mitk::RenderingManager::GetInstance(), m_ItemNodeMap, m_TreeWidget, mitk::RenderingManager::RequestUpdateAll(), mitk::DataNode::SetName(), mitk::BoundingObject::SetPositive(), and mitk::DataNode::SetVisibility().
Referenced by QmitkBoundingObjectWidget().
|
protectedslot |
Definition at line 209 of file QmitkBoundingObjectWidget.cpp.
References m_TreeWidget.
Referenced by QmitkBoundingObjectWidget().
void QmitkBoundingObjectWidget::RemoveAllItems | ( | ) |
Definition at line 279 of file QmitkBoundingObjectWidget.cpp.
References m_BoundingObjectCounter, m_ItemNodeMap, and m_TreeWidget.
Referenced by QmitkToolRoiDataSelectionBox::DataStorageChanged().
|
protected |
Definition at line 251 of file QmitkBoundingObjectWidget.cpp.
References mitk::DataNode::GetData(), m_DataStorage, m_ItemNodeMap, m_TreeWidget, and mitk::DataStorage::Remove().
Referenced by OnDelButtonClicked().
|
protectedslot |
Definition at line 121 of file QmitkBoundingObjectWidget.cpp.
References us::ModuleRegistry::GetModule(), m_ItemNodeMap, m_lastAffineObserver, m_lastSelectedItem, m_TreeWidget, mitk::AffineBaseDataInteractor3D::New(), mitk::New(), OnBoundingObjectModified(), mitk::DataNode::SetBoolProperty(), and mitk::DataNode::SetDataInteractor().
Referenced by QmitkBoundingObjectWidget().
void QmitkBoundingObjectWidget::SetDataStorage | ( | mitk::DataStorage * | dataStorage | ) |
Definition at line 308 of file QmitkBoundingObjectWidget.cpp.
References m_DataStorage.
Referenced by QmitkToolRoiDataSelectionBox::SetDataStorage().
void QmitkBoundingObjectWidget::setEnabled | ( | bool | flag | ) |
Definition at line 102 of file QmitkBoundingObjectWidget.cpp.
References mitk::RenderingManager::GetInstance(), m_ItemNodeMap, mitk::RenderingManager::RequestUpdateAll(), and mitk::DataNode::SetVisibility().
Referenced by QmitkToolRoiDataSelectionBox::OnRoiDataSelectionChanged().
|
protected |
Definition at line 69 of file QmitkBoundingObjectWidget.h.
Referenced by CreateBoundingObject(), and QmitkBoundingObjectWidget().
|
protected |
Definition at line 79 of file QmitkBoundingObjectWidget.h.
Referenced by CreateBoundingObject(), and RemoveAllItems().
|
protected |
Definition at line 67 of file QmitkBoundingObjectWidget.h.
Referenced by CreateBoundingObject(), GetAllBoundingObjects(), GetDataStorage(), RemoveItem(), and SetDataStorage().
|
protected |
Definition at line 70 of file QmitkBoundingObjectWidget.h.
Referenced by QmitkBoundingObjectWidget().
|
protected |
Definition at line 77 of file QmitkBoundingObjectWidget.h.
Referenced by AddItem(), GetSelectedBoundingObjectNode(), OnItemDataChanged(), RemoveAllItems(), RemoveItem(), SelectionChanged(), and setEnabled().
|
protected |
Definition at line 74 of file QmitkBoundingObjectWidget.h.
Referenced by SelectionChanged().
|
protected |
Definition at line 73 of file QmitkBoundingObjectWidget.h.
Referenced by SelectionChanged().
|
protected |
Definition at line 72 of file QmitkBoundingObjectWidget.h.
Referenced by QmitkBoundingObjectWidget().
|
protected |
Definition at line 71 of file QmitkBoundingObjectWidget.h.
Referenced by QmitkBoundingObjectWidget().
|
protected |
Definition at line 68 of file QmitkBoundingObjectWidget.h.
Referenced by AddItem(), GetSelectedBoundingObjectNode(), OnItemDataChanged(), OnItemDoubleClicked(), QmitkBoundingObjectWidget(), RemoveAllItems(), RemoveItem(), and SelectionChanged().