VTK
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
vtkCheckerboardWidget Class Reference

interactively set the number of divisions in 2D image checkerboard More...

#include <vtkCheckerboardWidget.h>

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

List of all members.

Public Member Functions

virtual void SetEnabled (int)
void CreateDefaultRepresentation ()
void SetRepresentation (vtkCheckerboardRepresentation *r)
vtkCheckerboardRepresentationGetCheckerboardRepresentation ()

Static Public Member Functions

static vtkCheckerboardWidgetNew ()

Protected Member Functions

 vtkCheckerboardWidget ()
 ~vtkCheckerboardWidget ()
void StartCheckerboardInteraction ()
void CheckerboardInteraction (int sliderNum)
void EndCheckerboardInteraction ()

Protected Attributes

vtkSliderWidgetTopSlider
vtkSliderWidgetRightSlider
vtkSliderWidgetBottomSlider
vtkSliderWidgetLeftSlider

Friends

class vtkCWCallback
typedef vtkAbstractWidget Superclass
static int IsTypeOf (const char *type)
static vtkCheckerboardWidgetSafeDownCast (vtkObjectBase *o)
virtual int IsA (const char *type)
vtkCheckerboardWidgetNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkObjectBaseNewInstanceInternal () const

Detailed Description

interactively set the number of divisions in 2D image checkerboard

The vtkCheckerboardWidget is used to interactively control an instance of vtkImageCheckerboard (and an associated vtkImageActor used to display the checkerboard). The user can adjust the number of divisions in each of the i-j directions in a 2D image. A frame appears around the vtkImageActor with sliders along each side of the frame. The user can interactively adjust the sliders to the desired number of checkerboard subdivisions.

To use this widget, specify an instance of vtkImageCheckerboard and an instance of vtkImageActor. By default, the widget responds to the following events:

 If the slider bead is selected:
   LeftButtonPressEvent - select slider (if on slider)
   LeftButtonReleaseEvent - release slider
   MouseMoveEvent - move slider
 If the end caps or slider tube of a slider are selected:
   LeftButtonPressEvent - jump (or animate) to cap or point on tube;
 

It is possible to change these event bindings. Please refer to the documentation for vtkSliderWidget for more information. Advanced users may directly access and manipulate the sliders by obtaining the instances of vtkSliderWidget composing the vtkCheckerboard widget.

See also:
vtkImageCheckerboard vtkImageActor vtkSliderWidget vtkRectilinearWipeWidget
Events:
vtkCommand::DisableEvent vtkCommand::EndInteractionEvent vtkCommand::InteractionEvent vtkCommand::StartInteractionEvent vtkCommand::EnableEvent
Tests:
vtkCheckerboardWidget (Tests)

Definition at line 61 of file vtkCheckerboardWidget.h.


Member Typedef Documentation

Standard methods for a VTK class.

Reimplemented from vtkAbstractWidget.

Definition at line 69 of file vtkCheckerboardWidget.h.


Constructor & Destructor Documentation


Member Function Documentation

Instantiate this class.

Reimplemented from vtkObject.

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

Standard methods for a VTK class.

Reimplemented from vtkAbstractWidget.

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

Standard methods for a VTK class.

Reimplemented from vtkAbstractWidget.

Standard methods for a VTK class.

Reimplemented from vtkAbstractWidget.

virtual vtkObjectBase* vtkCheckerboardWidget::NewInstanceInternal ( ) const [protected, virtual]

Standard methods for a VTK class.

Reimplemented from vtkAbstractWidget.

Standard methods for a VTK class.

Reimplemented from vtkAbstractWidget.

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

Standard methods for a VTK class.

Reimplemented from vtkAbstractWidget.

virtual void vtkCheckerboardWidget::SetEnabled ( int  ) [virtual]

The method for activating and deactivating this widget. This method must be overridden because it is a composite widget and does more than its superclasses' vtkAbstractWidget::SetEnabled() method.

Reimplemented from vtkAbstractWidget.

Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene. Note that the representation is a subclass of vtkProp so it can be added to the renderer independent of the widget.

Definition at line 82 of file vtkCheckerboardWidget.h.

Return the representation as a vtkCheckerboardRepresentation.

Definition at line 88 of file vtkCheckerboardWidget.h.

Create the default widget representation if one is not set.

Implements vtkAbstractWidget.

void vtkCheckerboardWidget::CheckerboardInteraction ( int  sliderNum) [protected]

Friends And Related Function Documentation

friend class vtkCWCallback [friend]

Definition at line 111 of file vtkCheckerboardWidget.h.


Member Data Documentation

Definition at line 100 of file vtkCheckerboardWidget.h.

Definition at line 101 of file vtkCheckerboardWidget.h.

Definition at line 102 of file vtkCheckerboardWidget.h.

Definition at line 103 of file vtkCheckerboardWidget.h.


The documentation for this class was generated from the following file: