BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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  signals:
42  void autoScaleRequested();
43 
44  protected 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
ColorRGBA getMaxColor() const
bool isTransparencyEnabled() const
void midColorChanged(QColor color)
Ui::GridColorWidget ui
GridColorWidget(QWidget *parent)
void setTransparency_(int value, ColorButton *button)
void setMinValue(float minValue)
void setMidValue(float midValue)
void maxMaxAlphaChanged(int value)
void maxColorChanged(QColor color)
void maxMaxColorChanged(QColor color)
ColorRGBA getMinMinColor() const
void setNormalizationEnabled(bool enabled)
void minColorChanged(QColor color)
void minAlphaChanged(int value)
void midAlphaChanged(int value)
void setMaxValue(float maxValue)
-*- Mode: C++; tab-width: 2; -*-
Definition: constants.h:12
void maxAlphaChanged(int value)
void transparencyToggled(bool enabled)
ColorRGBA getMinColor() const
void minMinColorChanged(QColor color)
void normalizationToggled(bool enabled)
void validateText(QString str)
ColorRGBA getMaxMaxColor() const
ColorRGBA getMidColor() const
void setTransparencyEnabled(bool enabled)
bool isNormalizationEnabled() const
void minMinAlphaChanged(int value)