vtkKWSpinButtons Class Reference

A set of spin-buttons. More...

#include <vtkKWSpinButtons.h>

Inheritance diagram for vtkKWSpinButtons:
Inheritance graph
[legend]
Collaboration diagram for vtkKWSpinButtons:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkKWCompositeWidget Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void UpdateEnableState ()

Static Public Member Functions

static vtkKWSpinButtonsNew ()
static int IsTypeOf (const char *type)
static vtkKWSpinButtonsSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkKWSpinButtons ()
 ~vtkKWSpinButtons ()
virtual void CreateWidget ()
virtual void Pack ()
virtual void UpdateArrowOrientation ()

Protected Attributes

vtkKWPushButtonPreviousButton
vtkKWPushButtonNextButton
int ArrowOrientation
int LayoutOrientation
int ButtonsPadX
int ButtonsPadY



enum  { ArrowOrientationHorizontal = 0, ArrowOrientationVertical }
enum  { LayoutOrientationHorizontal = 0, LayoutOrientationVertical }
virtual vtkKWPushButtonGetPreviousButton ()
virtual vtkKWPushButtonGetNextButton ()
virtual void SetPreviousCommand (vtkObject *object, const char *method)
virtual void SetNextCommand (vtkObject *object, const char *method)
virtual void SetArrowOrientation (int)
virtual int GetArrowOrientation ()
virtual void SetArrowOrientationToHorizontal ()
virtual void SetArrowOrientationToVertical ()
virtual void SetLayoutOrientation (int)
virtual int GetLayoutOrientation ()
virtual void SetLayoutOrientationToHorizontal ()
virtual void SetLayoutOrientationToVertical ()
virtual void SetButtonsPadX (int)
virtual int GetButtonsPadX ()
virtual void SetButtonsPadY (int)
virtual int GetButtonsPadY ()
virtual void SetButtonsWidth (int w)
virtual int GetButtonsWidth ()
virtual void SetButtonsHeight (int h)
virtual int GetButtonsHeight ()

Detailed Description

A set of spin-buttons.

This widget implements a small set of two buttons that can be used to switch to the next or previous value of an external variable through callbacks. The buttons can be set to display up/down or left/right arrows, and laid out vertically or horizontally. The 'previous' button is mapped to the up/left arrow, the 'next' button is mapped to the 'down/right' arrow.

Thanks:
This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Information on the National Centers for Biomedical Computing can be obtained from http://nihroadmap.nih.gov/bioinformatics.

Definition at line 39 of file vtkKWSpinButtons.h.


Member Typedef Documentation

Reimplemented from vtkKWCompositeWidget.

Definition at line 44 of file vtkKWSpinButtons.h.


Member Enumeration Documentation

anonymous enum

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

Enumerator:
ArrowOrientationHorizontal 
ArrowOrientationVertical 

Definition at line 67 of file vtkKWSpinButtons.h.

anonymous enum

Set/Get the layout of the spin buttons. If set to horizontal, the 'previous' button is packed to the left of the 'next' button. If set to vertical, the 'previous' button is packed on top of the 'next' button. BTX

Enumerator:
LayoutOrientationHorizontal 
LayoutOrientationVertical 

Definition at line 88 of file vtkKWSpinButtons.h.


Constructor & Destructor Documentation

vtkKWSpinButtons::vtkKWSpinButtons (  )  [protected]
vtkKWSpinButtons::~vtkKWSpinButtons (  )  [protected]

Member Function Documentation

static vtkKWSpinButtons* vtkKWSpinButtons::New (  )  [static]

Reimplemented from vtkKWCompositeWidget.

virtual const char* vtkKWSpinButtons::GetClassName (  )  [virtual]

Reimplemented from vtkKWCompositeWidget.

static int vtkKWSpinButtons::IsTypeOf ( const char *  type  )  [static]

Reimplemented from vtkKWCompositeWidget.

virtual int vtkKWSpinButtons::IsA ( const char *  type  )  [virtual]

Reimplemented from vtkKWCompositeWidget.

static vtkKWSpinButtons* vtkKWSpinButtons::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkKWCompositeWidget.

void vtkKWSpinButtons::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkKWCompositeWidget.

virtual vtkKWPushButton* vtkKWSpinButtons::GetPreviousButton (  )  [virtual]

Get the buttons

virtual vtkKWPushButton* vtkKWSpinButtons::GetNextButton (  )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual void vtkKWSpinButtons::SetPreviousCommand ( vtkObject object,
const char *  method 
) [virtual]

Specifies the commands to associate to the next and previous buttons. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command.

virtual void vtkKWSpinButtons::SetNextCommand ( vtkObject object,
const char *  method 
) [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual void vtkKWSpinButtons::SetArrowOrientation ( int   )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual int vtkKWSpinButtons::GetArrowOrientation (  )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual void vtkKWSpinButtons::SetArrowOrientationToHorizontal (  )  [inline, virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

Definition at line 75 of file vtkKWSpinButtons.h.

virtual void vtkKWSpinButtons::SetArrowOrientationToVertical (  )  [inline, virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

Definition at line 78 of file vtkKWSpinButtons.h.

virtual void vtkKWSpinButtons::SetLayoutOrientation ( int   )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual int vtkKWSpinButtons::GetLayoutOrientation (  )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual void vtkKWSpinButtons::SetLayoutOrientationToHorizontal (  )  [inline, virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

Definition at line 96 of file vtkKWSpinButtons.h.

virtual void vtkKWSpinButtons::SetLayoutOrientationToVertical (  )  [inline, virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

Definition at line 99 of file vtkKWSpinButtons.h.

virtual void vtkKWSpinButtons::SetButtonsPadX ( int   )  [virtual]

Set/Get the padding that will be applied around each buttons. (default to 0).

virtual int vtkKWSpinButtons::GetButtonsPadX (  )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual void vtkKWSpinButtons::SetButtonsPadY ( int   )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual int vtkKWSpinButtons::GetButtonsPadY (  )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual void vtkKWSpinButtons::SetButtonsWidth ( int  w  )  [virtual]

Set the buttons width/height. No effects if called before Create()

virtual int vtkKWSpinButtons::GetButtonsWidth (  )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual void vtkKWSpinButtons::SetButtonsHeight ( int  h  )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual int vtkKWSpinButtons::GetButtonsHeight (  )  [virtual]

Set/Get the arrow orientation of the spin buttons. If set to horizontal, left/right arrows will be used. If set to vertical, up/down arrows will be used. BTX

virtual void vtkKWSpinButtons::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 vtkKWSpinButtons::CreateWidget (  )  [protected, virtual]

Create the widget.

Reimplemented from vtkKWCompositeWidget.

virtual void vtkKWSpinButtons::Pack (  )  [protected, virtual]
virtual void vtkKWSpinButtons::UpdateArrowOrientation (  )  [protected, virtual]

Member Data Documentation

Definition at line 138 of file vtkKWSpinButtons.h.

Definition at line 139 of file vtkKWSpinButtons.h.

Definition at line 141 of file vtkKWSpinButtons.h.

Definition at line 142 of file vtkKWSpinButtons.h.

Definition at line 144 of file vtkKWSpinButtons.h.

Definition at line 145 of file vtkKWSpinButtons.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Tue Apr 27 02:37:38 2010 for KWWidgets by  doxygen 1.6.1