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

vtkKWChangeColorButton Class Reference

a button for selecting colors More...

#include <vtkKWChangeColorButton.h>

Inheritance diagram for vtkKWChangeColorButton:

Inheritance graph
[legend]
Collaboration diagram for vtkKWChangeColorButton:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkKWChangeColorButton, vtkKWWidgetWithLabel)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Create (vtkKWApplication *app)
virtual void SetCommand (vtkObject *obj, const char *method)
virtual void SetBalloonHelpString (const char *str)
virtual void UpdateEnableState ()
virtual void SetColor (double c[3])
virtual void SetColor (double r, double g, double b)
virtual double * GetColor ()
virtual void SetDialogTitle (const char *)
virtual char * GetDialogTitle ()
virtual void SetLabelOutsideButton (int)
virtual int GetLabelOutsideButton ()
virtual void LabelOutsideButtonOn ()
virtual void LabelOutsideButtonOff ()
virtual void ButtonPressCallback ()
virtual void ButtonReleaseCallback ()

Static Public Member Functions

vtkKWChangeColorButtonNew ()

Protected Member Functions

 vtkKWChangeColorButton ()
 ~vtkKWChangeColorButton ()
virtual void UpdateColorButton ()
virtual void QueryUserForColor ()
virtual void Pack ()
virtual void CreateLabel (vtkKWApplication *app)
virtual void CreateButtonFrame (vtkKWApplication *app)
virtual void Bind ()
virtual void UnBind ()

Protected Attributes

vtkKWLabelColorButton
vtkKWFrameButtonFrame
char * Command
char * DialogTitle
double Color [3]
int LabelOutsideButton

Detailed Description

a button for selecting colors

A button that can be pressed to select a color. Note: As a subclass of vtkKWWidgetWithLabel, it inherits a label and methods to set its position and visibility. Note that the default label position implemented in this class is on the left of the color label. Only a subset of the specific positions listed in vtkKWWidgetWithLabel is supported: on Left, and on Right of the color label.

See also:
vtkKWWidgetWithLabel

Definition at line 34 of file vtkKWChangeColorButton.h.


Constructor & Destructor Documentation

vtkKWChangeColorButton::vtkKWChangeColorButton  )  [protected]
 

vtkKWChangeColorButton::~vtkKWChangeColorButton  )  [protected]
 


Member Function Documentation

vtkKWChangeColorButton* vtkKWChangeColorButton::New  )  [static]
 

Reimplemented from vtkKWWidgetWithLabel.

vtkKWChangeColorButton::vtkTypeRevisionMacro vtkKWChangeColorButton  ,
vtkKWWidgetWithLabel 
 

void vtkKWChangeColorButton::PrintSelf ostream &  os,
vtkIndent  indent
 

Reimplemented from vtkKWWidgetWithLabel.

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

Create the widget.

Reimplemented from vtkKWWidgetWithLabel.

virtual void vtkKWChangeColorButton::SetColor double  c[3]  )  [inline, virtual]
 

Set/Get the current color (RGB space)

Definition at line 46 of file vtkKWChangeColorButton.h.

virtual void vtkKWChangeColorButton::SetColor double  r,
double  g,
double  b
[virtual]
 

Set/Get the current color (RGB space)

virtual double* vtkKWChangeColorButton::GetColor  )  [inline, virtual]
 

Set/Get the current color (RGB space)

Definition at line 48 of file vtkKWChangeColorButton.h.

virtual void vtkKWChangeColorButton::SetDialogTitle const char *   )  [virtual]
 

Set the text that will be used on the title of the color selection dialog.

virtual char* vtkKWChangeColorButton::GetDialogTitle  )  [virtual]
 

Set the text that will be used on the title of the color selection dialog.

virtual void vtkKWChangeColorButton::SetCommand vtkObject *  obj,
const char *  method
[virtual]
 

Set the command that is called when the color is changed. Note that the current color is passed too, as 3 RGB (double) parameters.

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

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

Reimplemented from vtkKWWidgetWithLabel.

virtual void vtkKWChangeColorButton::SetLabelOutsideButton int   )  [virtual]
 

Set the label to be outside the color button. Default is inside.

virtual int vtkKWChangeColorButton::GetLabelOutsideButton  )  [virtual]
 

Set the label to be outside the color button. Default is inside.

virtual void vtkKWChangeColorButton::LabelOutsideButtonOn  )  [virtual]
 

Set the label to be outside the color button. Default is inside.

virtual void vtkKWChangeColorButton::LabelOutsideButtonOff  )  [virtual]
 

Set the label to be outside the color button. Default is inside.

virtual void vtkKWChangeColorButton::ButtonPressCallback  )  [virtual]
 

Callbacks (handle button press and release events, etc.)

virtual void vtkKWChangeColorButton::ButtonReleaseCallback  )  [virtual]
 

Callbacks (handle button press and release events, etc.)

virtual void vtkKWChangeColorButton::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 vtkKWWidgetWithLabel.

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

Add/Remove interaction bindings

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

Add/Remove interaction bindings

virtual void vtkKWChangeColorButton::UpdateColorButton  )  [protected, virtual]
 

Update the color of the button given the current color, or use a 'disabled' color if the object is disabled.

virtual void vtkKWChangeColorButton::QueryUserForColor  )  [protected, virtual]
 

Query user for color

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

Pack or repack the widget

Reimplemented from vtkKWWidgetWithLabel.

virtual void vtkKWChangeColorButton::CreateLabel vtkKWApplication app  )  [protected, virtual]
 

Create the label (override the superclass)

Reimplemented from vtkKWWidgetWithLabel.

virtual void vtkKWChangeColorButton::CreateButtonFrame vtkKWApplication app  )  [protected, virtual]
 

Create the button frame


Member Data Documentation

vtkKWLabel* vtkKWChangeColorButton::ColorButton [protected]
 

Definition at line 91 of file vtkKWChangeColorButton.h.

vtkKWFrame* vtkKWChangeColorButton::ButtonFrame [protected]
 

Definition at line 92 of file vtkKWChangeColorButton.h.

char* vtkKWChangeColorButton::Command [protected]
 

Definition at line 94 of file vtkKWChangeColorButton.h.

char* vtkKWChangeColorButton::DialogTitle [protected]
 

Definition at line 95 of file vtkKWChangeColorButton.h.

double vtkKWChangeColorButton::Color[3] [protected]
 

Definition at line 96 of file vtkKWChangeColorButton.h.

int vtkKWChangeColorButton::LabelOutsideButton [protected]
 

Definition at line 97 of file vtkKWChangeColorButton.h.


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