BALL  1.4.1
gridColorWidget.h
Go to the documentation of this file.
00001 #ifndef BALL_VIEW_WIDGETS_GRIDCOLORWIDGET_H
00002 #define BALL_VIEW_WIDGETS_GRIDCOLORWIDGET_H
00003 
00004 #include <BALL/VIEW/UIC/ui_gridColorWidget.h>
00005 
00006 namespace BALL
00007 {
00008   namespace VIEW
00009   {
00010     class GridColorWidget : public QWidget
00011     {
00012       Q_OBJECT
00013 
00014       public:
00015         GridColorWidget(QWidget* parent);
00016 
00017         //Accessors
00018         void setMinValue(float minValue);
00019         float getMinValue() const;
00020 
00021         void setMidValue(float midValue);
00022         float getMidValue() const;
00023 
00024         void setMaxValue(float maxValue);
00025         float getMaxValue() const;
00026 
00027         void setTransparencyEnabled(bool enabled);
00028         bool isTransparencyEnabled() const;
00029 
00030         void setNormalizationEnabled(bool enabled);
00031         bool isNormalizationEnabled() const;
00032 
00033         ColorRGBA getMinMinColor() const;
00034         ColorRGBA getMinColor() const;
00035         ColorRGBA getMidColor() const;
00036         ColorRGBA getMaxColor() const;
00037         ColorRGBA getMaxMaxColor() const;
00038 
00039         int getNumLevels() const;
00040 
00041       signals:
00042         void autoScaleRequested();
00043 
00044       protected slots:
00045         void transparencyToggled(bool enabled);
00046         void normalizationToggled(bool enabled);
00047         void validateText(QString str);
00048 
00049         void minMinColorChanged(QColor color);
00050         void minColorChanged(QColor color);
00051         void midColorChanged(QColor color);
00052         void maxColorChanged(QColor color);
00053         void maxMaxColorChanged(QColor color);
00054 
00055         void minMinAlphaChanged(int value);
00056         void minAlphaChanged(int value);
00057         void midAlphaChanged(int value);
00058         void maxAlphaChanged(int value);
00059         void maxMaxAlphaChanged(int value);
00060 
00061       protected:
00062         void setTransparency_(int value, ColorButton* button);
00063         void setTransparency_(const QColor& color, QSpinBox* box);
00064         Ui::GridColorWidget ui;
00065     };
00066 
00067   }
00068 }
00069 
00070 #endif //BALL_VIEW_WIDGETS_GRIDCOLORWIDGET_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines