|
Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Process interaction events to update state of markup widget nodes. More...
#include <Modules/Loadable/Markups/VTKWidgets/vtkSlicerMarkupsWidget.h>


Public Member Functions | |
| virtual int | AddNodeOnWidget (const int displayPos[2]) |
| virtual int | AddPointFromWorldCoordinate (const double worldCoordinates[3]) |
| Add a point to the current active Markup at input World coordinates. | |
| bool | CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &distance2) override |
| Return true if the widget can process the event. | |
| virtual void | CreateDefaultRepresentation (vtkMRMLMarkupsDisplayNode *markupsDisplayNode, vtkMRMLAbstractViewNode *viewNode, vtkRenderer *renderer)=0 |
| Create the default widget representation and initializes the widget and representation. | |
| virtual vtkSlicerMarkupsWidget * | CreateInstance () const =0 |
| Create instance of the markups widget. | |
| int | GetActiveComponentIndex () |
| int | GetActiveComponentType () |
| int | GetActiveControlPoint () |
| virtual const char * | GetClassName () |
| bool | GetInteractive () override |
| vtkMRMLMarkupsDisplayNode * | GetMarkupsDisplayNode () |
| vtkMRMLMarkupsNode * | GetMarkupsNode () |
| vtkSlicerMarkupsWidgetRepresentation * | GetMarkupsRepresentation () |
| int | GetMouseCursor () override |
| virtual int | IsA (const char *type) |
| bool | IsPointPreviewed () |
| void | Leave (vtkMRMLInteractionEventData *eventData) override |
| Called when the the widget loses the focus. | |
| virtual bool | PlacePoint (vtkMRMLInteractionEventData *eventData) |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
| Process interaction event. | |
| bool | RemovePreviewPoint () |
| vtkMRMLSelectionNode * | selectionNode () |
| void | UpdatePreviewPoint (vtkMRMLInteractionEventData *eventData, const char *associatedNodeID, int positionStatus) |
| Add/update a point preview to the current active Markup at the specified position. | |
| void | UpdatePreviewPointIndex (vtkMRMLInteractionEventData *eventData) |
| Update a the current index of the point preview being previewed. | |
Public Member Functions inherited from vtkMRMLAbstractWidget | |
| 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 int | IsTypeOf (const char *type) |
| static vtkSlicerMarkupsWidget * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractWidget | |
| static int | IsTypeOf (const char *type) |
| static vtkMRMLAbstractWidget * | SafeDownCast (vtkObject *o) |
Protected Attributes | |
| double | LastEventPosition [2] |
| int | PreviewPointIndex |
| double | StartEventOffsetPosition [2] |
Protected Attributes inherited from vtkMRMLAbstractWidget | |
| vtkWeakPointer< vtkMRMLApplicationLogic > | ApplicationLogic |
| std::vector< vtkSmartPointer< vtkWidgetEventTranslator > > | EventTranslators |
| vtkWeakPointer< vtkRenderer > | Renderer |
| vtkSmartPointer< vtkMRMLAbstractWidgetRepresentation > | WidgetRep |
| int | WidgetState |
Process interaction events to update state of markup widget nodes.
Definition at line 45 of file vtkSlicerMarkupsWidget.h.
Standard methods for a VTK class.
Definition at line 49 of file vtkSlicerMarkupsWidget.h.
| anonymous enum |
Widget events.
Definition at line 67 of file vtkSlicerMarkupsWidget.h.
| anonymous enum |
Widget states.
| Enumerator | |
|---|---|
| WidgetStateDefine | |
| WidgetStateTranslateControlPoint | |
| WidgetStateMarkups_Last | |
Definition at line 59 of file vtkSlicerMarkupsWidget.h.
|
protected |
|
overrideprotected |
|
virtual |
Given a specific X, Y pixel location, add a new node on the widget at this location.
|
virtual |
Add a point to the current active Markup at input World coordinates.
|
overridevirtual |
Return true if the widget can process the event.
Reimplemented from vtkMRMLAbstractWidget.
Reimplemented in vtkSlicerPlaneWidget.
|
protected |
|
pure virtual |
Create the default widget representation and initializes the widget and representation.
Implemented in vtkSlicerAngleWidget, vtkSlicerCurveWidget, vtkSlicerLineWidget, vtkSlicerPlaneWidget, vtkSlicerPointsWidget, and vtkSlicerROIWidget.
|
pure virtual |
Create instance of the markups widget.
|
protected |
| int vtkSlicerMarkupsWidget::GetActiveComponentIndex | ( | ) |
| int vtkSlicerMarkupsWidget::GetActiveComponentType | ( | ) |
| int vtkSlicerMarkupsWidget::GetActiveControlPoint | ( | ) |
|
virtual |
Reimplemented from vtkMRMLAbstractWidget.
Reimplemented in vtkSlicerAngleWidget, vtkSlicerCurveWidget, vtkSlicerLineWidget, vtkSlicerPlaneWidget, vtkSlicerPointsWidget, and vtkSlicerROIWidget.
|
overridevirtual |
Reimplemented from vtkMRMLAbstractWidget.
| vtkMRMLMarkupsDisplayNode * vtkSlicerMarkupsWidget::GetMarkupsDisplayNode | ( | ) |
| vtkMRMLMarkupsNode * vtkSlicerMarkupsWidget::GetMarkupsNode | ( | ) |
| vtkSlicerMarkupsWidgetRepresentation * vtkSlicerMarkupsWidget::GetMarkupsRepresentation | ( | ) |
|
overridevirtual |
Reimplemented from vtkMRMLAbstractWidget.
|
virtual |
Reimplemented from vtkMRMLAbstractWidget.
Reimplemented in vtkSlicerAngleWidget, vtkSlicerCurveWidget, vtkSlicerLineWidget, vtkSlicerPlaneWidget, vtkSlicerPointsWidget, and vtkSlicerROIWidget.
|
protected |
| bool vtkSlicerMarkupsWidget::IsPointPreviewed | ( | ) |
|
static |
|
overridevirtual |
Called when the the widget loses the focus.
Reimplemented from vtkMRMLAbstractWidget.
|
virtual |
Reimplemented in vtkSlicerPlaneWidget.
|
override |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in vtkSlicerCurveWidget.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in vtkSlicerPlaneWidget.
|
overridevirtual |
Process interaction event.
Reimplemented from vtkMRMLAbstractWidget.
Reimplemented in vtkSlicerPlaneWidget.
|
protectedvirtual |
Reimplemented in vtkSlicerPlaneWidget.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented in vtkSlicerPlaneWidget.
|
protectedvirtual |
| bool vtkSlicerMarkupsWidget::RemovePreviewPoint | ( | ) |
Remove the point preview to the current active Markup. Returns true is preview point existed and now it is removed.
|
static |
| vtkMRMLSelectionNode * vtkSlicerMarkupsWidget::selectionNode | ( | ) |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Give the 3D representation the view's shared accurate picker (from the interaction event data) for the duration of this event, so all widgets in the view reuse one picker and one set of cell locators. Must be called at the start of every ProcessInteractionEvent() override that can lead to a pick (AccuratePick / ConvertDisplayPositionToWorld).
| void vtkSlicerMarkupsWidget::UpdatePreviewPoint | ( | vtkMRMLInteractionEventData * | eventData, |
| const char * | associatedNodeID, | ||
| int | positionStatus ) |
Add/update a point preview to the current active Markup at the specified position.
| void vtkSlicerMarkupsWidget::UpdatePreviewPointIndex | ( | vtkMRMLInteractionEventData * | eventData | ) |
Update a the current index of the point preview being previewed.
|
protected |
Definition at line 179 of file vtkSlicerMarkupsWidget.h.
|
protected |
Index of the control point that is currently being previewed (follows the mouse pointer). If <0 it means that there is currently no point being previewed.
Definition at line 160 of file vtkSlicerMarkupsWidget.h.
|
protected |
Definition at line 180 of file vtkSlicerMarkupsWidget.h.