SoDiagram2DRuler

InventorModule
genre Diagram
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoDiagram2D
definition SoDiagram2D.def
see also SoDiagram2D
inherits from SoDiagram2DInteractionExtension
keywords triangle, vertical, horizontal

Purpose

The module SoDiagram2DRuler measures distances in a diagram interactively.

Usage

Grab the first or the second point with the mouse and move it to the desired position.

Windows

Default Panel

../../../Modules/Inventor/SoDiagram2D/mhelp/Images/Screenshots/SoDiagram2DRuler._default.png

Output Fields

self

name: self, type: SoNode

Parameter Fields

Field Index

Color1: Color interactionProviderID: String
Color2: Color Reset: Trigger
Cursor Shape: Enum X1: Double
Delta X: Double X2: Double
Delta Y: Double Y1: Double
Distance: Double Y2: Double
Drawing enabled: Bool  
Editing enabled: Bool  

Visible Fields

Drawing enabled

name: isEnabled, type: Bool, default: TRUE

If checked, the module draws the interactively set ruler.

see also SoDiagram2DExtension.isEnabled

Editing enabled

name: isEditingEnabled, type: Bool, default: TRUE

If checked, the module allows for an interactive setting of the ruler in the diagram.

see also SoDiagram2DExtension.isEditingEnabled

Cursor Shape

name: cursorShape, type: Enum, default: MOVE_ALL_CURSOR

see SoDiagram2DInteractionExtension.cursorShape

X1

name: x1, type: Double, persistent: no

Shows the x-coordinate of the first point of the ruler.

Y1

name: y1, type: Double, persistent: no

Shows the y-coordinate of the first point of the ruler.

X2

name: x2, type: Double, persistent: no

Shows the x-coordinate of the second point of the ruler.

Y2

name: y2, type: Double, persistent: no

Shows the y-coordinate of the second point of the ruler.

Delta X

name: deltaX, type: Double, persistent: no

Shows the x-distance in diagram space between the two points of the ruler.

Delta Y

name: deltaY, type: Double, persistent: no

Shows the y-distance in diagram space between the two points of the ruler.

Distance

name: distance, type: Double, persistent: no

Shows the distance in diagram space between the two points of the ruler.

Color1

name: color1, type: Color, default: 0.670000016689301 1 1

Sets the color of the first point of the ruler.

Color2

name: color2, type: Color, default: 0.670000016689301 1 0.5

Sets the color of the second point of the ruler.

Reset

name: reset, type: Trigger

If pressed, the ruler flips into its default position.

Hidden Fields

interactionProviderID

name: interactionProviderID, type: String

see SoDiagram2DExtension.interactionProviderID