37 #ifndef __vtkKWColorPresetSelector_h
38 #define __vtkKWColorPresetSelector_h
47 void PrintSelf(ostream& os, vtkIndent indent);
54 virtual void GetPresetColorAsRGB(
int id,
double &r,
double &g,
double &b);
55 virtual void GetPresetColorAsRGB(
int id,
double rgb[3]);
56 virtual int SetPresetColorAsRGB(
int id,
double r,
double g,
double b);
57 virtual int SetPresetColorAsRGB(
int id,
double rgb[3]);
58 virtual void GetPresetColorAsHSV(
int id,
double &h,
double &s,
double &v);
59 virtual void GetPresetColorAsHSV(
int id,
double hsv[3]);
60 virtual int SetPresetColorAsHSV(
int id,
double h,
double s,
double v);
61 virtual int SetPresetColorAsHSV(
int id,
double hsv[3]);
62 virtual int GetIdOfPresetWithColorAsRGB(
double r,
double g,
double b);
63 virtual int GetIdOfPresetWithColorAsRGB(
double rgb[3]);
68 virtual int SetPresetCommentAsHexadecimalRGB(
int id);
69 virtual int GetPresetCommentAsHexadecimalRGB(
int id,
int &r,
int &g,
int &b);
70 virtual int HasPresetCommentAsHexadecimalRGB(
int id);
74 virtual void AddDefaultColorPresets();
79 virtual int RemoveDuplicatedColors();
93 virtual void SetDrawColorCellAsColorButton(
int);
94 vtkGetMacro(DrawColorCellAsColorButton,
int);
95 vtkBooleanMacro(DrawColorCellAsColorButton,
int);
110 vtkSetStringMacro(RegistryKey);
111 vtkGetStringMacro(RegistryKey);
117 virtual void SavePresetsToRegistry();
118 virtual void RestorePresetsFromRegistry();
123 static const char *ColorColumnName;
153 virtual int GetColorColumnIndex();
155 int DrawColorCellAsColorButton;
163 static int CompareRGBColors(
double rgb1[3],
double rgb2[3]);
164 static int CompareRGBColors(
double r1,
double g1,
double b1,
165 double r2,
double g2,
double b2);