Medical Imaging Interaction Toolkit  2016.11.0
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 wether the model allows to edit only visibilities (no dose value or color) More...
 

Public Member Functions

 QmitkIsoDoseLevelSetModel (QObject *parent=NULL)
 
virtual ~QmitkIsoDoseLevelSetModel ()
 
void setIsoDoseLevelSet (mitk::IsoDoseLevelSet *pSet)
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual QVariant data (const QModelIndex &index, int role) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
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 34 of file QmitkIsoDoseLevelSetModel.h.

Constructor & Destructor Documentation

QmitkIsoDoseLevelSetModel::QmitkIsoDoseLevelSetModel ( QObject *  parent = NULL)

Definition at line 23 of file QmitkIsoDoseLevelSetModel.cpp.

References mitk::IsoDoseLevelSet::New().

virtual QmitkIsoDoseLevelSetModel::~QmitkIsoDoseLevelSetModel ( )
inlinevirtual

Definition at line 40 of file QmitkIsoDoseLevelSetModel.h.

Member Function Documentation

void QmitkIsoDoseLevelSetModel::addLevel ( )

Definition at line 419 of file QmitkIsoDoseLevelSetModel.cpp.

References mitk::IsoDoseLevel::New().

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

Definition at line 62 of file QmitkIsoDoseLevelSetModel.cpp.

QVariant QmitkIsoDoseLevelSetModel::data ( const QModelIndex &  index,
int  role 
) const
virtual
void QmitkIsoDoseLevelSetModel::deleteLevel ( const QModelIndex &  index)

Definition at line 436 of file QmitkIsoDoseLevelSetModel.cpp.

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

Definition at line 157 of file QmitkIsoDoseLevelSetModel.cpp.

mitk::DoseValueAbs QmitkIsoDoseLevelSetModel::getReferenceDose ( ) const

Definition at line 325 of file QmitkIsoDoseLevelSetModel.cpp.

bool QmitkIsoDoseLevelSetModel::getShowAbsoluteDose ( ) const

Definition at line 318 of file QmitkIsoDoseLevelSetModel.cpp.

bool QmitkIsoDoseLevelSetModel::getVisibilityEditOnly ( ) const

Definition at line 332 of file QmitkIsoDoseLevelSetModel.cpp.

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

Definition at line 181 of file QmitkIsoDoseLevelSetModel.cpp.

void QmitkIsoDoseLevelSetModel::invertVisibilityColorWash ( )

Definition at line 385 of file QmitkIsoDoseLevelSetModel.cpp.

void QmitkIsoDoseLevelSetModel::invertVisibilityIsoLines ( )

Definition at line 369 of file QmitkIsoDoseLevelSetModel.cpp.

bool QmitkIsoDoseLevelSetModel::isModified ( )

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

Definition at line 449 of file QmitkIsoDoseLevelSetModel.cpp.

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

Definition at line 50 of file QmitkIsoDoseLevelSetModel.cpp.

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

Definition at line 215 of file QmitkIsoDoseLevelSetModel.cpp.

References mitk::IsoDoseLevel::SetColor().

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

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

Definition at line 35 of file QmitkIsoDoseLevelSetModel.cpp.

void QmitkIsoDoseLevelSetModel::setReferenceDose ( double  newReferenceDose)
slot

Slot that can be used to set the prescribed dose.

Definition at line 276 of file QmitkIsoDoseLevelSetModel.cpp.

References mitkThrow.

void QmitkIsoDoseLevelSetModel::setShowAbsoluteDose ( bool  showAbsoluteDose)
slot

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

Definition at line 295 of file QmitkIsoDoseLevelSetModel.cpp.

void QmitkIsoDoseLevelSetModel::setVisibilityEditOnly ( bool  onlyVisibility)
slot

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

Definition at line 306 of file QmitkIsoDoseLevelSetModel.cpp.

void QmitkIsoDoseLevelSetModel::swapVisibility ( )

Definition at line 401 of file QmitkIsoDoseLevelSetModel.cpp.

void QmitkIsoDoseLevelSetModel::switchVisibilityColorWash ( bool  activate)

Definition at line 353 of file QmitkIsoDoseLevelSetModel.cpp.

void QmitkIsoDoseLevelSetModel::switchVisibilityIsoLines ( bool  activate)

Definition at line 337 of file QmitkIsoDoseLevelSetModel.cpp.


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