BALL 1.5.0
Loading...
Searching...
No Matches
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
14#endif
15
16#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
18#endif
19
20#ifndef BALL_VIEW_DATATYP_RAYTRACEABLEGRID_H
22#endif
23
24#include <BALL/VIEW/UIC/ui_raytraceableContourSurfaceDialog.h>
25
26#include <QtWidgets/QDialog>
27
28namespace BALL
29{
30 namespace VIEW
31 {
36 : public QDialog,
37 public Ui_RaytraceableContourSurfaceDialogData,
38 public ModularWidget
39
40{
41 Q_OBJECT
42
43 public:
44
46
47
48 RaytraceableContourSurfaceDialog(RaytraceableGrid* grid, QWidget* parent = 0, const char* name = "RaytraceableContourSurfaceDialog", bool modal = false, Qt::WindowFlags fl = 0);
49
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
69
72
73 //
75
76 //
78
79 //
81
82
83 //void setDefaultRangeValues_();
84
85 protected Q_SLOTS:
86
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
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
#define BALL_VIEW_EXPORT