SoView2DSliceZoom

InventorModule
genre Interaction
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoView2D
definition view2d.def
see also SoView2D
inherits from SoView2DExtension
keywords extension

Purpose

The module SoView2DSliceZoom allows for a zooming in and out of a 2D viewer slice interactively.

Usage

Press the mouse button and the modifier key as you set on the module’s GUI and move the mouse up and down to zoom in and out.

If the module zooms in on moving the mouse up or down depends on the Drag Mode.

Move the mouse anywhere over the viewer and press return to zoom. The module not only zooms on pressing return but also shifts into the direction of the mouse cursor, seen from the middle of the viewer.

Windows

Default Panel

../../../Modules/Inventor/SoView2D/mhelp/Images/Screenshots/SoView2DSliceZoom._default.png

Output Fields

self

name: self, type: SoNode

Parameter Fields

Visible Fields

Editing On

name: editingOn, type: Bool, default: TRUE

see SoView2DExtension.editingOn

Alt

name: alt, type: Enum, default: IGNORED

see SoView2DExtension.alt

Set handled-flag

name: setEventHandled, type: Bool, default: TRUE, deprecated name: setHandled

see SoView2DExtension.setEventHandled

Evaluate handled-flag

name: ignoreHandledEvents, type: Bool, default: FALSE, deprecated name: evalHandled

see SoView2DExtension.ignoreHandledEvents

Min

name: min, type: Float, default: 1

Sets the minimum zoom level.

Max

name: max, type: Float, default: 100

Sets the maximum zoom level.

Sensitivity

name: sensitivity, type: Float, default: 100, minimum: -1000, maximum: 1000

Sets the sensitivity of the zooming. A higher sensitivity leads to a faster zooming.

Negative values lead to zooming in the opposite direction.

Drag Mode

name: dragMode, type: Enum, default: DRAG_TAKE_AND_PUSH

Defines the drag mode.

Values:

Title Name
Take And Push DRAG_TAKE_AND_PUSH
Approach And Depart DRAG_APPROACH_AND_DEPART

Evaluate started-flag

name: evalStarted, type: Bool, default: FALSE

If checked, the module reacts only if an interaction (shifting) is started in the target viewer.

Use Alternative Zoom Formula

name: useAlternativeZoomFormula, type: Bool, default: TRUE

If checked, the module zooms in a linear manner. Otherwise, the zooming is getting slower the more you zoom in.

Zoom Around Click Position

name: zoomAroundClickPosition, type: Bool, default: FALSE

If checked, the module zooms around the click position. Otherwise, the module zooms around the zoom center specified in the attached SoView2D module.

Hidden Fields

interactionProviderID

name: interactionProviderID, type: String

see SoView2DExtension.interactionProviderID

drawingOn

name: drawingOn, type: Bool, default: TRUE

see SoView2DExtension.drawingOn

maskValid

name: maskValid, type: Bool, persistent: no

fixZOn

name: fixZOn, type: Bool, default: TRUE

color

name: color, type: Color, default: 1 1 1

see SoView2DExtension.color

selectionTolerance

name: selectionTolerance, type: Float, default: 4, deprecated name: selectDistance

needsValidVoxel

name: needsValidVoxel, type: Bool, default: FALSE

see SoView2DExtension.needsValidVoxel

wantsAllEvents

name: wantsAllEvents, type: Bool, default: FALSE

wantsKeyEvents

name: wantsKeyEvents, type: Bool, default: TRUE

wantsMouseWheelEvents

name: wantsMouseWheelEvents, type: Bool, default: FALSE

createNewMode

name: createNewMode, type: Bool, default: FALSE

see SoView2DExtension.createNewMode

createNewModeRequest

name: createNewModeRequest, type: Trigger

see SoView2DExtension.createNewModeRequest

renderOnSlab

name: renderOnSlab, type: Bool, default: FALSE

clipToSlice

name: clipToSlice, type: Bool, default: FALSE

cursorShape

name: cursorShape, type: Enum, default: ZOOM_CURSOR

see SoView2DExtension.cursorShape

singleClicked

name: singleClicked, type: Trigger, persistent: no

doubleClicked

name: doubleClicked, type: Trigger, persistent: no