#include <vtkKWHSVColorSelector.h>
Inheritance diagram for vtkKWHSVColorSelector:
Public Member Functions | |
vtkTypeRevisionMacro (vtkKWHSVColorSelector, vtkKWCompositeWidget) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Create (vtkKWApplication *app) |
virtual void | SetBalloonHelpString (const char *str) |
virtual void | Update () |
virtual void | UpdateEnableState () |
virtual void | SetHueSatWheelRadius (int) |
virtual int | GetHueSatWheelRadius () |
virtual void | SetValueBoxWidth (int) |
virtual int | GetValueBoxWidth () |
virtual void | SetHueSatCursorRadius (int) |
virtual int | GetHueSatCursorRadius () |
virtual void | SetValueCursorMargin (int) |
virtual int | GetValueCursorMargin () |
virtual double * | GetSelectedColor () |
virtual void | GetSelectedColor (double &, double &, double &) |
virtual void | GetSelectedColor (double[3]) |
virtual void | SetSelectedColor (double h, double s, double v) |
virtual void | SetSelectedColor (double hsv[3]) |
virtual void | ClearSelection () |
virtual int | HasSelection () |
virtual void | SetModificationOnly (int) |
virtual int | GetModificationOnly () |
virtual void | ModificationOnlyOn () |
virtual void | ModificationOnlyOff () |
virtual void | SetHideValue (int) |
virtual int | GetHideValue () |
virtual void | HideValueOn () |
virtual void | HideValueOff () |
virtual void | SetSelectionChangedCommand (vtkObject *object, const char *method) |
virtual void | SetSelectionChangingCommand (vtkObject *object, const char *method) |
virtual void | InvokeSelectionChangedCommand () |
virtual void | InvokeSelectionChangingCommand () |
virtual void | SetInvokeCommandsWithRGB (int) |
virtual int | GetInvokeCommandsWithRGB () |
virtual void | InvokeCommandsWithRGBOn () |
virtual void | InvokeCommandsWithRGBOff () |
virtual void | HueSatPickCallback (int x, int y) |
virtual void | HueSatMoveCallback (int x, int y) |
virtual void | HueSatReleaseCallback () |
virtual void | ValuePickCallback (int x, int y) |
virtual void | ValueMoveCallback (int x, int y) |
virtual void | ValueReleaseCallback () |
virtual vtkKWCanvas * | GetHueSatWheelCanvas () |
virtual vtkKWCanvas * | GetValueBoxCanvas () |
Static Public Member Functions | |
vtkKWHSVColorSelector * | New () |
Protected Member Functions | |
vtkKWHSVColorSelector () | |
~vtkKWHSVColorSelector () | |
virtual void | InvokeCommand (const char *command) |
virtual void | Pack () |
virtual int | GetHueSatFromCoordinates (int x, int y, double &hue, double &sat) |
virtual void | GetValueFromCoordinate (int y, double &value) |
virtual int | CanvasHasTag (const char *canvas, const char *tag) |
virtual void | Bind () |
virtual void | UnBind () |
virtual void | Redraw () |
virtual void | RedrawHueSatWheelCanvas () |
virtual void | UpdateHueSatWheelImage () |
virtual void | UpdateHueSatWheelSelection () |
virtual void | RedrawValueBoxCanvas () |
virtual void | UpdateValueBoxImage () |
virtual void | UpdateValueBoxSelection () |
Protected Attributes | |
int | HueSatWheelRadius |
int | HueSatCursorRadius |
int | ValueBoxWidth |
int | ValueCursorMargin |
int | Selected |
double | SelectedColor [3] |
int | ModificationOnly |
int | InvokeCommandsWithRGB |
int | HideValue |
double | PreviouslySelectedColor [3] |
char * | SelectionChangedCommand |
char * | SelectionChangingCommand |
vtkKWCanvas * | HueSatWheelCanvas |
vtkKWCanvas * | ValueBoxCanvas |
vtkKWLabel * | HueSatLabel |
vtkKWLabel * | ValueLabel |
A widget that allows the user choose a HSV color interactively
Definition at line 28 of file vtkKWHSVColorSelector.h.
|
|
|
|
|
Reimplemented from vtkKWCompositeWidget. |
|
|
|
Reimplemented from vtkKWCompositeWidget. |
|
Create the widget. Reimplemented from vtkKWCompositeWidget. |
|
Set/Get the hue/saturation wheel radius in pixels. |
|
Set/Get the hue/saturation wheel radius in pixels. |
|
Set/Get the value box width in pixels. |
|
Set/Get the value box width in pixels. |
|
Set/Get the radius of the selection cursor in the hue/sat wheel in pixels. |
|
Set/Get the radius of the selection cursor in the hue/sat wheel in pixels. |
|
Set/Get the horizontal outer margin of the selection cursor in the value box in pixels. |
|
Set/Get the horizontal outer margin of the selection cursor in the value box in pixels. |
|
Select/Deselect a color (in HSV space) |
|
Select/Deselect a color (in HSV space) |
|
Select/Deselect a color (in HSV space) |
|
Select/Deselect a color (in HSV space) |
|
Select/Deselect a color (in HSV space) Definition at line 68 of file vtkKWHSVColorSelector.h. |
|
Select/Deselect a color (in HSV space) |
|
Select/Deselect a color (in HSV space) |
|
User can only modify the selection, it can not create a selection (i.e. pick a color) when nothing has been selected yet. |
|
User can only modify the selection, it can not create a selection (i.e. pick a color) when nothing has been selected yet. |
|
User can only modify the selection, it can not create a selection (i.e. pick a color) when nothing has been selected yet. |
|
User can only modify the selection, it can not create a selection (i.e. pick a color) when nothing has been selected yet. |
|
Hide the Value UI. |
|
Hide the Value UI. |
|
Hide the Value UI. |
|
Hide the Value UI. |
|
Commands. Note that the current color is passed, as 3 HSV (double) parameters, unless InvokeCommandsWithRGB is true, in that case the current HSV value is converted to RGB first. |
|
Commands. Note that the current color is passed, as 3 HSV (double) parameters, unless InvokeCommandsWithRGB is true, in that case the current HSV value is converted to RGB first. |
|
Commands. Note that the current color is passed, as 3 HSV (double) parameters, unless InvokeCommandsWithRGB is true, in that case the current HSV value is converted to RGB first. |
|
Commands. Note that the current color is passed, as 3 HSV (double) parameters, unless InvokeCommandsWithRGB is true, in that case the current HSV value is converted to RGB first. |
|
Set/Get if the commands should be invoked with RGB parameters instead of the current HSV value. |
|
Set/Get if the commands should be invoked with RGB parameters instead of the current HSV value. |
|
Set/Get if the commands should be invoked with RGB parameters instead of the current HSV value. |
|
Set/Get if the commands should be invoked with RGB parameters instead of the current HSV value. |
|
Set the string that enables balloon help for this widget. Override to pass down to children. Reimplemented from vtkKWWidget. |
|
Callbacks |
|
Callbacks |
|
Callbacks |
|
Callbacks |
|
Callbacks |
|
Callbacks |
|
Access to the canvas and internal elements |
|
Access to the canvas and internal elements |
|
Update the whole UI depending on the value of the Ivars |
|
Update the "enable" state of the object and its internal parts. Depending on different Ivars (this->Enabled, the application's Limited Edition Mode, etc.), the "enable" state of the object is updated and propagated to its internal parts/subwidgets. This will, for example, enable/disable parts of the widget UI, enable/disable the visibility of 3D widgets, etc. Reimplemented from vtkKWWidget. |
|
|
|
Bind/Unbind all components. |
|
Bind/Unbind all components. |
|
Pack the widget |
|
Redraw or update canvas elements |
|
Redraw or update canvas elements |
|
Redraw or update canvas elements |
|
Redraw or update canvas elements |
|
Redraw or update canvas elements |
|
Redraw or update canvas elements |
|
Redraw or update canvas elements |
|
Get Hue/Sat given coordinates in Hue/Sat wheel image Return 1 if OK, 0 if coords were out of the wheel (i.e. sat was > 1.0) |
|
Get Value given coordinates in Value image |
|
Convenience method to look for a tag in a canvas. |
|
Definition at line 144 of file vtkKWHSVColorSelector.h. |
|
Definition at line 145 of file vtkKWHSVColorSelector.h. |
|
Definition at line 146 of file vtkKWHSVColorSelector.h. |
|
Definition at line 147 of file vtkKWHSVColorSelector.h. |
|
Definition at line 148 of file vtkKWHSVColorSelector.h. |
|
Definition at line 149 of file vtkKWHSVColorSelector.h. |
|
Definition at line 150 of file vtkKWHSVColorSelector.h. |
|
Definition at line 151 of file vtkKWHSVColorSelector.h. |
|
Definition at line 152 of file vtkKWHSVColorSelector.h. |
|
Definition at line 153 of file vtkKWHSVColorSelector.h. |
|
Definition at line 157 of file vtkKWHSVColorSelector.h. |
|
Definition at line 158 of file vtkKWHSVColorSelector.h. |
|
Definition at line 164 of file vtkKWHSVColorSelector.h. |
|
Definition at line 165 of file vtkKWHSVColorSelector.h. |
|
Definition at line 166 of file vtkKWHSVColorSelector.h. |
|
Definition at line 167 of file vtkKWHSVColorSelector.h. |