Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkIsoDoseLevelSetModel Class Reference

#include <QmitkIsoDoseLevelSetModel.h>

Inheritance diagram for QmitkIsoDoseLevelSetModel:
Collaboration diagram for QmitkIsoDoseLevelSetModel:

Public Slots

void setReferenceDose (double newReferenceDose)
 Slot that can be used to set the prescribed dose. More...
 
void setShowAbsoluteDose (bool showAbsoluteDose)
 Slot that can be used to adjust whether the dose should be displayed in absolute or relative units. More...
 
void setVisibilityEditOnly (bool onlyVisibility)
 Slat that can be used to adjust whether the model allows to edit only visibilities (no dose value or color) More...
 

Public Member Functions

 QmitkIsoDoseLevelSetModel (QObject *parent=nullptr)
 
 ~QmitkIsoDoseLevelSetModel () override
 
void setIsoDoseLevelSet (mitk::IsoDoseLevelSet *pSet)
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
bool getShowAbsoluteDose () const
 
mitk::DoseValueAbs getReferenceDose () const
 
bool getVisibilityEditOnly () const
 
void switchVisibilityIsoLines (bool activate)
 
void switchVisibilityColorWash (bool activate)
 
void invertVisibilityIsoLines ()
 
void invertVisibilityColorWash ()
 
void swapVisibility ()
 
void addLevel ()
 
void deleteLevel (const QModelIndex &index)
 
bool isModified ()
 

Detailed Description

Model that handles a iso dose level set and allows viewing and editing of its contents. Please see special delegates (QmitkDoseColorDelegate, QmitkDoseValueDelegate, QmitkDoseVisualStyleDelegate) to handle visualization and editing in views that work on this model.

Warning
This class is not yet documented. Use "git blame" and ask the author to provide basic documentation.

Definition at line 30 of file QmitkIsoDoseLevelSetModel.h.

Constructor & Destructor Documentation

◆ QmitkIsoDoseLevelSetModel()

QmitkIsoDoseLevelSetModel::QmitkIsoDoseLevelSetModel ( QObject *  parent = nullptr)
explicit

◆ ~QmitkIsoDoseLevelSetModel()

QmitkIsoDoseLevelSetModel::~QmitkIsoDoseLevelSetModel ( )
inlineoverride

Definition at line 36 of file QmitkIsoDoseLevelSetModel.h.

Member Function Documentation

◆ addLevel()

void QmitkIsoDoseLevelSetModel::addLevel ( )

◆ columnCount()

int QmitkIsoDoseLevelSetModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ data()

QVariant QmitkIsoDoseLevelSetModel::data ( const QModelIndex &  index,
int  role 
) const
override

◆ deleteLevel()

void QmitkIsoDoseLevelSetModel::deleteLevel ( const QModelIndex &  index)

◆ flags()

Qt::ItemFlags QmitkIsoDoseLevelSetModel::flags ( const QModelIndex &  index) const
override

◆ getReferenceDose()

mitk::DoseValueAbs QmitkIsoDoseLevelSetModel::getReferenceDose ( ) const

◆ getShowAbsoluteDose()

bool QmitkIsoDoseLevelSetModel::getShowAbsoluteDose ( ) const

◆ getVisibilityEditOnly()

bool QmitkIsoDoseLevelSetModel::getVisibilityEditOnly ( ) const

◆ headerData()

QVariant QmitkIsoDoseLevelSetModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

◆ invertVisibilityColorWash()

void QmitkIsoDoseLevelSetModel::invertVisibilityColorWash ( )

◆ invertVisibilityIsoLines()

void QmitkIsoDoseLevelSetModel::invertVisibilityIsoLines ( )

◆ isModified()

bool QmitkIsoDoseLevelSetModel::isModified ( )

Indicates if the content of the model was modified since the data was set via setIsoDoseLevelSet()

◆ rowCount()

int QmitkIsoDoseLevelSetModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ setData()

bool QmitkIsoDoseLevelSetModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

◆ setIsoDoseLevelSet()

void QmitkIsoDoseLevelSetModel::setIsoDoseLevelSet ( mitk::IsoDoseLevelSet pSet)

Sets the data handled by the model and resets the modified flag

◆ setReferenceDose

void QmitkIsoDoseLevelSetModel::setReferenceDose ( double  newReferenceDose)
slot

Slot that can be used to set the prescribed dose.

◆ setShowAbsoluteDose

void QmitkIsoDoseLevelSetModel::setShowAbsoluteDose ( bool  showAbsoluteDose)
slot

Slot that can be used to adjust whether the dose should be displayed in absolute or relative units.

◆ setVisibilityEditOnly

void QmitkIsoDoseLevelSetModel::setVisibilityEditOnly ( bool  onlyVisibility)
slot

Slat that can be used to adjust whether the model allows to edit only visibilities (no dose value or color)

◆ swapVisibility()

void QmitkIsoDoseLevelSetModel::swapVisibility ( )

◆ switchVisibilityColorWash()

void QmitkIsoDoseLevelSetModel::switchVisibilityColorWash ( bool  activate)

◆ switchVisibilityIsoLines()

void QmitkIsoDoseLevelSetModel::switchVisibilityIsoLines ( bool  activate)

The documentation for this class was generated from the following file: