SoView2DInfo

InventorModule

genre

View2D

author

Christian Rieder

package

FMEstable/ReleaseMeVis

dll

SoView2DInfo

definition

SoView2DInfo.def

see also

SoView2D

inherits from

SoView2DExtension

keywords

View2D, info, SoView2D, extension, viewport, slice, origin, size

Purpose

The module SoView2DInfo displays SoView2DExtension informations.

Usage

Connect the SoView2DInfo before the SoView2D. When using multiple SoView2D or a SoOrthoView2D, you might want to configure their viewerIds and use viewerId to select which viewer’s information you are interested in.

Windows

Default Panel

../../../Projects/SoView2DInfo/Modules/mhelp/Images/Screenshots/SoView2DInfo._default.png

Output Fields

self

name: self, type: SoNode

To be connected before SoView2D

Parameter Fields

Field Index

alt: Enum

Image Size X: Integer

Time Point: Integer

button1: Enum

Image Size Y: Integer

Viewer Size X: Integer

button2: Enum

Image Size Z: Integer

Viewer Size Y: Integer

button3: Enum

Integer Voxel Values: Bool

viewerId: String

clipToSlice: Bool

interactionProviderID: String

Voxel Device Corner Rect: Vector4

color: Color

maskValid: Bool

Voxel Device Corner0: Vector2

control: Enum

needsValidVoxel: Bool

Voxel Device Corner1: Vector2

createNewMode: Bool

renderOnSlab: Bool

Voxel Size X: Double

createNewModeRequest: Trigger

selectionTolerance: Float

Voxel Size Y: Double

cursorShape: Enum

setEventHandled: Bool

Voxel Size Z: Double

drawingOn: Bool

shift: Enum

wantsAllEvents: Bool

editingOn: Bool

Slice Normal: Vector3

wantsKeyEvents: Bool

fixZOn: Bool

Slice Origin: Vector2

wantsMouseWheelEvents: Bool

ignoreHandledEvents: Bool

Slice Zoom Synchronized: Float

World To Voxel Matrix: Matrix

Image Device X: Vector2

Start Slice: Integer

Image Device Y: Vector2

Start Slice Origin World Pos: Vector3

Visible Fields

Integer Voxel Values

name: integerVoxelValues, type: Bool, default: TRUE

Viewer Size X

name: viewerSizeX, type: Integer, persistent: no

The pixel size of the viewer in X direction.

Viewer Size Y

name: viewerSizeY, type: Integer, persistent: no

The pixel size of the viewer in Y direction.

Image Device X

name: imageDeviceX, type: Vector2, persistent: no

Start and end position of the image in the viewer in X direction.

Image Device Y

name: imageDeviceY, type: Vector2, persistent: no

Start and end position of the image in the viewer in Y direction.

Voxel Device Corner0

name: voxelDeviceCorner0, type: Vector2, persistent: no

Corner 00 of viewer in voxel space.

Voxel Device Corner1

name: voxelDeviceCorner1, type: Vector2, persistent: no

Corner 11 of viewer in voxel space.

Voxel Device Corner Rect

name: voxelDeviceCornerRect, type: Vector4, persistent: no

Corners of viewer in voxel space (left, top, right, bottom). Same as (voxelDeviceCorner0, voxelDeviceCorner1).

Image Size X

name: imageSizeX, type: Integer, persistent: no

Image size X dimension.

Image Size Y

name: imageSizeY, type: Integer, persistent: no

Image size Y dimension.

Image Size Z

name: imageSizeZ, type: Integer, persistent: no

Image size Z dimension.

Voxel Size X

name: voxelSizeX, type: Double, persistent: no

Voxel size X dimension.

Voxel Size Y

name: voxelSizeY, type: Double, persistent: no

Voxel size Y dimension.

Voxel Size Z

name: voxelSizeZ, type: Double, persistent: no

Voxel size Z dimension.

World To Voxel Matrix

name: worldToVoxelMatrix, type: Matrix, persistent: no

The World-To-Voxel-Matrix.

Start Slice

name: startSlice, type: Integer, persistent: no

The current start slice that is to be shown. Ranges in 0.. maxSlices

Time Point

name: timePoint, type: Integer, persistent: no

The current time point.

Start Slice Origin World Pos

name: startSliceOriginWorldPos, type: Vector3, persistent: no

Origin of the image in world space.

Slice Normal

name: sliceNormal, type: Vector3, persistent: no

The image normal.

Slice Origin

name: sliceOrigin, type: Vector2, persistent: no

Sets the upper left corner of the image in voxel which is aligned to the upper left corner of the viewport.

Slice Zoom Synchronized

name: sliceZoomSynchronized, type: Float, persistent: no

The zoom factor for all displayed slices.

Hidden Fields

interactionProviderID

name: interactionProviderID, type: String

see SoView2DExtension.interactionProviderID

drawingOn

name: drawingOn, type: Bool, default: TRUE

see SoView2DExtension.drawingOn

editingOn

name: editingOn, type: Bool, default: TRUE

see SoView2DExtension.editingOn

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

needsValidVoxel

name: needsValidVoxel, type: Bool, default: TRUE

see SoView2DExtension.needsValidVoxel

button1

name: button1, type: Enum, default: IGNORED

see SoView2DExtension.button1

button2

name: button2, type: Enum, default: IGNORED

see SoView2DExtension.button2

button3

name: button3, type: Enum, default: IGNORED

see SoView2DExtension.button3

shift

name: shift, type: Enum, default: IGNORED

see SoView2DExtension.shift

control

name: control, type: Enum, default: IGNORED

see SoView2DExtension.control

alt

name: alt, type: Enum, default: IGNORED

see SoView2DExtension.alt

wantsAllEvents

name: wantsAllEvents, type: Bool, default: FALSE

wantsKeyEvents

name: wantsKeyEvents, type: Bool, default: FALSE

wantsMouseWheelEvents

name: wantsMouseWheelEvents, type: Bool, default: FALSE

setEventHandled

name: setEventHandled, type: Bool, default: FALSE

see SoView2DExtension.setEventHandled

ignoreHandledEvents

name: ignoreHandledEvents, type: Bool, default: FALSE

see SoView2DExtension.ignoreHandledEvents

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: UNDEFINED_CURSOR

see SoView2DExtension.cursorShape

viewerId

name: viewerId, type: String

allows to restrict the info readout to a specific viewerId

This is useful with orthogonal viewing setups, where SoView2DInfo is in a scene graph connected to several viewers. By default (empty viewerId), no restriction is done, so the information will be overwritten with every draw event from any viewer.