contourSurfaceDialog.h

Go to the documentation of this file.
00001 // -*- Mode: C++; tab-width: 2; -*-
00002 // vi: set ts=2:
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 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
00012 # include <BALL/VIEW/DATATYPE/colorRGBA.h>
00013 #endif
00014 
00015 #include <BALL/VIEW/UIC/ui_contourSurfaceDialog.h>
00016 
00017 namespace BALL
00018 {
00019  namespace VIEW
00020  {
00021    class DatasetController;
00022    class Dataset;
00023 
00027 class BALL_VIEW_EXPORT ContourSurfaceDialog 
00028   : public QDialog,
00029     public Ui_ContourSurfaceDialogData
00030 { 
00031     Q_OBJECT
00032 
00033   public:
00034     ContourSurfaceDialog( QWidget* parent = 0, const char* name = "ContourSurfaceDialog");
00035     ~ContourSurfaceDialog();
00036 
00037   void setGrid(Dataset* grid);
00038     Dataset* getGrid();
00039     double getThreshold() const;
00040     void setController(DatasetController* controller) {controller_ = controller;}
00041     ColorRGBA getColor();
00042 
00043   public slots:
00044     virtual bool exec();
00045 
00046   protected slots: 
00047     virtual void valuesChanged();
00048     virtual void chooseColor();
00049   
00050   private:
00051     Dataset* grid_;
00052     DatasetController* controller_;
00053 };
00054 
00055 } } // namespaces
00056 #endif // CONTOURSURFACEDIALOG_H