Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkKWHSVColorSelector Class Reference

an HSV color selector More...

#include <vtkKWHSVColorSelector.h>

Inheritance diagram for vtkKWHSVColorSelector:

Inheritance graph
[legend]
Collaboration diagram for vtkKWHSVColorSelector:

Collaboration graph
[legend]
List of all members.

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 vtkKWCanvasGetHueSatWheelCanvas ()
virtual vtkKWCanvasGetValueBoxCanvas ()

Static Public Member Functions

vtkKWHSVColorSelectorNew ()

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
vtkKWCanvasHueSatWheelCanvas
vtkKWCanvasValueBoxCanvas
vtkKWLabelHueSatLabel
vtkKWLabelValueLabel

Detailed Description

an HSV color selector

A widget that allows the user choose a HSV color interactively

Definition at line 28 of file vtkKWHSVColorSelector.h.


Constructor & Destructor Documentation

vtkKWHSVColorSelector::vtkKWHSVColorSelector  )  [protected]
 

vtkKWHSVColorSelector::~vtkKWHSVColorSelector  )  [protected]
 


Member Function Documentation

vtkKWHSVColorSelector* vtkKWHSVColorSelector::New  )  [static]
 

Reimplemented from vtkKWCompositeWidget.

vtkKWHSVColorSelector::vtkTypeRevisionMacro vtkKWHSVColorSelector  ,
vtkKWCompositeWidget 
 

void vtkKWHSVColorSelector::PrintSelf ostream &  os,
vtkIndent  indent
 

Reimplemented from vtkKWCompositeWidget.

virtual void vtkKWHSVColorSelector::Create vtkKWApplication app  )  [virtual]
 

Create the widget.

Reimplemented from vtkKWCompositeWidget.

virtual void vtkKWHSVColorSelector::SetHueSatWheelRadius int   )  [virtual]
 

Set/Get the hue/saturation wheel radius in pixels.

virtual int vtkKWHSVColorSelector::GetHueSatWheelRadius  )  [virtual]
 

Set/Get the hue/saturation wheel radius in pixels.

virtual void vtkKWHSVColorSelector::SetValueBoxWidth int   )  [virtual]
 

Set/Get the value box width in pixels.

virtual int vtkKWHSVColorSelector::GetValueBoxWidth  )  [virtual]
 

Set/Get the value box width in pixels.

virtual void vtkKWHSVColorSelector::SetHueSatCursorRadius int   )  [virtual]
 

Set/Get the radius of the selection cursor in the hue/sat wheel in pixels.

virtual int vtkKWHSVColorSelector::GetHueSatCursorRadius  )  [virtual]
 

Set/Get the radius of the selection cursor in the hue/sat wheel in pixels.

virtual void vtkKWHSVColorSelector::SetValueCursorMargin int   )  [virtual]
 

Set/Get the horizontal outer margin of the selection cursor in the value box in pixels.

virtual int vtkKWHSVColorSelector::GetValueCursorMargin  )  [virtual]
 

Set/Get the horizontal outer margin of the selection cursor in the value box in pixels.

virtual double* vtkKWHSVColorSelector::GetSelectedColor  )  [virtual]
 

Select/Deselect a color (in HSV space)

virtual void vtkKWHSVColorSelector::GetSelectedColor double &  ,
double &  ,
double & 
[virtual]
 

Select/Deselect a color (in HSV space)

virtual void vtkKWHSVColorSelector::GetSelectedColor double  [3]  )  [virtual]
 

Select/Deselect a color (in HSV space)

virtual void vtkKWHSVColorSelector::SetSelectedColor double  h,
double  s,
double  v
[virtual]
 

Select/Deselect a color (in HSV space)

virtual void vtkKWHSVColorSelector::SetSelectedColor double  hsv[3]  )  [inline, virtual]
 

Select/Deselect a color (in HSV space)

Definition at line 68 of file vtkKWHSVColorSelector.h.

virtual void vtkKWHSVColorSelector::ClearSelection  )  [virtual]
 

Select/Deselect a color (in HSV space)

virtual int vtkKWHSVColorSelector::HasSelection  )  [virtual]
 

Select/Deselect a color (in HSV space)

