![]() |
Slicer 5.9
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. | |
void | CreateDefaultRepresentation () |
bool | GetActionEnabled (int actionsMask) |
int | GetActionsEnabled () |
Set full list of enabled actions. | |
virtual const char * | GetClassName () |
int | GetMouseCursor () override |
vtkMRMLSliceDisplayNode * | GetSliceDisplayNode () |
vtkMRMLSliceNode * | GetSliceNode () |
virtual int | IsA (const char *type) |
void | Leave (vtkMRMLInteractionEventData *eventData) override |
Called when the the widget loses the focus. | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
Process interaction event. | |
void | SetActionEnabled (int actionsMask, bool enable=true) |
void | SetActionsEnabled (int actions) |
Set exact list of actions to enable. | |
void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *applicationLogic) override |
void | SetSliceNode (vtkMRMLSliceNode *sliceNode) |
void | UpdateInteractionEventMapping () |
![]() | |
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. | |
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) |
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 vtkMRMLSliceIntersectionWidget * | New () |
static vtkMRMLSliceIntersectionWidget * | SafeDownCast (vtkObject *o) |
![]() | |
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 |
Action State values and management.
Definition at line 160 of file vtkMRMLSliceIntersectionWidget.h.
anonymous enum |
Widget events.
Definition at line 107 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Enumerator | |
---|---|
LayerBackground | |
LayerForeground | |
LayerLabelmap |
Definition at line 284 of file vtkMRMLSliceIntersectionWidget.h.
anonymous enum |
Widget states.
Definition at line 81 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 |
|
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 |
|
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 320 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 279 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 275 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 292 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 333 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 293 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 318 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 269 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 268 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 263 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 261 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 264 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 265 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 262 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 281 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 294 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 267 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 270 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 271 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 277 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 278 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 273 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 274 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 325 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 327 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 329 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 326 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 322 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 328 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 323 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 330 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 324 of file vtkMRMLSliceIntersectionWidget.h.
|
protected |
Definition at line 282 of file vtkMRMLSliceIntersectionWidget.h.