Widget for displaying and editing a single free (user-defined) iso dose level.
More...
#include <QmitkFreeIsoDoseLevelWidget.h>
Widget for displaying and editing a single free (user-defined) iso dose level.
Provides UI controls for adjusting the dose value (absolute and relative spin boxes and a slider), the iso line color, and the iso line visibility of an mitk::IsoDoseLevel instance. Changes are communicated via signals.
- See also
- mitk::IsoDoseLevel
-
QmitkIsoDoseLevelSetModel
Definition at line 40 of file QmitkFreeIsoDoseLevelWidget.h.
◆ QmitkFreeIsoDoseLevelWidget()
| QmitkFreeIsoDoseLevelWidget::QmitkFreeIsoDoseLevelWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructor.
- Parameters
-
| [in] | parent | Optional parent widget. |
◆ ~QmitkFreeIsoDoseLevelWidget()
| QmitkFreeIsoDoseLevelWidget::~QmitkFreeIsoDoseLevelWidget |
( |
| ) |
|
|
override |
◆ ColorChanged
Emitted when the color of the iso dose level changes.
- Parameters
-
| [in] | level | Pointer to the modified IsoDoseLevel. |
◆ getIsoDoseLevel()
Returns the iso dose level currently managed by this widget.
- Returns
- Pointer to the current IsoDoseLevel instance.
◆ getReferenceDose()
Returns the currently set reference dose.
- Returns
- The reference dose value in Gy.
◆ OnAbsValueChanged
| void QmitkFreeIsoDoseLevelWidget::OnAbsValueChanged |
( |
double |
newValue | ) |
|
|
slot |
Handles changes from the absolute dose value spin box.
- Parameters
-
| [in] | newValue | The new absolute dose value in Gy. |
◆ OnColorChanged
| void QmitkFreeIsoDoseLevelWidget::OnColorChanged |
( |
QColor |
color | ) |
|
|
slot |
Handles color changes from the color button.
- Parameters
-
| [in] | color | The newly selected QColor. |
◆ OnRelValueChanged
| void QmitkFreeIsoDoseLevelWidget::OnRelValueChanged |
( |
double |
newValue | ) |
|
|
slot |
Handles changes from the relative dose value spin box.
- Parameters
-
| [in] | newValue | The new relative dose value in percent. |
◆ OnSliderChanged
| void QmitkFreeIsoDoseLevelWidget::OnSliderChanged |
( |
int |
newValue | ) |
|
|
slot |
Handles changes from the dose slider.
- Parameters
-
| [in] | newValue | The new slider value (interpreted as percentage). |
◆ OnVisibleClicked
| void QmitkFreeIsoDoseLevelWidget::OnVisibleClicked |
( |
bool |
checked | ) |
|
|
slot |
Handles clicks on the visibility checkbox.
- Parameters
-
| [in] | checked | Whether the iso line should be visible. |
◆ setIsoDoseLevel
Sets the iso dose level instance managed by this widget.
- Parameters
-
| [in] | level | The IsoDoseLevel to display and edit. Must not be nullptr. |
- Exceptions
-
◆ setReferenceDose
| void QmitkFreeIsoDoseLevelWidget::setReferenceDose |
( |
double |
newReferenceDose | ) |
|
|
slot |
Sets the reference dose used for absolute/relative conversion.
- Parameters
-
| [in] | newReferenceDose | The new reference dose in Gy. |
◆ update()
| void QmitkFreeIsoDoseLevelWidget::update |
( |
| ) |
|
|
protected |
Updates the widget according to its current settings.
◆ updateValue()
◆ ValueChanged
Emitted when the dose value of the iso dose level changes.
- Parameters
-
| [in] | level | Pointer to the modified IsoDoseLevel. |
| [in] | oldValue | The previous relative dose value before the change. |
◆ VisualizationStyleChanged
Emitted when the iso line visibility of the iso dose level changes.
- Parameters
-
| [in] | level | Pointer to the modified IsoDoseLevel. |
◆ m_Controls
| std::unique_ptr<Ui::QmitkFreeIsoDoseLevelWidget> QmitkFreeIsoDoseLevelWidget::m_Controls |
|
protected |
◆ m_InternalUpdate
| bool QmitkFreeIsoDoseLevelWidget::m_InternalUpdate |
|
protected |
◆ m_IsoDoseLevel
| mitk::IsoDoseLevel::Pointer QmitkFreeIsoDoseLevelWidget::m_IsoDoseLevel |
|
protected |
◆ m_ReferenceDose
The documentation for this class was generated from the following file: