#include <QmitkPointListModel.h>
Definition at line 22 of file QmitkPointListModel.h.
◆ QmitkPointListModel()
QmitkPointListModel::QmitkPointListModel |
( |
mitk::DataNode * |
= nullptr , |
|
|
int |
t = 0 , |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~QmitkPointListModel()
QmitkPointListModel::~QmitkPointListModel |
( |
| ) |
|
|
override |
◆ CheckForPointSetInNode()
◆ data()
QVariant QmitkPointListModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
interface of QAbstractListModel
◆ flags()
Qt::ItemFlags QmitkPointListModel::flags |
( |
const QModelIndex & |
| ) |
const |
|
override |
◆ GetModelIndexForPointID()
returns a QModelIndex for a given point ID
Documentation The mitk::PointSet uses a map to store points in an ID<-->Point relation. The IDs are not necessarily continuously numbered, therefore, we can not directly use the point ID as a QModelIndex. This method returns a QModelIndex for a given point ID in the outgoing parameter index.
- Parameters
-
[in] | id | The point ID for which the QModelIndex will be created |
[out] | index | if a point with the ID id was found, index will contain a corresponding QModelIndex for that point |
- Returns
- returns true, if a valid QModelIndex was created, false otherwise
◆ GetPointForModelIndex()
get point and point ID that correspond to a given QModelIndex
The mitk::PointSet uses a map to store points in an ID<-->Point relation. The IDs are not necessarily continuously numbered, therefore, we can not directly use the QModelIndex as point ID. This method returns the point and the corresponding point id for a given QModelIndex. The point and the point ID are returned in the outgoing parameters p and id. If a valid point and ID were found, the method returns true, otherwise it returns false
- Parameters
-
[in] | index | the index for which a point is requested. The row() part of the index is used to find a corresponding point |
[out] | p | If a valid point is found, it will be stored in the p parameter |
[out] | id | If a valid point is found, the corresponding ID will be stored in id |
- Returns
- Returns true, if a valid point was found, false otherwise
◆ GetPointSet()
which point set to work on
◆ GetPointSetNode()
◆ GetTimeStep()
int QmitkPointListModel::GetTimeStep |
( |
| ) |
const |
which time step to display/model
◆ headerData()
QVariant QmitkPointListModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
interface of QAbstractListModel
◆ MoveSelectedPointDown
void QmitkPointListModel::MoveSelectedPointDown |
( |
| ) |
|
|
slot |
◆ MoveSelectedPointUp
void QmitkPointListModel::MoveSelectedPointUp |
( |
| ) |
|
|
slot |
◆ ObserveNewPointSet()
void QmitkPointListModel::ObserveNewPointSet |
( |
mitk::DataNode * |
pointSetNode | ) |
|
|
protected |
internally observe different point set
◆ OnPointSetChanged()
void QmitkPointListModel::OnPointSetChanged |
( |
const itk::EventObject & |
e | ) |
|
itk observer for point set "modified" events
◆ OnPointSetDeleted()
void QmitkPointListModel::OnPointSetDeleted |
( |
const itk::EventObject & |
e | ) |
|
itk observer for point set "delete" events
◆ RemoveSelectedPoint
void QmitkPointListModel::RemoveSelectedPoint |
( |
| ) |
|
|
slot |
◆ rowCount()
int QmitkPointListModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
interface of QAbstractListModel
◆ SetPointSetNode()
void QmitkPointListModel::SetPointSetNode |
( |
mitk::DataNode * |
pointSetNode | ) |
|
which point set to work on
◆ SetTimeStep()
void QmitkPointListModel::SetTimeStep |
( |
int |
t | ) |
|
which time step to display/model
◆ SignalUpdateSelection
void QmitkPointListModel::SignalUpdateSelection |
( |
| ) |
|
|
signal |
emitted, when views should update their selection status (because mouse interactions in render windows can change the selection status of points)
◆ m_PointSetDeletedObserverTag
unsigned int QmitkPointListModel::m_PointSetDeletedObserverTag |
|
protected |
◆ m_PointSetModifiedObserverTag
unsigned int QmitkPointListModel::m_PointSetModifiedObserverTag |
|
protected |
◆ m_PointSetNode
◆ m_TimeStep
int QmitkPointListModel::m_TimeStep |
|
protected |
The documentation for this class was generated from the following file: