Slicer
5.0
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... | |
int | GetMouseCursor () override |
vtkMRMLSliceDisplayNode * | GetSliceDisplayNode () |
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 () |
Public Member Functions inherited from vtkMRMLAbstractWidget | |
virtual vtkWidgetEventTranslator * | GetEventTranslator (int widgetState) |
virtual bool | GetGrabFocus () |
vtkMRMLInteractionNode * | GetInteractionNode () |
virtual bool | GetInteractive () |
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 Public Member Functions inherited from vtkMRMLAbstractWidget | |
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) |
static void | SliceModifiedCallback (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.
Definition at line 81 of file vtkMRMLSliceIntersectionWidget.h.
anonymous enum |
Widget events.
Definition at line 103 of file vtkMRMLSliceIntersectionWidget.h.
anonymous enum |
Action State values and management.
Definition at line 151 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Enumerator | |
---|---|
LayerBackground | |
LayerForeground | |
LayerLabelmap |
Definition at line 269 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 through 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 |
|
overridevirtual |
Reimplemented from vtkMRMLAbstractWidget.
vtkMRMLSliceDisplayNode* vtkMRMLSliceIntersectionWidget::GetSliceDisplayNode | ( | ) |
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.
|
protected |
|
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 |
|
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 |
|
staticprotected |
void vtkMRMLSliceIntersectionWidget::UpdateInteractionEventMapping | ( | ) |
|
protected |
Definition at line 304 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 264 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 277 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 317 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 278 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Indicates whether the shift key was used during the previous action. This is used to require shift-up after a click-and-drag before accepting shift+mousemove.
Definition at line 302 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 258 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 250 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 253 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 254 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 251 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 266 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 279 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 256 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 259 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 260 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 262 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 263 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 309 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 311 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 313 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 310 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 306 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 312 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 307 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 314 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 308 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 267 of file vtkMRMLSliceIntersectionWidget.h.