VTK
|
a general widget for moving handles More...
#include <vtkHandleWidget.h>
Public Types | |
enum | _WidgetState { Start =0, Active } |
![]() | |
typedef vtkInteractorObserver | Superclass |
Static Public Member Functions | |
static vtkHandleWidget * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractWidget * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
vtkHandleWidget () | |
~vtkHandleWidget () | |
void | SetCursor (int state) |
![]() | |
vtkAbstractWidget () | |
~vtkAbstractWidget () | |
void | SetWidgetRepresentation (vtkWidgetRepresentation *r) |
virtual void | SetCursor (int vtkNotUsed(state)) |
Static Protected Member Functions | |
static void | GenericAction (vtkHandleWidget *) |
static void | SelectAction (vtkAbstractWidget *) |
static void | EndSelectAction (vtkAbstractWidget *) |
static void | TranslateAction (vtkAbstractWidget *) |
static void | ScaleAction (vtkAbstractWidget *) |
static void | MoveAction (vtkAbstractWidget *) |
![]() | |
static void | ProcessEventsHandler (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
int | WidgetState |
int | EnableAxisConstraint |
int | AllowHandleResize |
![]() | |
vtkWidgetRepresentation * | WidgetRep |
int | ManagesCursor |
vtkWidgetEventTranslator * | EventTranslator |
vtkWidgetCallbackMapper * | CallbackMapper |
vtkAbstractWidget * | Parent |
void * | CallData |
int | ProcessEvents |
typedef vtkAbstractWidget | Superclass |
static int | IsTypeOf (const char *type) |
static vtkHandleWidget * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkHandleWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
a general widget for moving handles
The vtkHandleWidget is used to position a handle. A handle is a widget with a position (in display and world space). Various appearances are available depending on its associated representation. The widget provides methods for translation, including constrained translation along coordinate axes. To use this widget, create and associate a representation with the widget.
LeftButtonPressEvent - select focal point of widget LeftButtonReleaseEvent - end selection MiddleButtonPressEvent - translate widget MiddleButtonReleaseEvent - end translation RightButtonPressEvent - scale widget RightButtonReleaseEvent - end scaling MouseMoveEvent - interactive movement across widget
vtkWidgetEvent::Select -- focal point is being selected vtkWidgetEvent::EndSelect -- the selection process has completed vtkWidgetEvent::Translate -- translate the widget vtkWidgetEvent::EndTranslate -- end widget translation vtkWidgetEvent::Scale -- scale the widget vtkWidgetEvent::EndScale -- end scaling the widget vtkWidgetEvent::Move -- a request for widget motion
vtkCommand::StartInteractionEvent (on vtkWidgetEvent::Select) vtkCommand::EndInteractionEvent (on vtkWidgetEvent::EndSelect) vtkCommand::InteractionEvent (on vtkWidgetEvent::Move)
Definition at line 78 of file vtkHandleWidget.h.
Standard VTK class macros.
Definition at line 86 of file vtkHandleWidget.h.
Enumerator | |
---|---|
Start | |
Active |
Definition at line 131 of file vtkHandleWidget.h.
|
protected |
|
protected |
|
static |
Instantiate this class.
|
static |
Standard VTK class macros.
|
virtual |
Standard VTK class macros.
Reimplemented from vtkAbstractWidget.
|
static |
Standard VTK class macros.
|
protectedvirtual |
Standard VTK class macros.
Reimplemented from vtkAbstractWidget.
vtkHandleWidget* vtkHandleWidget::NewInstance | ( | ) | const |
Standard VTK class macros.
void vtkHandleWidget::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard VTK class macros.
|
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 94 of file vtkHandleWidget.h.
|
inline |
Return the representation as a vtkHandleRepresentation.
Definition at line 100 of file vtkHandleWidget.h.
|
virtual |
Create the default widget representation if one is not set. By default an instance of vtkPointHandleRepresenation3D is created.
Implements vtkAbstractWidget.
|
virtual |
Enable / disable axis constrained motion of the handles. By default the widget responds to the shift modifier to constrain the handle along the axis closest aligned with the motion vector.
|
virtual |
Enable / disable axis constrained motion of the handles. By default the widget responds to the shift modifier to constrain the handle along the axis closest aligned with the motion vector.
|
virtual |
Enable / disable axis constrained motion of the handles. By default the widget responds to the shift modifier to constrain the handle along the axis closest aligned with the motion vector.
|
virtual |
Enable / disable axis constrained motion of the handles. By default the widget responds to the shift modifier to constrain the handle along the axis closest aligned with the motion vector.
|
virtual |
Allow resizing of handles ? By default the right mouse button scales the handle size.
|
virtual |
Allow resizing of handles ? By default the right mouse button scales the handle size.
|
virtual |
Allow resizing of handles ? By default the right mouse button scales the handle size.
|
virtual |
Allow resizing of handles ? By default the right mouse button scales the handle size.
|
virtual |
Get the widget state.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
Definition at line 149 of file vtkHandleWidget.h.
|
protected |
Definition at line 150 of file vtkHandleWidget.h.
|
protected |
Definition at line 153 of file vtkHandleWidget.h.