SoView2DDrawVoxels3D

InventorModule
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoView2DDrawVoxels3D
definition SoView2DDrawVoxels3D.def
inherits from SoView2DExtension

Purpose

The SoView2DDrawVoxels3D module allows to interactively draw voxels on a connected DrawVoxels3D module.

Note that the editor has a hidden second input to control two DrawVoxels3D modules at the same time. Both DrawVoxels3D modules need to work on images with the same extent and world matrix. There is no check whether the inputs are compatible, this has to be made sure by the network’s author.

It does not generally provide visual feedback yet, other Open Inventor modules can be used to provide that feedback (see DrawVoxels3DPreview).

If the SoView2D is using Managed Interaction, this editor can show a preview circle.

Input Fields

inputDrawVoxels3D

name: inputDrawVoxels3D, type: DrawVoxels3D(MLBase)

Parameter Fields

Field Index

alpha: Float cursorShape: Enum renderOnSlab: Bool
Alt: Enum doubleClicked: Trigger selectionTolerance: Float
Auto Switch Draw Mode: Bool Drawing On: Bool setEventHandled: Bool
Button1: Enum Editing On: Bool Shift: Enum
Button2: Enum fillAlpha: Float Should Snap Preview To Voxel: Bool
Button3: Enum fillColor: Color singleClicked: Trigger
clipToSlice: Bool fixZOn: Bool wantsAllEvents: Bool
color: Color ignoreHandledEvents: Bool wantsKeyEvents: Bool
Control: Enum interactionProviderID: String wantsMouseWheelEvents: Bool
createNewMode: Bool maskValid: Bool width: Float
createNewModeRequest: Trigger needsValidVoxel: Bool  

Visible Fields

Drawing On

name: drawingOn, type: Bool, default: TRUE

see SoView2DExtension.drawingOn

Editing On

name: editingOn, type: Bool, default: TRUE

see SoView2DExtension.editingOn

Button1

name: button1, type: Enum, default: PRESSED

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

Should Snap Preview To Voxel

name: shouldSnapPreviewToVoxel, type: Bool, default: FALSE

If checked, the preview circle snaps to the voxel mid points.

Auto Switch Draw Mode

name: autoSwitchDrawMode, type: Bool, default: FALSE

If enabled, the draw mode of the DrawVoxels3D module is switched to the correct Disk/Square mode depending on the orientation of the SoView2D that is drawn on.

Hidden Fields

interactionProviderID

name: interactionProviderID, type: String

see SoView2DExtension.interactionProviderID

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

see SoView2DExtension.needsValidVoxel

wantsAllEvents

name: wantsAllEvents, type: Bool, default: TRUE

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

singleClicked

name: singleClicked, type: Trigger, persistent: no

doubleClicked

name: doubleClicked, type: Trigger, persistent: no

alpha

name: alpha, type: Float, default: 1

width

name: width, type: Float, default: 1

fillColor

name: fillColor, type: Color, default: 0.800000011920929 0.800000011920929 0.800000011920929

fillAlpha

name: fillAlpha, type: Float, default: 0.30000001