virtual void vtkKWHSVColorSelector::SetModificationOnly int   )  [virtual]
 

User can only modify the selection, it can not create a selection (i.e. pick a color) when nothing has been selected yet.

virtual int vtkKWHSVColorSelector::GetModificationOnly  )  [virtual]
 

User can only modify the selection, it can not create a selection (i.e. pick a color) when nothing has been selected yet.

virtual void vtkKWHSVColorSelector::ModificationOnlyOn  )  [virtual]
 

User can only modify the selection, it can not create a selection (i.e. pick a color) when nothing has been selected yet.

virtual void vtkKWHSVColorSelector::ModificationOnlyOff  )  [virtual]
 

User can only modify the selection, it can not create a selection (i.e. pick a color) when nothing has been selected yet.

virtual void vtkKWHSVColorSelector::SetHideValue int   )  [virtual]
 

Hide the Value UI.

virtual int vtkKWHSVColorSelector::GetHideValue  )  [virtual]
 

Hide the Value UI.

virtual void vtkKWHSVColorSelector::HideValueOn  )  [virtual]
 

Hide the Value UI.

virtual void vtkKWHSVColorSelector::HideValueOff  )  [virtual]
 

Hide the Value UI.

virtual void vtkKWHSVColorSelector::SetSelectionChangedCommand vtkObject *  object,
const char *  method
[virtual]
 

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.

virtual void vtkKWHSVColorSelector::SetSelectionChangingCommand vtkObject *  object,
const char *  method
[virtual]
 

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.

virtual void vtkKWHSVColorSelector::InvokeSelectionChangedCommand  )  [virtual]
 

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.

virtual void vtkKWHSVColorSelector::InvokeSelectionChangingCommand  )  [virtual]
 

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.

virtual void vtkKWHSVColorSelector::SetInvokeCommandsWithRGB int   )  [virtual]
 

Set/Get if the commands should be invoked with RGB parameters instead of the current HSV value.

virtual int vtkKWHSVColorSelector::GetInvokeCommandsWithRGB  )  [virtual]
 

Set/Get if the commands should be invoked with RGB parameters instead of the current HSV value.

virtual void vtkKWHSVColorSelector::InvokeCommandsWithRGBOn  )  [virtual]
 

Set/Get if the commands should be invoked with RGB parameters instead of the current HSV value.

virtual void vtkKWHSVColorSelector::InvokeCommandsWithRGBOff  )  [virtual]
 

Set/Get if the commands should be invoked with RGB parameters instead of the current HSV value.

virtual void vtkKWHSVColorSelector::SetBalloonHelpString const char *  str  )  [virtual]
 

Set the string that enables balloon help for this widget. Override to pass down to children.

Reimplemented from vtkKWWidget.

virtual void vtkKWHSVColorSelector::HueSatPickCallback int  x,
int  y
[virtual]
 

Callbacks

virtual void vtkKWHSVColorSelector::HueSatMoveCallback int  x,
int  y
[virtual]
 

Callbacks

virtual void vtkKWHSVColorSelector::HueSatReleaseCallback  )  [virtual]
 

Callbacks

virtual void vtkKWHSVColorSelector::ValuePickCallback int  x,
int  y
[virtual]
 

Callbacks

virtual void vtkKWHSVColorSelector::ValueMoveCallback int  x,
int  y
[virtual]
 

Callbacks

virtual void vtkKWHSVColorSelector::ValueReleaseCallback  )  [virtual]
 

Callbacks

virtual vtkKWCanvas* vtkKWHSVColorSelector::GetHueSatWheelCanvas  )  [virtual]
 

Access to the canvas and internal elements

virtual vtkKWCanvas* vtkKWHSVColorSelector::GetValueBoxCanvas  )  [virtual]
 

Access to the canvas and internal elements

virtual void vtkKWHSVColorSelector::Update  )  [virtual]
 

Update the whole UI depending on the value of the Ivars

virtual void vtkKWHSVColorSelector::UpdateEnableState  )  [virtual]
 

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.

virtual void vtkKWHSVColorSelector::InvokeCommand const char *  command  )  [protected, virtual]
 

virtual void vtkKWHSVColorSelector::Bind  )  [protected, virtual]
 

Bind/Unbind all components.

