BALL
1.5.0
include
BALL
VIEW
DIALOGS
raytraceableContourSurfaceDialog.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_VIEW_DIALOGS_RAYTRACEABLECONTOURSURFACEDIALOG_H
6
#define BALL_VIEW_DIALOGS_RAYTRACEABLECONTOURSURFACEDIALOG_H
7
8
#ifndef BALL_COMMON_GLOBAL_H
9
# include <
BALL/COMMON/global.h
>
10
#endif
11
12
#ifndef BALL_COMMON_EXCEPTION_H
13
# include <
BALL/COMMON/exception.h
>
14
#endif
15
16
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
17
# include <
BALL/VIEW/KERNEL/modularWidget.h
>
18
#endif
19
20
#ifndef BALL_VIEW_DATATYP_RAYTRACEABLEGRID_H
21
# include <
BALL/VIEW/DATATYPE/raytraceableGrid.h
>
22
#endif
23
24
#include <BALL/VIEW/UIC/ui_raytraceableContourSurfaceDialog.h>
25
26
#include <QtWidgets/QDialog>
27
28
namespace
BALL
29
{
30
namespace
VIEW
31
{
35
class
BALL_VIEW_EXPORT
RaytraceableContourSurfaceDialog
36
:
public
QDialog
,
37
public
Ui_RaytraceableContourSurfaceDialogData,
38
public
ModularWidget
39
40
{
41
Q_OBJECT
42
43
public
:
44
45
BALL_EMBEDDABLE
(
RaytraceableContourSurfaceDialog
,
ModularWidget
)
46
47
48
RaytraceableContourSurfaceDialog
(
RaytraceableGrid
* grid,
QWidget
* parent = 0, const
char
* name = "
RaytraceableContourSurfaceDialog
",
bool
modal = false, Qt::WindowFlags fl = 0);
49
51
~
RaytraceableContourSurfaceDialog
();
52
53
void
setGrid(
RaytraceableGrid
* grid) {grid_ = grid;};
54
RaytraceableGrid
*
getGrid
() {
return
grid_;};
55
56
public
Q_SLOTS:
57
59
void
add
();
60
62
void
accept
();
63
65
void
reject
();
66
68
void
changedSliderThreshold
(
int
a);
69
71
void
changedEditThreshold
();
72
73
//
74
void
changedRangeMin
();
75
76
//
77
void
changedRangeMax
();
78
79
//
80
void
changedRangeSteps
();
81
82
83
//void setDefaultRangeValues_();
84
85
protected
Q_SLOTS:
86
87
void
setDefaultRangeValues_
();
88
89
90
protected
:
91
92
void
addModel_
(
float
threshold);
93
94
private
:
95
96
float
getValue_(
const
QAbstractSlider* slider)
const
;
97
99
float
getValue_(
const
QLineEdit
* edit)
const
;
100
101
102
// the sliders min and max
103
float
min_;
104
float
max_;
105
106
int
steps_;
107
float
current_threshold_;
108
109
RaytraceableGrid
* grid_;
110
111
};
112
113
114
}
// namespaces
115
}
116
117
#endif //BALL_VIEW_DIALOGS_RAYTRACEABLECONTOURSURFACEDIALOG_H
118
BALL::VIEW::RaytraceableContourSurfaceDialog::changedRangeSteps
void changedRangeSteps()
global.h
BALL::VIEW::RaytraceableContourSurfaceDialog::add
void add()
QDialog
BALL::VIEW::RaytraceableContourSurfaceDialog::accept
void accept()
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition:
embeddable.h:31
BALL::VIEW::RaytraceableContourSurfaceDialog
Definition:
raytraceableContourSurfaceDialog.h:40
BALL
Definition:
constants.h:13
QWidget
BALL::VIEW::RaytraceableContourSurfaceDialog::changedEditThreshold
void changedEditThreshold()
BALL::VIEW::RaytraceableContourSurfaceDialog::getGrid
RaytraceableGrid * getGrid()
Definition:
raytraceableContourSurfaceDialog.h:54
BALL::VIEW::RaytraceableContourSurfaceDialog::changedRangeMin
void changedRangeMin()
modularWidget.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::VIEW::RaytraceableContourSurfaceDialog::setDefaultRangeValues_
void setDefaultRangeValues_()
BALL::VIEW::RaytraceableContourSurfaceDialog::reject
void reject()
exception.h
BALL::VIEW::RaytraceableContourSurfaceDialog::changedSliderThreshold
void changedSliderThreshold(int a)
raytraceableGrid.h
BALL::VIEW::RaytraceableGrid
Definition:
raytraceableGrid.h:17
BALL::VIEW::RaytraceableContourSurfaceDialog::changedRangeMax
void changedRangeMax()
QLineEdit
BALL::VIEW::ModularWidget
Definition:
modularWidget.h:63
BALL::VIEW::RaytraceableContourSurfaceDialog::addModel_
void addModel_(float threshold)
Generated by
1.8.20