00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 00005 #ifndef BALL_VIEW_DIALOGS_GRIDVISUALIZATIONDIALOG_H 00006 #define BALL_VIEW_DIALOGS_GRIDVISUALIZATIONDIALOG_H 00007 00008 #ifndef BALL_COMMON_GLOBAL_H 00009 # include <BALL/COMMON/global.h> 00010 #endif 00011 00012 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H 00013 # include <BALL/VIEW/DATATYPE/colorRGBA.h> 00014 #endif 00015 00016 #ifndef BALL_DATATYPE_REGULARDATA3D 00017 # include <BALL/DATATYPE/regularData3D.h> 00018 #endif 00019 00020 #ifndef BALL_VIEW_DATATYPE_STANDARDDATASETS_H 00021 # include <BALL/VIEW/DATATYPE/standardDatasets.h> 00022 #endif 00023 00024 #include <BALL/VIEW/UIC/ui_gridVisualizationDialog.h> 00025 00026 namespace BALL 00027 { 00028 namespace VIEW 00029 { 00033 class BALL_VIEW_EXPORT GridVisualizationDialog 00034 : public QDialog, 00035 public Ui_GridVisualizationDialogData 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 00042 GridVisualizationDialog(QWidget* parent = 0, const char* name = "GridVisualizationDialog", 00043 bool modal = FALSE, Qt::WFlags fl = 0); 00044 00046 ~GridVisualizationDialog(); 00047 00049 void setGrid(RegularData3D* grid); 00050 00052 void setController(RegularData3DController* controller); 00053 00055 void setMinValue(float value); 00056 00058 void setMaxValue(float value); 00059 00061 void setMidValue(float value); 00062 00063 public slots: 00064 00065 void accept(); 00066 void autoScale(); 00067 void gridSelected(); 00068 bool exec(); 00069 00070 protected: 00071 00072 GridVisualizationDialog(const GridVisualizationDialog& dialog); 00073 00074 bool insertGrid_(RegularData3D& grid, const String& name); 00075 void checkApplyButton_(); 00076 00077 RegularData3D* grid_; 00078 RegularData3DController* controller_; 00079 00080 std::list<RegularData3D*> grid_list_; 00081 }; 00082 00083 } // namespace VIEW 00084 } // namespace BALL 00085 00086 #endif