BALL  1.5.0
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
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 
28 namespace 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 
68  void changedSliderThreshold(int a);
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 
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)