|
| virtual void | CreateDefaultRepresentation (vtkMRMLMarkupsDisplayNode *displayNode, vtkMRMLAbstractViewNode *viewNode, vtkRenderer *renderer) |
| | Create the default widget representation and initializes the widget and representation.
|
| |
| virtual vtkSlicerMarkupsInteractionWidget * | CreateInstance () const |
| |
| virtual void | FlipPlaneHandles (bool flipLRHandle, bool flipPAHandle) |
| |
| virtual void | FlipROIHandles (bool flipLRHandle, bool flipPAHandle, bool flipISHandle) |
| |
| int | GetActiveComponentIndex () override |
| |
| int | GetActiveComponentType () override |
| |
| virtual vtkMRMLMarkupsDisplayNode * | GetDisplayNode () |
| |
| virtual vtkMRMLMarkupsNode * | GetMarkupsNode () |
| |
| vtkMRMLNode * | GetMRMLNode () override |
| |
| bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
| | Process interaction event.
|
| |
| bool | ProcessWidgetJumpCursor (vtkMRMLInteractionEventData *eventData) |
| |
| bool | ProcessWidgetMenu (vtkMRMLInteractionEventData *eventData) override |
| |
| void | ScaleWidget (double eventPos[2], bool uniformScale=false) override |
| |
| virtual void | ScaleWidgetPlane (double eventPos[2], bool symmetricScale) |
| |
| virtual void | ScaleWidgetROI (double eventPos[2], bool symmetricScale) |
| |
| void | SetActiveComponentIndex (int type) override |
| |
| void | SetActiveComponentType (int type) override |
| |
| bool | CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &distance2) override |
| | Return true if the widget can process the event.
|
| |
| 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.
|
| |
| 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.
|
| |
|
| void | ApplyTransform (vtkTransform *transform) override |
| |
| | vtkSlicerMarkupsInteractionWidget () |
| |
| | ~vtkSlicerMarkupsInteractionWidget () 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 | ProcessEndMouseDrag (vtkMRMLInteractionEventData *eventData) |
| |
| virtual bool | ProcessJumpCursor (vtkMRMLInteractionEventData *eventData) |
| |
| virtual bool | ProcessMouseMove (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 () |
| |
| 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 vtkSlicerMarkupsInteractionWidget * | SafeDownCast (vtkObject *o) |
| |
| virtual const char * | GetClassName () |
| |
| virtual int | IsA (const char *type) |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| |
|
| enum | {
WidgetEventInteraction_First = WidgetEventUser
, WidgetEventReserved = WidgetEventInteraction_First
, WidgetEventUniformScaleStart
, WidgetEventUniformScaleEnd
,
WidgetEventCancel
, WidgetEventInteraction_Last
} |
| | Widget events. More...
|
| |
| enum | { InteractionNone
, InteractionTranslationHandle
, InteractionRotationHandle
, InteractionScaleHandle
} |
| |
| enum | {
WidgetStateInteraction_First = WidgetStateUser
, WidgetStateOnTranslationHandle = WidgetStateInteraction_First
, WidgetStateOnRotationHandle
, WidgetStateOnScaleHandle
,
WidgetStateUniformScale
, WidgetStateInteraction_Last
} |
| | Widget states. More...
|
| |
| typedef vtkMRMLAbstractWidget | Superclass |
| |
| enum | {
WidgetStateAny
, WidgetStateIdle
, WidgetStateOnWidget
, WidgetStateTranslate
,
WidgetStateRotate
, WidgetStateScale
, WidgetStateUser
} |
| | The state of the widget. More...
|
| |
| typedef vtkObject | Superclass |
| | Standard methods for a VTK class.
|
| |
| enum | WidgetEvents {
WidgetEventNone
, WidgetEventMouseMove
, WidgetEventTranslateStart
, WidgetEventTranslateEnd
,
WidgetEventRotateStart
, WidgetEventRotateEnd
, WidgetEventScaleStart
, WidgetEventScaleEnd
,
WidgetEventPick
, WidgetEventJumpCursor
, WidgetEventAction
, WidgetEventCustomAction1
,
WidgetEventCustomAction2
, WidgetEventCustomAction3
, WidgetEventCustomAction4
, WidgetEventCustomAction5
,
WidgetEventCustomAction6
, WidgetEventSelect
, WidgetEventUnselect
, WidgetEventToggleSelect
,
WidgetEventMenu
, WidgetEventReset
, WidgetEventUser
} |
| | Widget events. More...
|
| |
| 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.
- See also
- vtkMRMLAbstractWidget vtkSlicerWidgetRepresentation vtkSlicerWidgetEventTranslator
Definition at line 46 of file vtkSlicerMarkupsInteractionWidget.h.