Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
QmitkSliderNavigatorWidget.h
Go to the documentation of this file.
1
/*===================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center,
6
Division of Medical and Biological Informatics.
7
All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without
10
even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
A PARTICULAR PURPOSE.
12
13
See LICENSE.txt or http://www.mitk.org for details.
14
15
===================================================================*/
16
17
#ifndef QMITKSLIDERNAVIGATORWIDGET_H_
18
#define QMITKSLIDERNAVIGATORWIDGET_H_
19
20
#include "
MitkQtWidgetsExtExports.h
"
21
#include "ui_QmitkSliderNavigator.h"
22
23
#include <
mitkStepper.h
>
24
25
#include <QString>
26
#include <QWidget>
27
28
class
MITKQTWIDGETSEXT_EXPORT
QmitkSliderNavigatorWidget
:
public
QWidget,
public
Ui::QmitkSliderNavigator
29
{
30
Q_OBJECT
31
32
public
:
33
QmitkSliderNavigatorWidget
(QWidget *parent =
nullptr
, Qt::WindowFlags f =
nullptr
);
34
35
QString GetLabelUnit();
36
43
QString ClippedValueToString(
float
value);
44
48
QString GetMinValueLabel();
49
50
QString GetMaxValueLabel();
51
52
int
GetPos();
53
54
bool
GetInverseDirection()
const
;
55
56
bool
GetInvertedControls()
const
;
57
58
public
slots:
59
66
void
Refetch();
67
68
void
SetStepper(
mitk::Stepper
*stepper);
69
70
void
ShowLabels(
bool
show);
71
76
void
ShowLabelUnit(
bool
show);
77
78
void
SetPos(
int
val);
79
80
void
SetInverseDirection(
bool
inverseDirection);
81
82
void
SetInvertedControls(
bool
invertedControls);
83
84
protected
slots:
85
86
void
slider_valueChanged(
double
);
87
92
void
SetLabelValues(
float
min
,
float
max
);
93
94
void
SetLabelValuesValid(
bool
minValid,
bool
maxValid);
95
100
void
SetLabelUnit(
const
char
*unit);
101
105
void
SetLabels();
106
107
void
spinBox_valueChanged(
double
);
108
109
110
protected
:
111
bool
m_HasLabelUnit
;
112
bool
m_MaxValueValid
;
113
bool
m_MinValueValid
;
114
QString
m_LabelUnit
;
115
mitk::Stepper::Pointer
m_Stepper
;
116
bool
m_InRefetch
;
117
bool
m_HasLabels
;
118
float
m_MinValue
;
119
float
m_MaxValue
;
120
121
bool
m_InverseDirection
;
122
bool
m_InvertedControls
;
123
124
};
125
126
#endif
QmitkSliderNavigatorWidget::m_MaxValueValid
bool m_MaxValueValid
Definition:
QmitkSliderNavigatorWidget.h:112
QmitkSliderNavigatorWidget::m_HasLabelUnit
bool m_HasLabelUnit
Definition:
QmitkSliderNavigatorWidget.h:111
QmitkSliderNavigatorWidget::m_LabelUnit
QString m_LabelUnit
Definition:
QmitkSliderNavigatorWidget.h:114
QmitkSliderNavigatorWidget::m_MaxValue
float m_MaxValue
Definition:
QmitkSliderNavigatorWidget.h:119
QmitkSliderNavigatorWidget::m_InverseDirection
bool m_InverseDirection
Definition:
QmitkSliderNavigatorWidget.h:121
MITKQTWIDGETSEXT_EXPORT
#define MITKQTWIDGETSEXT_EXPORT
Definition:
MitkQtWidgetsExtExports.h:15
QmitkSliderNavigatorWidget::m_MinValue
float m_MinValue
Definition:
QmitkSliderNavigatorWidget.h:118
QmitkSliderNavigatorWidget::m_MinValueValid
bool m_MinValueValid
Definition:
QmitkSliderNavigatorWidget.h:113
QmitkSliderNavigatorWidget::m_Stepper
mitk::Stepper::Pointer m_Stepper
Definition:
QmitkSliderNavigatorWidget.h:115
QmitkSliderNavigatorWidget::m_InvertedControls
bool m_InvertedControls
Definition:
QmitkSliderNavigatorWidget.h:122
QmitkSliderNavigatorWidget::m_InRefetch
bool m_InRefetch
Definition:
QmitkSliderNavigatorWidget.h:116
QmitkSliderNavigatorWidget
Definition:
QmitkSliderNavigatorWidget.h:28
max
static T max(T x, T y)
Definition:
svm.cpp:70
mitkStepper.h
min
static T min(T x, T y)
Definition:
svm.cpp:67
MitkQtWidgetsExtExports.h
mitk::Stepper
Helper class to step through a list.
Definition:
mitkStepper.h:51
itk::SmartPointer< Self >
QmitkSliderNavigatorWidget::m_HasLabels
bool m_HasLabels
Definition:
QmitkSliderNavigatorWidget.h:117
git
MITK
Modules
QtWidgetsExt
include
QmitkSliderNavigatorWidget.h
Generated on Fri Feb 3 2017 20:52:14 for Medical Imaging Interaction Toolkit by
1.8.9.1