00001 #ifndef WINDOW_H 00002 #define WINDOW_H 00003 00004 #include <QWidget> 00005 #include <QDialog> 00006 00007 #include "gradienteditor.h" 00008 #include "FlowData.h" 00009 00010 class GLWidget; 00011 00015 class Window : public QWidget 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 Window(); 00021 00022 private slots: 00023 void setDefaultGradientStops(); 00024 void setOpenFileName(); 00025 void saveGradientStops(const QGradientStops &stops, GradientEditor *editor); 00026 void setBackgroundColorEditorRangeLabel(int channel = -1); 00027 void setArrowColorEditorRangeLabel(int channel = -1); 00028 void setStreamlineColorEditorRangeLabel(int channel = -1); 00029 00030 signals: 00034 void backgroundColorTextureChanged(); 00035 00039 void arrowColorTextureChanged(); 00040 00044 void streamlineColorTextureChanged(); 00045 00046 private: 00047 QGroupBox *backgroundGroup; 00048 QGroupBox *arrowGroup; 00049 QGroupBox *streamlineGroup; 00050 GradientEditor *backgroundColorEditor; 00051 GradientEditor *arrowColorEditor; 00052 GradientEditor *streamlineColorEditor; 00053 GLWidget *glWidget; 00054 QSpinBox *streamlineDsep; 00055 QPushButton *openFile; 00056 00057 FlowData* m_dataset; 00058 00059 QString currentFileName; 00060 size_t result; 00061 int lastBackgroundColorChannel; 00062 int lastArrowColorChannel; 00063 int lastStreamlineColorChannel; 00064 }; 00065 00066 #endif