Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Toolkit includes. More...
#include <QmitkInitialValuesDelegate.h>
Public Member Functions | |
QmitkInitialValuesDelegate (QObject *parent=nullptr) | |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
void | setEditorData (QWidget *editor, const QModelIndex &index) const override |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override |
void | setDataStorage (mitk::DataStorage *storage) |
void | setNodePredicate (mitk::NodePredicateBase *predicate) |
Protected Member Functions | |
int | valueType (const QModelIndex &index) const |
Protected Attributes | |
mitk::DataStorage::Pointer | m_Storage |
mitk::NodePredicateBase::Pointer | m_Predicate |
Toolkit includes.
An item delegate for rendering and editing the initial value (source) for a parameter. The delegate assumes the following: 1) the data requested with the edit role, will be an double if it is an simple scalar type. If the type is image, it will be a pointer to the currently selected data node. If nothing is selected now it will be a nullptr.
Definition at line 32 of file QmitkInitialValuesDelegate.h.
QmitkInitialValuesDelegate::QmitkInitialValuesDelegate | ( | QObject * | parent = nullptr | ) |
Definition at line 24 of file QmitkInitialValuesDelegate.cpp.
|
override |
Definition at line 28 of file QmitkInitialValuesDelegate.cpp.
References m_Predicate, m_Storage, and valueType().
void QmitkInitialValuesDelegate::setDataStorage | ( | mitk::DataStorage * | storage | ) |
Definition at line 104 of file QmitkInitialValuesDelegate.cpp.
References m_Storage, and setNodePredicate().
Referenced by QmitkInitialValuesManagerWidget::setDataStorage(), and setModelData().
|
override |
Definition at line 63 of file QmitkInitialValuesDelegate.cpp.
References QmitkDataStorageComboBox::Find(), and valueType().
|
override |
Definition at line 86 of file QmitkInitialValuesDelegate.cpp.
References QmitkDataStorageComboBox::GetSelectedNode(), setDataStorage(), and valueType().
void QmitkInitialValuesDelegate::setNodePredicate | ( | mitk::NodePredicateBase * | predicate | ) |
Definition at line 110 of file QmitkInitialValuesDelegate.cpp.
References m_Predicate.
Referenced by setDataStorage(), and QmitkInitialValuesManagerWidget::setReferenceImageGeometry().
|
protected |
Definition at line 56 of file QmitkInitialValuesDelegate.cpp.
Referenced by createEditor(), setEditorData(), and setModelData().
|
protected |
Predicates that is used to filter for potential/allowed images in the data storage
Definition at line 56 of file QmitkInitialValuesDelegate.h.
Referenced by createEditor(), and setNodePredicate().
|
protected |
Storage is used as source for potantial initial value images.
Definition at line 54 of file QmitkInitialValuesDelegate.h.
Referenced by createEditor(), and setDataStorage().