38
39
class RGBValuator : public View //public ValuatorAbstraction
44
COLORFORMAT_FLOAT = 0,
49
RGBValuator (NUX_FILE_LINE_PROTO);
50
RGBValuator (Color color, NUX_FILE_LINE_PROTO);
52
Create an initialize the widget with the CM_RGB color model and value.
59
RGBValuator (float red, float green, float blue, float alpha, NUX_FILE_LINE_PROTO);
42
RGBValuator(NUX_FILE_LINE_PROTO);
43
RGBValuator(Color const& color, NUX_FILE_LINE_PROTO);
61
45
Create an initialize the widget with the appropriate color model and value.
66
50
@param z Blue if CM_RGB, Value if CM_HSV, Saturation if CM_HLS
69
RGBValuator (eColorModel colorModel, float x, float y, float z, float alpha, NUX_FILE_LINE_PROTO);
53
RGBValuator(color::Model colorModel, float x, float y, float z, float alpha, NUX_FILE_LINE_PROTO);
74
void SetColorModel (eColorModel cm);
75
void SetColorFormat (ColorFormat cf);
58
void SetColorModel(color::Model cm);
59
void SetColorFormat(color::Format cf);
60
Color GetColor() const;
81
61
virtual long ProcessEvent (IEvent &ievent, long TraverseInfo, long ProcessEventInfo);
83
63
virtual void Draw (GraphicsEngine &GfxContext, bool force_draw);
84
64
virtual void DrawContent (GraphicsEngine &GfxContext, bool force_draw);
85
65
virtual void PostDraw (GraphicsEngine &GfxContext, bool force_draw);
87
void SetRGB (Color color);
67
void SetRGB (Color const& color);
88
68
void SetRGB (float r, float g, float b);
89
69
void SetAlpha (float alpha);
90
void SetRGBA (Color color);
70
void SetRGBA (Color const& color);
91
71
void SetRGBA (float r, float g, float b, float a);
93
73
void SetHSV (float h, float s, float v);
166
145
InputArea *m_ComponentAlpha;
168
147
TextureLayer *m_CheckboardLayer;
175
float m_HSVSaturation;
180
float m_HLSSaturation;
149
color::RedGreenBlue rgb_;
150
color::HueSaturationValue hsv_;
151
color::HueLightnessSaturation hls_;
182
154
PushButton *m_ColorModel;
183
155
PushButton *m_ColorFormat;
185
enum eColorModel m_color_model;
186
enum ColorFormat m_color_format;
157
color::Model m_color_model;
158
color::Format m_color_format;
188
160
HexRegExpValidator m_HexRegExp;
189
161
IntegerValidator m_IntRegExp;