Medical Imaging Interaction Toolkit
2024.06.00
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 | ) |
|
override |
void QmitkInitialValuesDelegate::setDataStorage | ( | mitk::DataStorage * | storage | ) |
|
override |
|
override |
void QmitkInitialValuesDelegate::setNodePredicate | ( | mitk::NodePredicateBase * | predicate | ) |
|
protected |
|
protected |
Predicates that is used to filter for potential/allowed images in the data storage
Definition at line 56 of file QmitkInitialValuesDelegate.h.
|
protected |
Storage is used as source for potantial initial value images.
Definition at line 54 of file QmitkInitialValuesDelegate.h.