BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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 <QtGui/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::WFlags fl = 0);
49
51
~
RaytraceableContourSurfaceDialog
();
52
53
void
setGrid
(
RaytraceableGrid
* grid) {grid_ = grid;};
54
RaytraceableGrid
*
getGrid
() {
return
grid_;};
55
56
public
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
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
float
getValue_(
const
QLineEdit
* edit)
const
98
throw
(
Exception::InvalidFormat
);
99
100
101
// the sliders min and max
102
float
min_
;
103
float
max_
;
104
105
int
steps_
;
106
float
current_threshold_
;
107
108
RaytraceableGrid
*
grid_
;
109
110
};
111
112
113
}
// namespaces
114
}
115
116
#endif //BALL_VIEW_DIALOGS_RAYTRACEABLECONTOURSURFACEDIALOG_H
117
Generated by
1.8.3.1