virtual void vtkKWHSVColorSelector::UnBind  )  [protected, virtual]
 

Bind/Unbind all components.

virtual void vtkKWHSVColorSelector::Pack  )  [protected, virtual]
 

Pack the widget

virtual void vtkKWHSVColorSelector::Redraw  )  [protected, virtual]
 

Redraw or update canvas elements

virtual void vtkKWHSVColorSelector::RedrawHueSatWheelCanvas  )  [protected, virtual]
 

Redraw or update canvas elements

virtual void vtkKWHSVColorSelector::UpdateHueSatWheelImage  )  [protected, virtual]
 

Redraw or update canvas elements

virtual void vtkKWHSVColorSelector::UpdateHueSatWheelSelection  )  [protected, virtual]
 

Redraw or update canvas elements

virtual void vtkKWHSVColorSelector::RedrawValueBoxCanvas  )  [protected, virtual]
 

Redraw or update canvas elements

virtual void vtkKWHSVColorSelector::UpdateValueBoxImage  )  [protected, virtual]
 

Redraw or update canvas elements

virtual void vtkKWHSVColorSelector::UpdateValueBoxSelection  )  [protected, virtual]
 

Redraw or update canvas elements

virtual int vtkKWHSVColorSelector::GetHueSatFromCoordinates int  x,
int  y,
double &  hue,
double &  sat
[protected, virtual]
 

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)

virtual void vtkKWHSVColorSelector::GetValueFromCoordinate int  y,
double &  value
[protected, virtual]
 

Get Value given coordinates in Value image

virtual int vtkKWHSVColorSelector::CanvasHasTag const char *  canvas,
const char *  tag
[protected, virtual]
 

Convenience method to look for a tag in a canvas.


Member Data Documentation

int vtkKWHSVColorSelector::HueSatWheelRadius [protected]
 

Definition at line 144 of file vtkKWHSVColorSelector.h.

int vtkKWHSVColorSelector::HueSatCursorRadius [protected]
 

Definition at line 145 of file vtkKWHSVColorSelector.h.

int vtkKWHSVColorSelector::ValueBoxWidth [protected]
 

Definition at line 146 of file vtkKWHSVColorSelector.h.

int vtkKWHSVColorSelector::ValueCursorMargin [protected]
 

Definition at line 147 of file vtkKWHSVColorSelector.h.

int vtkKWHSVColorSelector::Selected [protected]
 

Definition at line 148 of file vtkKWHSVColorSelector.h.

double vtkKWHSVColorSelector::SelectedColor[3] [protected]
 

Definition at line 149 of file vtkKWHSVColorSelector.h.

int vtkKWHSVColorSelector::ModificationOnly [protected]
 

Definition at line 150 of file vtkKWHSVColorSelector.h.

int vtkKWHSVColorSelector::InvokeCommandsWithRGB [protected]
 

Definition at line 151 of file vtkKWHSVColorSelector.h.

int vtkKWHSVColorSelector::HideValue [protected]
 

Definition at line 152 of file vtkKWHSVColorSelector.h.

double vtkKWHSVColorSelector::PreviouslySelectedColor[3] [protected]
 

Definition at line 153 of file vtkKWHSVColorSelector.h.

char* vtkKWHSVColorSelector::SelectionChangedCommand [protected]
 

Definition at line 157 of file vtkKWHSVColorSelector.h.

char* vtkKWHSVColorSelector::SelectionChangingCommand [protected]
 

Definition at line 158 of file vtkKWHSVColorSelector.h.

vtkKWCanvas* vtkKWHSVColorSelector::HueSatWheelCanvas [protected]
 

Definition at line 164 of file vtkKWHSVColorSelector.h.

vtkKWCanvas* vtkKWHSVColorSelector::ValueBoxCanvas [protected]
 

Definition at line 165 of file vtkKWHSVColorSelector.h.

vtkKWLabel* vtkKWHSVColorSelector::HueSatLabel [protected]
 

Definition at line 166 of file vtkKWHSVColorSelector.h.

vtkKWLabel* vtkKWHSVColorSelector::ValueLabel [protected]
 

Definition at line 167 of file vtkKWHSVColorSelector.h.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:38:45 2006 for ParaView by doxygen 1.3.5