VTK
|
perform affine transformations More...
#include <vtkAffineWidget.h>
Public Member Functions | |
void | CreateDefaultRepresentation () |
virtual void | SetEnabled (int) |
void | SetRepresentation (vtkAffineRepresentation *r) |
vtkAffineRepresentation * | GetAffineRepresentation () |
![]() | |
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 vtkAffineWidget * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkAbstractWidget * | SafeDownCast (vtkObjectBase *o) |
Protected Types | |
enum | _WidgetState { Start =0, Active } |
Protected Member Functions | |
vtkAffineWidget () | |
~vtkAffineWidget () | |
void | SetCursor (int state) |
![]() | |
vtkAbstractWidget () | |
~vtkAbstractWidget () | |
void | SetWidgetRepresentation (vtkWidgetRepresentation *r) |
virtual void | SetCursor (int vtkNotUsed(state)) |
Static Protected Member Functions | |
static void | SelectAction (vtkAbstractWidget *) |
static void | EndSelectAction (vtkAbstractWidget *) |
static void | MoveAction (vtkAbstractWidget *) |
static void | ModifyEventAction (vtkAbstractWidget *) |
![]() | |
static void | ProcessEventsHandler (vtkObject *object, unsigned long event, void *clientdata, void *calldata) |
Protected Attributes | |
int | WidgetState |
int | ModifierActive |
![]() | |
vtkWidgetRepresentation * | WidgetRep |
int | ManagesCursor |
vtkWidgetEventTranslator * | EventTranslator |
vtkWidgetCallbackMapper * | CallbackMapper |
vtkAbstractWidget * | Parent |
void * | CallData |
int | ProcessEvents |
typedef vtkAbstractWidget | Superclass |
static int | IsTypeOf (const char *type) |
static vtkAffineWidget * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkAffineWidget * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
perform affine transformations
The vtkAffineWidget is used to perform affine transformations on objects. (Affine transformations are transformations that keep parallel lines parallel. Affine transformations include translation, scaling, rotation, and shearing.)
To use this widget, set the widget representation. The representation maintains a transformation matrix and other instance variables consistent with the transformations applied by this widget.
LeftButtonPressEvent - select widget: depending on which part is selected translation, rotation, scaling, or shearing may follow. LeftButtonReleaseEvent - end selection of widget. MouseMoveEvent - interactive movement across widget
vtkWidgetEvent::Select -- focal point is being selected vtkWidgetEvent::EndSelect -- the selection process has completed 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 75 of file vtkAffineWidget.h.
Standard VTK class macros.
Definition at line 83 of file vtkAffineWidget.h.
|
protected |
Enumerator | |
---|---|
Start | |
Active |
Definition at line 124 of file vtkAffineWidget.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.
vtkAffineWidget* vtkAffineWidget::NewInstance | ( | ) | const |
Standard VTK class macros.
void vtkAffineWidget::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 91 of file vtkAffineWidget.h.
|
inline |
Return the representation as a vtkAffineRepresentation.
Definition at line 97 of file vtkAffineWidget.h.
|
virtual |
Create the default widget representation if one is not set.
Implements vtkAbstractWidget.
|
virtual |
Methods for activating this widget. This implementation extends the superclasses' in order to resize the widget handles due to a render start event.
Reimplemented from vtkAbstractWidget.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
Definition at line 123 of file vtkAffineWidget.h.
|
protected |
Definition at line 132 of file vtkAffineWidget.h.