BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
gridVisualizationDialog.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_GRIDVISUALIZATIONDIALOG_H
6 #define BALL_VIEW_DIALOGS_GRIDVISUALIZATIONDIALOG_H
7 
8 #ifndef BALL_COMMON_GLOBAL_H
9 # include <BALL/COMMON/global.h>
10 #endif
11 
12 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
14 #endif
15 
16 #ifndef BALL_DATATYPE_REGULARDATA3D
18 #endif
19 
20 #ifndef BALL_VIEW_DATATYPE_STANDARDDATASETS_H
22 #endif
23 
24 #include <BALL/VIEW/UIC/ui_gridVisualizationDialog.h>
25 
26 namespace BALL
27 {
28  namespace VIEW
29  {
34  : public QDialog,
35  public Ui_GridVisualizationDialogData
36  {
37  Q_OBJECT
38 
39  public:
40 
42  GridVisualizationDialog(QWidget* parent = 0, const char* name = "GridVisualizationDialog",
43  bool modal = FALSE, Qt::WFlags fl = 0);
44 
47 
49  void setGrid(RegularData3D* grid);
50 
52  void setController(RegularData3DController* controller);
53 
55  void setMinValue(float value);
56 
58  void setMaxValue(float value);
59 
61  void setMidValue(float value);
62 
63  public slots:
64 
65  void accept();
66  void autoScale();
67  void gridSelected();
68  bool exec();
69 
70  protected:
71 
73 
74  bool insertGrid_(RegularData3D& grid, const String& name);
75  void checkApplyButton_();
76 
79 
80  std::list<RegularData3D*> grid_list_;
81  };
82 
83  } // namespace VIEW
84 } // namespace BALL
85 
86 #endif