#include <QmitkInitialValuesModel.h>
Model that handles the definition of initial model values.
Definition at line 30 of file QmitkInitialValuesModel.h.
◆ QmitkInitialValuesModel()
QmitkInitialValuesModel::QmitkInitialValuesModel |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~QmitkInitialValuesModel()
QmitkInitialValuesModel::~QmitkInitialValuesModel |
( |
| ) |
|
|
inlineoverride |
◆ addInitialParameterImage()
void QmitkInitialValuesModel::addInitialParameterImage |
( |
const mitk::DataNode * |
node, |
|
|
mitk::ModelTraitsInterface::ParametersType::size_type |
paramIndex |
|
) |
| |
Adds an image as a source for the initial value of a parameter.
- Parameters
-
node | Pointer to the image that is the value source. |
paramIndex | Indicates which parameter is defined by the source image. It equals the position of the vector defined by setInitialValues(). |
- Precondition
- paramIndex must be in bound of the initial parametrization vector.
-
node must be a valid image instance
◆ columnCount()
int QmitkInitialValuesModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant QmitkInitialValuesModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags QmitkInitialValuesModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
◆ getInitialParametrizationDelegate()
Returns a pointer to a delegate instance that represents the parameterization of the model.
◆ getInitialValues()
Returns the current set initial values of the model.
◆ hasValidInitialValues()
bool QmitkInitialValuesModel::hasValidInitialValues |
( |
| ) |
const |
◆ headerData()
QVariant QmitkInitialValuesModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
◆ isModified()
bool QmitkInitialValuesModel::isModified |
( |
| ) |
|
Indicates if the content of the model was modified since the data was set via setInitialValues()
◆ resetInitialParameterImage()
void QmitkInitialValuesModel::resetInitialParameterImage |
( |
| ) |
|
◆ rowCount()
int QmitkInitialValuesModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
bool QmitkInitialValuesModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ setInitialValues() [1/2]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Convenience method that sets the default initial values always to zero.
◆ setInitialValues() [2/2]
Sets the names and the values of the initial parameter set for the model.
- Parameters
-
names | List of all possible parameter names. It is assumed that the index of the list equals the parameter index in the respective fitting model and its parameter values. |
values | Default values to start with. |
The documentation for this class was generated from the following file: