![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Process interaction events to update state of interaction widgets. More...
#include <Modules/Loadable/Transforms/MRMLDM/vtkMRMLTransformHandleWidget.h>
Public Member Functions | |
bool | CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &distance2) override |
Return true if the widget can process the event. | |
virtual void | CreateDefaultRepresentation (vtkMRMLTransformDisplayNode *displayNode, vtkMRMLAbstractViewNode *viewNode, vtkRenderer *renderer) |
Create the default widget representation and initializes the widget and representation. | |
virtual vtkMRMLTransformDisplayNode * | GetDisplayNode () |
virtual vtkMRMLTransformNode * | GetTransformNode () |
bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
Process interaction event. | |
![]() | |
virtual int | GetActiveComponentIndex () |
virtual int | GetActiveComponentType () |
bool | GetInteractive () override |
Allows the widget to request interactive mode (faster updates) | |
int | GetMouseCursor () override |
Allows the widget to request a cursor shape. | |
void | Leave (vtkMRMLInteractionEventData *eventData) override |
Called when the the widget loses the focus. | |
virtual void | SetActiveComponentIndex (int index) |
virtual void | SetActiveComponentType (int type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
![]() | |
virtual vtkWidgetEventTranslator * | GetEventTranslator (int widgetState) |
virtual bool | GetGrabFocus () |
vtkMRMLInteractionNode * | GetInteractionNode () |
vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () |
virtual bool | GetNeedToRender () |
virtual int | GetNumberOfEventTranslators () |
vtkRenderer * | GetRenderer () |
virtual vtkMRMLAbstractWidgetRepresentation * | GetRepresentation () |
Get the representation. | |
virtual int | GetWidgetState () |
Convenient method to determine the state of the method. | |
virtual void | NeedToRenderOff () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | SetEventTranslation (int widgetState, unsigned long interactionEvent, int modifiers, unsigned long widgetEvent) |
void | SetEventTranslation (unsigned long interactionEvent, int modifiers, unsigned long widgetEvent) |
void | SetEventTranslationClickAndDrag (int widgetState, unsigned long startInteractionEvent, int modifiers, int widgetStateDragging, unsigned long widgetStartEvent, unsigned long widgetEndEvent) |
void | SetKeyboardEventTranslation (int modifier, char keyCode, int repeatCount, const char *keySym, unsigned long widgetEvent) |
void | SetKeyboardEventTranslation (int widgetState, int modifier, char keyCode, int repeatCount, const char *keySym, unsigned long widgetEvent) |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *applicationLogic) |
void | SetRenderer (vtkRenderer *renderer) |
virtual void | SetRepresentation (vtkMRMLAbstractWidgetRepresentation *r) |
virtual void | SetWidgetState (int) |
Convenient method to change what state the widget is in. | |
virtual unsigned long | TranslateInteractionEventToWidgetEvent (vtkMRMLInteractionEventData *eventData) |
Get widget event from translation event. | |
virtual void | UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) |
Build the actors of the representation with the info stored in the MRML scene. | |
Static Public Member Functions | |
static vtkMRMLTransformHandleWidget * | New () |
Instantiate this class. | |
static int | IsTypeOf (const char *type) |
static vtkMRMLInteractionWidget * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractWidget * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | ApplyTransform (vtkTransform *transform) override |
vtkMRMLNode * | GetMRMLNode () override |
bool | ProcessEndMouseDrag (vtkMRMLInteractionEventData *eventData) override |
bool | ProcessJumpCursor (vtkMRMLInteractionEventData *eventData) override |
bool | ProcessMouseMove (vtkMRMLInteractionEventData *eventData) override |
bool | ProcessWidgetMenu (vtkMRMLInteractionEventData *eventData) override |
virtual bool | ProcessWidgetTranslateTransformCenterStart (vtkMRMLInteractionEventData *eventData) |
virtual void | TranslateTransformCenter (double eventPos[2]) |
vtkMRMLTransformHandleWidget () | |
~vtkMRMLTransformHandleWidget () override | |
![]() | |
void | EndWidgetInteraction () |
virtual bool | GetClosestPointOnInteractionAxis (int type, int index, const double inputDisplay[2], double outputIntersectionWorld[3]) |
virtual bool | GetIntersectionOnAxisPlane (int type, int index, const double inputDisplay[2], double outputIntersectionWorld[3]) |
virtual bool | JumpToHandlePosition (int type, int index) |
virtual bool | ProcessCancelEvent (vtkMRMLInteractionEventData *eventData) |
virtual bool | ProcessWidgetMenuDisplayNodeTypeAndIndex (vtkMRMLInteractionEventData *eventData, vtkMRMLDisplayNode *displayNode, int type, int index) |
virtual bool | ProcessWidgetRotateStart (vtkMRMLInteractionEventData *eventData) |
virtual bool | ProcessWidgetScaleStart (vtkMRMLInteractionEventData *eventData) |
virtual bool | ProcessWidgetTranslateStart (vtkMRMLInteractionEventData *eventData) |
virtual bool | ProcessWidgetUniformScaleStart (vtkMRMLInteractionEventData *eventData) |
virtual void | RestoreInitialState () |
virtual void | RotateWidget (double eventPos[2]) |
virtual void | SaveInitialState () |
virtual void | ScaleWidget (double eventPos[2], bool uniform=false) |
void | StartWidgetInteraction (vtkMRMLInteractionEventData *eventData) |
virtual void | TranslateWidget (double eventPos[2]) |
vtkMRMLInteractionWidget () | |
~vtkMRMLInteractionWidget () override | |
![]() | |
bool | CanProcessButtonClickEvent (vtkMRMLInteractionEventData *eventData, double &distance2) |
Generate a button click event and checks if it can be processed with CanProcessInteractionEvent. | |
const char * | GetAssociatedNodeID (vtkMRMLInteractionEventData *eventData) |
virtual int | ProcessButtonClickEvent (vtkMRMLInteractionEventData *eventData) |
unsigned long | TranslateInteractionEventToWidgetEvent (vtkWidgetEventTranslator *translator, vtkMRMLInteractionEventData *eventData) |
Helper function that attempts to translate an event with a specific translator only. | |
vtkMRMLAbstractWidget () | |
~vtkMRMLAbstractWidget () override | |
typedef vtkMRMLInteractionWidget | Superclass |
static int | IsTypeOf (const char *type) |
static vtkMRMLTransformHandleWidget * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Additional Inherited Members | |
![]() | |
double | LastEventPosition [2] |
Variables for translate/rotate/scale. | |
vtkSmartPointer< vtkMRMLNode > | OriginalStateNode { nullptr } |
int | PreviewPointIndex |
![]() | |
vtkWeakPointer< vtkMRMLApplicationLogic > | ApplicationLogic |
std::vector< vtkSmartPointer< vtkWidgetEventTranslator > > | EventTranslators |
vtkWeakPointer< vtkRenderer > | Renderer |
vtkSmartPointer< vtkMRMLAbstractWidgetRepresentation > | WidgetRep |
int | WidgetState |
Process interaction events to update state of interaction widgets.
Definition at line 47 of file vtkMRMLTransformHandleWidget.h.
Standard VTK class macros.
Definition at line 56 of file vtkMRMLTransformHandleWidget.h.
anonymous enum |
The state of the widget.
Enumerator | |
---|---|
WidgetStateTranslateTransformCenter | mouse move transforms the center of transformation |
Definition at line 61 of file vtkMRMLTransformHandleWidget.h.
anonymous enum |
Enumerator | |
---|---|
WidgetEventTranslateTransformCenterStart | |
WidgetEventTranslateTransformCenterEnd |
Definition at line 66 of file vtkMRMLTransformHandleWidget.h.
|
protected |
|
overrideprotected |
|
overrideprotectedvirtual |
Implements vtkMRMLInteractionWidget.
|
overridevirtual |
Return true if the widget can process the event.
Reimplemented from vtkMRMLInteractionWidget.
|
virtual |
Create the default widget representation and initializes the widget and representation.
|
virtual |
Reimplemented from vtkMRMLInteractionWidget.
|
virtual |
|
overrideprotectedvirtual |
Implements vtkMRMLInteractionWidget.
|
virtual |
|
virtual |
Reimplemented from vtkMRMLInteractionWidget.
|
static |
|
static |
Instantiate this class.
|
override |
|
overrideprotectedvirtual |
Reimplemented from vtkMRMLInteractionWidget.
|
overridevirtual |
Process interaction event.
Reimplemented from vtkMRMLInteractionWidget.
|
overrideprotectedvirtual |
Reimplemented from vtkMRMLInteractionWidget.
|
overrideprotectedvirtual |
Callback interface to capture events when placing the widget. Return true if the event is processed.
Reimplemented from vtkMRMLInteractionWidget.
|
overrideprotectedvirtual |
Implements vtkMRMLInteractionWidget.
|
protectedvirtual |
|
static |
|
protectedvirtual |