BALL  1.5.0
gridColorWidget.h
Go to the documentation of this file.
1 #ifndef BALL_VIEW_WIDGETS_GRIDCOLORWIDGET_H
2 #define BALL_VIEW_WIDGETS_GRIDCOLORWIDGET_H
3 
4 #include <BALL/VIEW/UIC/ui_gridColorWidget.h>
5 
6 namespace BALL
7 {
8  namespace VIEW
9  {
10  class GridColorWidget : public QWidget
11  {
12  Q_OBJECT
13 
14  public:
15  GridColorWidget(QWidget* parent);
16 
17  //Accessors
18  void setMinValue(float minValue);
19  float getMinValue() const;
20 
21  void setMidValue(float midValue);
22  float getMidValue() const;
23 
24  void setMaxValue(float maxValue);
25  float getMaxValue() const;
26 
27  void setTransparencyEnabled(bool enabled);
28  bool isTransparencyEnabled() const;
29 
30  void setNormalizationEnabled(bool enabled);
31  bool isNormalizationEnabled() const;
32 
33  ColorRGBA getMinMinColor() const;
34  ColorRGBA getMinColor() const;
35  ColorRGBA getMidColor() const;
36  ColorRGBA getMaxColor() const;
37  ColorRGBA getMaxMaxColor() const;
38 
39  int getNumLevels() const;
40 
41  Q_SIGNALS:
42  void autoScaleRequested();
43 
44  protected Q_SLOTS:
45  void transparencyToggled(bool enabled);
46  void normalizationToggled(bool enabled);
47  void validateText(QString str);
48 
49  void minMinColorChanged(QColor color);
50  void minColorChanged(QColor color);
51  void midColorChanged(QColor color);
52  void maxColorChanged(QColor color);
53  void maxMaxColorChanged(QColor color);
54 
55  void minMinAlphaChanged(int value);
56  void minAlphaChanged(int value);
57  void midAlphaChanged(int value);
58  void maxAlphaChanged(int value);
59  void maxMaxAlphaChanged(int value);
60 
61  protected:
62  void setTransparency_(int value, ColorButton* button);
63  void setTransparency_(const QColor& color, QSpinBox* box);
64  Ui::GridColorWidget ui;
65  };
66 
67  }
68 }
69 
70 #endif //BALL_VIEW_WIDGETS_GRIDCOLORWIDGET_H
void midAlphaChanged(int value)
void minColorChanged(QColor color)
Ui::GridColorWidget ui
ColorRGBA getMaxMaxColor() const
void setMaxValue(float maxValue)
void setTransparency_(int value, ColorButton *button)
bool isNormalizationEnabled() const
ColorRGBA getMinColor() const
void minMinAlphaChanged(int value)
bool isTransparencyEnabled() const
void setMinValue(float minValue)
void minAlphaChanged(int value)
void normalizationToggled(bool enabled)
void maxMaxAlphaChanged(int value)
ColorRGBA getMinMinColor() const
void setMidValue(float midValue)
GridColorWidget(QWidget *parent)
void maxColorChanged(QColor color)
ColorRGBA getMidColor() const
ColorRGBA getMaxColor() const
Definition: constants.h:12
void maxMaxColorChanged(QColor color)
void minMinColorChanged(QColor color)
void maxAlphaChanged(int value)
void setTransparencyEnabled(bool enabled)
void transparencyToggled(bool enabled)
void setNormalizationEnabled(bool enabled)
void validateText(QString str)
void midColorChanged(QColor color)