00001
00002
00003
00004 #ifndef BALL_VIEW_DIALOGS_CONTOURSURFACEDIALOG_H
00005 #define BALL_VIEW_DIALOGS_CONTOURSURFACEDIALOG_H
00006
00007 #ifndef BALL_COMMON_GLOBAL_H
00008 # include <BALL/COMMON/global.h>
00009 #endif
00010
00011 #ifdef BALL_COMPILER_MSVC
00012 # include <BALL/VIEW/UIC/ui_contourSurfaceDialog.h>
00013 #else
00014 # include <BALL/VIEW/UIC/contourSurfaceDialogData.h>
00015 #endif
00016
00017
00018 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
00019 #include <BALL/VIEW/DATATYPE/colorRGBA.h>
00020 #endif
00021
00022 namespace BALL
00023 {
00024 namespace VIEW
00025 {
00026 class DatasetController;
00027 class Dataset;
00028
00032 class BALL_VIEW_EXPORT ContourSurfaceDialog
00033 : public QDialog,
00034 public Ui_ContourSurfaceDialogData
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 ContourSurfaceDialog( QWidget* parent = 0, const char* name = "ContourSurfaceDialog");
00040 ~ContourSurfaceDialog();
00041
00042 Dataset* getGrid();
00043 double getThreshold() const;
00044 void setController(DatasetController* controller) {controller_ = controller;}
00045 ColorRGBA getColor();
00046
00047 public slots:
00048 virtual bool exec();
00049
00050 protected slots:
00051 virtual void valuesChanged();
00052 virtual void chooseColor();
00053
00054 private:
00055 Dataset* grid_;
00056 DatasetController* controller_;
00057 };
00058
00059 } }
00060 #endif // CONTOURSURFACEDIALOG_H