VTK
|
interactively set the number of divisions in 2D image checkerboard More...
#include <vtkCheckerboardWidget.h>
Public Member Functions | |
virtual void | SetEnabled (int) |
void | CreateDefaultRepresentation () |
void | SetRepresentation (vtkCheckerboardRepresentation *r) |
vtkCheckerboardRepresentation * | GetCheckerboardRepresentation () |
![]() | |
void | Render () |
virtual void | SetPriority (float) |
virtual void | SetProcessEvents (int) |
virtual int | GetProcessEvents () |
virtual void | ProcessEventsOn () |
virtual void | ProcessEventsOff () |
vtkWidgetEventTranslator * | GetEventTranslator () |
void | SetParent (vtkAbstractWidget *parent) |
virtual vtkAbstractWidget * | GetParent () |
vtkWidgetRepresentation * | GetRepresentation () |
virtual void | SetManagesCursor (int) |
virtual int | GetManagesCursor () |
virtual void | ManagesCursorOn () |
virtual void | ManagesCursorOff () |
vtkAbstractWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkCheckerboardWidget * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractWidget * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
vtkCheckerboardWidget () | |
~vtkCheckerboardWidget () | |
void | StartCheckerboardInteraction () |
void | CheckerboardInteraction (int sliderNum) |
void | EndCheckerboardInteraction () |
![]() | |
vtkAbstractWidget () | |
~vtkAbstractWidget () | |
void | SetWidgetRepresentation (vtkWidgetRepresentation *r) |
virtual void | SetCursor (int vtkNotUsed(state)) |
Protected Attributes | |
vtkSliderWidget * | TopSlider |
vtkSliderWidget * | RightSlider |
vtkSliderWidget * | BottomSlider |
vtkSliderWidget * | LeftSlider |
![]() | |
vtkWidgetRepresentation * | WidgetRep |
int | ManagesCursor |
vtkWidgetEventTranslator * | EventTranslator |
vtkWidgetCallbackMapper * | CallbackMapper |
vtkAbstractWidget * | Parent |
void * | CallData |
int | ProcessEvents |
Friends | |
class | vtkCWCallback |
typedef vtkAbstractWidget | Superclass |
static int | IsTypeOf (const char *type) |
static vtkCheckerboardWidget * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkCheckerboardWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
Additional Inherited Members | |
![]() | |
typedef vtkInteractorObserver | Superclass |
![]() | |
static void | ProcessEventsHandler (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
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.
Definition at line 61 of file vtkCheckerboardWidget.h.
Standard methods for a VTK class.
Definition at line 69 of file vtkCheckerboardWidget.h.
|
protected |
|
protected |
|
static |
Instantiate this class.
|
static |
Standard methods for a VTK class.
|
virtual |
Standard methods for a VTK class.
Reimplemented from vtkAbstractWidget.
|
static |
Standard methods for a VTK class.
|
protectedvirtual |
Standard methods for a VTK class.
Reimplemented from vtkAbstractWidget.
vtkCheckerboardWidget* vtkCheckerboardWidget::NewInstance | ( | ) | const |
Standard methods for a VTK class.
void vtkCheckerboardWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard methods for a VTK class.
|
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.
|
inline |
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.
|
inline |
Return the representation as a vtkCheckerboardRepresentation.
Definition at line 88 of file vtkCheckerboardWidget.h.
|
virtual |
Create the default widget representation if one is not set.
Implements vtkAbstractWidget.
|
protected |
|
protected |
|
protected |
|
friend |
Definition at line 111 of file vtkCheckerboardWidget.h.
|
protected |
Definition at line 100 of file vtkCheckerboardWidget.h.
|
protected |
Definition at line 101 of file vtkCheckerboardWidget.h.
|
protected |
Definition at line 102 of file vtkCheckerboardWidget.h.
|
protected |
Definition at line 103 of file vtkCheckerboardWidget.h.