DistanceLine2D3D

MacroModule
genre Measurement
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition Measurement.def
keywords measurement

Purpose

This module allows interactive measurement of distances in 2D whereas the distance is rendered in the 3D scene with a distance line (this a line with arrows) and the distance as number and unit synchronously.

Interaction in 2D goes through defining two points Start Pos and End Pos within the slices, whereas each of the points may be moved also.

Interaction

Consecutive clicks set the start and the end position.

Windows

Default Panel

../../../Modules/Macros/Measurement/mhelp/Images/Screenshots/DistanceLine2D3D._default.png

Output Fields

out2DNode

name: out2DNode, type: SoNode, deprecated name: output2D

out3DNode

name: out3DNode, type: SoNode, deprecated name: output3D

Parameter Fields

Field Index

Color: Color Line Length: Float
counter: Integer mousePressed: Bool
Display name: Bool Start Pos: Vector3
Display unit: Bool Status: String
End Pos: Vector3 Tool Name: String
Interaction Mode: Enum Unit: Enum
Keyboard Increment: Float  
Line Interrupt Distance: Float  

Visible Fields

Start Pos

name: startPos, type: Vector3, default: 0 0 0

Sets the start position.

End Pos

name: endPos, type: Vector3, default: 0 0 0

Sets the end position.

Color

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

Sets the color of the distance line

Line Length

name: lineLength, type: Float, persistent: no

Shows the length of the line.

Line Interrupt Distance

name: minDistance, type: Float, default: 10

Interrupt of the distance line to render extent and unit in 3D.

Keyboard Increment

name: keyboardIncrement, type: Float, default: 0.0099999998

Step size to move an endpoint by the keyboard (does not work?)

Unit

name: unit, type: Enum, default: mm

Defines a length unit to render.

Values:

Title Name
mm mm
cm cm
m m

Display unit

name: unitFlag, type: Bool, default: FALSE

If checked, a length unit is rendered in 3D.

Interaction Mode

name: interactionMode, type: Enum, default: INTERACTION_DIRECT_SELECT

Moving the tool with his dragger or by picking (does not work?)

Values:

Title Name Deprecated Name
Interaction Direct Select INTERACTION_DIRECT_SELECT directSelect

Display name

name: toolNameFlag, type: Bool, default: FALSE

If checked, a name is rendered to identify the line.

Tool Name

name: toolName, type: String

Sets a name to display.

Status

name: status, type: String, persistent: no

Shows status information about the module.

Hidden Fields

mousePressed

name: mousePressed, type: Bool, persistent: no

counter

name: counter, type: Integer, default: 1