00001
00002
00003
00004
00005
00006
00007 #ifndef BALL_VIEW_DIALOGS_GRIDVISUALIZATIONDIALOG_H
00008 #define BALL_VIEW_DIALOGS_GRIDVISUALIZATIONDIALOG_H
00009
00010 #ifndef BALL_COMMON_GLOBAL_H
00011 # include <BALL/COMMON/global.h>
00012 #endif
00013
00014 #ifdef BALL_COMPILER_MSVC
00015 # include <BALL/VIEW/UIC/ui_gridVisualizationDialog.h>
00016 #else
00017 # include <BALL/VIEW/UIC/gridVisualizationDialogData.h>
00018 #endif
00019
00020
00021 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
00022 # include <BALL/VIEW/DATATYPE/colorRGBA.h>
00023 #endif
00024
00025 #ifndef BALL_DATATYPE_REGULARDATA3D
00026 # include <BALL/DATATYPE/regularData3D.h>
00027 #endif
00028
00029 #ifndef BALL_DATATYPE_LIST_H
00030 # include <BALL/DATATYPE/list.h>
00031 #endif
00032
00033 #ifndef BALL_VIEW_DATATYPE_STANDARDDATASETS_H
00034 # include <BALL/VIEW/DATATYPE/standardDatasets.h>
00035 #endif
00036
00037 namespace BALL
00038 {
00039 namespace VIEW
00040 {
00044 class BALL_VIEW_EXPORT GridVisualizationDialog
00045 : public QDialog,
00046 public Ui_GridVisualizationDialogData
00047 {
00048 Q_OBJECT
00049
00050 public:
00051
00053 GridVisualizationDialog(QWidget* parent = 0, const char* name = "GridVisualizationDialog",
00054 bool modal = FALSE, Qt::WFlags fl = 0);
00055
00057 ~GridVisualizationDialog();
00058
00060 void setGrid(RegularData3D* grid);
00061
00063 void setController(RegularData3DController* controller);
00064
00066 void setMinValue(float value);
00067
00069 void setMaxValue(float value);
00070
00072 void setMidValue(float value);
00073
00074 public slots:
00075
00076 void accept();
00077 void maxPressed();
00078 void midPressed();
00079 void minPressed();
00080 void minMinPressed();
00081 void maxMaxPressed();
00082 void autoScale();
00083 void gridSelected();
00084 bool exec();
00085
00086 protected slots:
00087
00088 void gridTransparencyChanged();
00089 void normalizationChanged();
00090
00091 protected:
00092
00093 GridVisualizationDialog(const GridVisualizationDialog& dialog);
00094
00095 bool insertGrid_(RegularData3D& grid, const String& name);
00096 void setColor_(ColorRGBA& color, const QLabel* label, const QSpinBox* box);
00097 void getColor_(const ColorRGBA& color, QLabel* label, QSpinBox* box);
00098 void checkApplyButton_();
00099
00100 RegularData3D* grid_;
00101 RegularData3DController* controller_;
00102
00103 ColorRGBA min_min_color, min_color, mid_color, max_color, max_max_color;
00104
00105 List<RegularData3D*> grid_list_;
00106 };
00107
00108 }
00109 }
00110
00111 #endif