![]() |
Slicer
4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Show slice intersection lines. More...
#include <Libs/MRML/DisplayableManager/vtkMRMLSliceIntersectionWidget.h>
Public Member Functions | |
bool | CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &distance2) override |
Return true if the widget can process the event. More... | |
void | CreateDefaultRepresentation () |
bool | GetActionEnabled (int actionsMask) |
int | GetActionsEnabled () |
Set full list of enabled actions. More... | |
vtkMRMLSliceNode * | GetSliceNode () |
void | Leave (vtkMRMLInteractionEventData *eventData) override |
Called when the the widget loses the focus. More... | |
bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
Process interaction event. More... | |
void | SetActionEnabled (int actionsMask, bool enable=true) |
void | SetActionsEnabled (int actions) |
Set exact list of actions to enable. More... | |
void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *applicationLogic) override |
void | SetSliceNode (vtkMRMLSliceNode *sliceNode) |
void | UpdateInteractionEventMapping () |
![]() | |
virtual vtkWidgetEventTranslator * | GetEventTranslator (int widgetState) |
virtual bool | GetGrabFocus () |
vtkMRMLInteractionNode * | GetInteractionNode () |
virtual bool | GetInteractive () |
virtual int | GetMouseCursor () |
vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () |
virtual bool | GetNeedToRender () |
virtual int | GetNumberOfEventTranslators () |
vtkRenderer * | GetRenderer () |
virtual vtkMRMLAbstractWidgetRepresentation * | GetRepresentation () |
Get the representation. More... | |
virtual int | GetWidgetState () |
Convenient method to determine the state of the method. More... | |
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) |
void | SetRenderer (vtkRenderer *renderer) |
virtual void | SetRepresentation (vtkMRMLAbstractWidgetRepresentation *r) |
virtual void | SetWidgetState (int) |
Convenient method to change what state the widget is in. More... | |
virtual unsigned long | TranslateInteractionEventToWidgetEvent (vtkMRMLInteractionEventData *eventData) |
Get widget event from translation event. More... | |
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. More... | |
Static Public Member Functions | |
static vtkMRMLSliceIntersectionWidget * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractWidget * | SafeDownCast (vtkObject *o) |
Protected Types | |
enum | { LayerBackground, LayerForeground, LayerLabelmap } |
Static Protected Member Functions | |
static void | SliceLogicsModifiedCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Show slice intersection lines.
The vtkMRMLSliceIntersectionWidget allows moving slices by interacting with displayed slice intersection lines.
Definition at line 43 of file vtkMRMLSliceIntersectionWidget.h.
Standard VTK class macros.
Definition at line 55 of file vtkMRMLSliceIntersectionWidget.h.
anonymous enum |
Widget states.
Enumerator | |
---|---|
WidgetStateFollowCursor | |
WidgetStateBlend | |
WidgetStateTranslateSlice | |
WidgetStateZoomSlice | |
WidgetStateTouchGesture |
Definition at line 79 of file vtkMRMLSliceIntersectionWidget.h.
anonymous enum |
Widget events.
Definition at line 89 of file vtkMRMLSliceIntersectionWidget.h.
anonymous enum |
Action State values and management.
Definition at line 119 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Enumerator | |
---|---|
LayerBackground | |
LayerForeground | |
LayerLabelmap |
Definition at line 216 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
|
overrideprotected |
|
overridevirtual |
Return true if the widget can process the event.
Reimplemented from vtkMRMLAbstractWidget.
void vtkMRMLSliceIntersectionWidget::CreateDefaultRepresentation | ( | ) |
Create the default widget representation if one is not set.
|
protected |
Change the displayed volume in the selected layer by moving in a loop trough the volumes available in the scene.
|
protected |
bool vtkMRMLSliceIntersectionWidget::GetActionEnabled | ( | int | actionsMask | ) |
Returns true if the specified action is allowed. If multiple actions are specified, the return value is true if all actions are enabled.
int vtkMRMLSliceIntersectionWidget::GetActionsEnabled | ( | ) |
Set full list of enabled actions.
|
virtual |
Reimplemented from vtkMRMLAbstractWidget.
|
protected |
vtkMRMLSliceNode* vtkMRMLSliceIntersectionWidget::GetSliceNode | ( | ) |
|
protected |
|
protected |
check for prescribed spacing, otherwise return best spacing amount for current layer setup (use logic to look for spacing of first non-null layer)
|
protected |
|
protected |
Adjust the slice position with respect to current slice node offset.
|
virtual |
Reimplemented from vtkMRMLAbstractWidget.
|
protected |
Returns true if mouse is inside the selected layer volume. Use background flag to choose between foreground/background layer.
|
static |
|
overridevirtual |
Called when the the widget loses the focus.
Reimplemented from vtkMRMLAbstractWidget.
|
protected |
|
static |
Instantiate this class.
|
override |
|
protected |
|
protected |
|
overridevirtual |
Process interaction event.
Reimplemented from vtkMRMLAbstractWidget.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Rotate the message by the specified amount. Used for touchpad events.
|
static |
|
protected |
Adjust zoom factor. If zoomScaleFactor>1 then view is zoomed in, if 0<zoomScaleFactor<1 then view is zoomed out. Event position is used as center for zoom operation.
void vtkMRMLSliceIntersectionWidget::SetActionEnabled | ( | int | actionsMask, |
bool | enable = true |
||
) |
Enable/disable the specified action (Translate, Zoom, Blend, etc.). Multiple actions can be specified by providing the sum of action ids. Set the value to AllActionsMask to enable/disable all actions. All actions are enabled by default.
void vtkMRMLSliceIntersectionWidget::SetActionsEnabled | ( | int | actions | ) |
Set exact list of actions to enable.
|
protected |
Get/Set labelmap or segmentation opacity.
|
overridevirtual |
Reimplemented from vtkMRMLAbstractWidget.
void vtkMRMLSliceIntersectionWidget::SetSliceNode | ( | vtkMRMLSliceNode * | sliceNode | ) |
|
staticprotected |
void vtkMRMLSliceIntersectionWidget::UpdateInteractionEventMapping | ( | ) |
|
protected |
Definition at line 249 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 224 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 225 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Indicates whether the shift key was used during the previous action. This is used to require shift-up before returning to default mode.
Definition at line 247 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 209 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 208 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 204 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 202 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 205 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 203 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 213 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 226 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 207 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 210 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 211 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 254 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 256 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 258 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 255 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 251 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 257 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 252 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 259 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 253 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 214 of file vtkMRMLSliceIntersectionWidget.h.