Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFreeIsoDoseLevelWidget Class Reference

Widget that allows to show and edit the content of an mitk::IsoDoseLevel instance. More...

#include <QmitkFreeIsoDoseLevelWidget.h>

Inheritance diagram for QmitkFreeIsoDoseLevelWidget:
Collaboration diagram for QmitkFreeIsoDoseLevelWidget:

Public Slots

void setReferenceDose (double newReferenceDose)
 Slot that can be used to set the reference dose. More...
 
void setIsoDoseLevel (mitk::IsoDoseLevel *level)
 Slot that can be used to set the dose level instance that should be handled by the widget. More...
 
void OnRelValueChanged (double newValue)
 
void OnAbsValueChanged (double newValue)
 
void OnSliderChanged (int newValue)
 
void OnVisibleClicked (bool checked)
 
void OnColorChanged (QColor color)
 

Signals

void ValueChanged (mitk::IsoDoseLevel *, mitk::DoseValueRel oldValue)
 
void ColorChanged (mitk::IsoDoseLevel *)
 
void VisualizationStyleChanged (mitk::IsoDoseLevel *)
 

Public Member Functions

 QmitkFreeIsoDoseLevelWidget (QWidget *parent=0)
 
mitk::DoseValueAbs getReferenceDose () const
 
mitk::IsoDoseLevelgetIsoDoseLevel () const
 

Protected Member Functions

void update ()
 Updates the widget according to its current settings. More...
 
void updateValue (mitk::DoseValueRel newDose)
 

Protected Attributes

mitk::DoseValueAbs m_ReferenceDose
 
mitk::IsoDoseLevel::Pointer m_IsoDoseLevel
 
bool m_InternalUpdate
 

Detailed Description

Widget that allows to show and edit the content of an mitk::IsoDoseLevel instance.

Definition at line 32 of file QmitkFreeIsoDoseLevelWidget.h.

Constructor & Destructor Documentation

QmitkFreeIsoDoseLevelWidget::QmitkFreeIsoDoseLevelWidget ( QWidget *  parent = 0)

Member Function Documentation

void QmitkFreeIsoDoseLevelWidget::ColorChanged ( mitk::IsoDoseLevel )
signal

Referenced by OnColorChanged().

mitk::IsoDoseLevel * QmitkFreeIsoDoseLevelWidget::getIsoDoseLevel ( ) const

Definition at line 44 of file QmitkFreeIsoDoseLevelWidget.cpp.

References m_IsoDoseLevel.

mitk::DoseValueAbs QmitkFreeIsoDoseLevelWidget::getReferenceDose ( ) const

Definition at line 37 of file QmitkFreeIsoDoseLevelWidget.cpp.

References m_ReferenceDose.

void QmitkFreeIsoDoseLevelWidget::OnAbsValueChanged ( double  newValue)
slot
void QmitkFreeIsoDoseLevelWidget::OnColorChanged ( QColor  color)
slot

Definition at line 109 of file QmitkFreeIsoDoseLevelWidget.cpp.

References ColorChanged(), and m_IsoDoseLevel.

Referenced by QmitkFreeIsoDoseLevelWidget().

void QmitkFreeIsoDoseLevelWidget::OnRelValueChanged ( double  newValue)
slot

Definition at line 75 of file QmitkFreeIsoDoseLevelWidget.cpp.

References m_InternalUpdate, and updateValue().

Referenced by QmitkFreeIsoDoseLevelWidget().

void QmitkFreeIsoDoseLevelWidget::OnSliderChanged ( int  newValue)
slot

Definition at line 93 of file QmitkFreeIsoDoseLevelWidget.cpp.

References m_InternalUpdate, and updateValue().

Referenced by QmitkFreeIsoDoseLevelWidget().

void QmitkFreeIsoDoseLevelWidget::OnVisibleClicked ( bool  checked)
slot
void QmitkFreeIsoDoseLevelWidget::setIsoDoseLevel ( mitk::IsoDoseLevel level)
slot

Slot that can be used to set the dose level instance that should be handled by the widget.

Definition at line 60 of file QmitkFreeIsoDoseLevelWidget.cpp.

References m_IsoDoseLevel, mitkThrow, and update().

void QmitkFreeIsoDoseLevelWidget::setReferenceDose ( double  newReferenceDose)
slot

Slot that can be used to set the reference dose.

Definition at line 50 of file QmitkFreeIsoDoseLevelWidget.cpp.

References m_ReferenceDose, and update().

void QmitkFreeIsoDoseLevelWidget::update ( )
protected

Updates the widget according to its current settings.

Definition at line 136 of file QmitkFreeIsoDoseLevelWidget.cpp.

References m_IsoDoseLevel, and updateValue().

Referenced by setIsoDoseLevel(), and setReferenceDose().

void QmitkFreeIsoDoseLevelWidget::updateValue ( mitk::DoseValueRel  newDose)
protected
void QmitkFreeIsoDoseLevelWidget::ValueChanged ( mitk::IsoDoseLevel ,
mitk::DoseValueRel  oldValue 
)
signal

Referenced by updateValue().

void QmitkFreeIsoDoseLevelWidget::VisualizationStyleChanged ( mitk::IsoDoseLevel )
signal

Referenced by OnVisibleClicked().

Member Data Documentation

bool QmitkFreeIsoDoseLevelWidget::m_InternalUpdate
protected
mitk::IsoDoseLevel::Pointer QmitkFreeIsoDoseLevelWidget::m_IsoDoseLevel
protected
mitk::DoseValueAbs QmitkFreeIsoDoseLevelWidget::m_ReferenceDose
protected

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