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

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.

[NOHEADER]

enum  { ArrowOrientationHorizontal = 0, ArrowOrientationVertical }
virtual void SetArrowOrientation (int)
virtual int GetArrowOrientation ()
virtual void SetArrowOrientationToHorizontal ()
virtual void SetArrowOrientationToVertical ()

[NOHEADER]

enum  { LayoutOrientationHorizontal = 0, LayoutOrientationVertical }
virtual void SetLayoutOrientation (int)
virtual int GetLayoutOrientation ()
virtual void SetLayoutOrientationToHorizontal ()
virtual void SetLayoutOrientationToVertical ()

Public Types


Public Member Functions

 vtkTypeRevisionMacro (vtkKWSpinButtons, vtkKWCompositeWidget)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Create (vtkKWApplication *app)
virtual void UpdateEnableState ()
virtual vtkKWPushButtonGetPreviousButton ()
virtual vtkKWPushButtonGetNextButton ()
virtual void SetPreviousCommand (vtkObject *object, const char *method)
virtual void SetNextCommand (vtkObject *object, const char *method)
virtual void SetButtonsPadX (int)
virtual int GetButtonsPadX ()
virtual void SetButtonsPadY (int)
virtual int GetButtonsPadY ()
virtual void SetButtonsWidth (int w)
virtual int GetButtonsWidth ()

Static Public Member Functions

vtkKWSpinButtonsNew ()

Protected Member Functions

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

Protected Attributes

vtkKWPushButtonPreviousButton
vtkKWPushButtonNextButton
int ArrowOrientation
int LayoutOrientation
int ButtonsPadX
int ButtonsPadY

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 40 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

Enumeration values:
ArrowOrientationHorizontal 
ArrowOrientationVertical 

Definition at line 66 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

Enumeration values:
LayoutOrientationHorizontal 
LayoutOrientationVertical 

Definition at line 87 of file vtkKWSpinButtons.h.


Constructor & Destructor Documentation

vtkKWSpinButtons::vtkKWSpinButtons  )  [protected]
 

vtkKWSpinButtons::~vtkKWSpinButtons  )  [protected]
 


Member Function Documentation

vtkKWSpinButtons* vtkKWSpinButtons::New  )  [static]
 

Reimplemented from vtkKWCompositeWidget.

vtkKWSpinButtons::vtkTypeRevisionMacro vtkKWSpinButtons  ,
vtkKWCompositeWidget 
 

void vtkKWSpinButtons::PrintSelf ostream &  os,
vtkIndent  indent
 

Reimplemented from vtkKWCompositeWidget.

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

Create the widget.

Reimplemented from vtkKWCompositeWidget.

virtual vtkKWPushButton* vtkKWSpinButtons::GetPreviousButton  )  [virtual]
 

Get the buttons

virtual vtkKWPushButton* vtkKWSpinButtons::GetNextButton  )  [virtual]
 

Get the buttons

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

Specifies the commands to associate to the next and previous buttons.

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

Specifies the commands to associate to the next and previous buttons.

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 74 of file vtkKWSpinButtons.h.

References ArrowOrientationHorizontal.

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 77 of file vtkKWSpinButtons.h.

References ArrowOrientationVertical.

virtual void vtkKWSpinButtons::SetLayoutOrientation int   )  [virtual]
 

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

virtual int vtkKWSpinButtons::GetLayoutOrientation  )  [virtual]
 

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

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

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

Definition at line 95 of file vtkKWSpinButtons.h.

References LayoutOrientationHorizontal.

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

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

Definition at line 98 of file vtkKWSpinButtons.h.

References LayoutOrientationVertical.

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 padding that will be applied around each buttons. (default to 0).

virtual void vtkKWSpinButtons::SetButtonsPadY int   )  [virtual]
 

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

virtual int vtkKWSpinButtons::GetButtonsPadY  )  [virtual]
 

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

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

Convenience method to set the buttons width. No effects if called before Create()

virtual int vtkKWSpinButtons::GetButtonsWidth  )  [virtual]
 

Convenience method to set the buttons width. No effects if called before Create()

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::Pack  )  [protected, virtual]
 

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


Member Data Documentation

vtkKWPushButton* vtkKWSpinButtons::PreviousButton [protected]
 

Definition at line 131 of file vtkKWSpinButtons.h.

vtkKWPushButton* vtkKWSpinButtons::NextButton [protected]
 

Definition at line 132 of file vtkKWSpinButtons.h.

int vtkKWSpinButtons::ArrowOrientation [protected]
 

Definition at line 134 of file vtkKWSpinButtons.h.

int vtkKWSpinButtons::LayoutOrientation [protected]
 

Definition at line 135 of file vtkKWSpinButtons.h.

int vtkKWSpinButtons::ButtonsPadX [protected]
 

Definition at line 137 of file vtkKWSpinButtons.h.

int vtkKWSpinButtons::ButtonsPadY [protected]
 

Definition at line 138 of file vtkKWSpinButtons.h.


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