SoAxis¶
-
InventorModule
¶ genre Visualization
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoUtils
definition utils.def see also SoCoordinateSystem
keywords ticks
,subticks
,coordinate
,system
Purpose¶
The module SoAxis
draws a 3D coordinate system in an Open Inventor scene.
The coordinate system can show ticks, subticks, annotations, and a bounding box. the size can automatically adapt to an input ML image.
Please note that it is best to render the SoAxis as the last shape in your scene, this allows to alpha blend the text on top of the rendering.
Tips¶
You might also have a look at SoCoordinateSystem
, which has a subset of the functionality, but better implemented.
Input Fields¶
inputImage¶
-
name:
inputImage
, type:
Image
¶ The input image is optional; if available then with the extents can be adapted according to the connected image; see
Auto adjust
andAdjustSettings
for details.
Parameter Fields¶
Field Index¶
Visible Fields¶
AdjustSettings¶
-
name:
adjustSettings
, type:
Trigger
¶ If pressed, the size of the coordinate system is adjusted to the input ML image.
Auto adjust¶
-
name:
autoAdjustSettings
, type:
Bool
, default:
TRUE
¶ If checked, the size of the coordinate system is automatically adjusted on every change of the input ML image.
Input Size¶
-
name:
axisVolumeSize
, type:
Vector3
, default:
1 1 1
¶ Sets the size of the coordinate system.
Draw axes¶
-
name:
axisOn
, type:
Bool
, default:
TRUE
¶ If checked, the chosen components are rendered.
If unchecked, nothing is rendered at all.
Font Size¶
-
name:
axisFontSize
, type:
Integer
, default:
12
, minimum:
6
, maximum:
128
¶ The size of the font to be used for annotation and number texts.
Show axis 2¶
-
name:
axis2Visibility
, type:
Bool
, default:
TRUE
¶ If checked, the second axis is shown.
Draw numbers¶
-
name:
axisNumberingOn
, type:
Bool
, default:
TRUE
¶ If checked, the axes are annotated with numbers.
Draw subticks¶
-
name:
axisSubTickingOn
, type:
Bool
, default:
TRUE
¶ If checked, subticks are rendered between ticks.
XYLines¶
-
name:
multiAxisXY
, type:
Bool
, default:
FALSE
¶ If checked, lines are rendered in the XY plane.
XZLines¶
-
name:
multiAxisXZ
, type:
Bool
, default:
FALSE
¶ If checked, lines are rendered in the XZ plane.
YXLines¶
-
name:
multiAxisYX
, type:
Bool
, default:
FALSE
¶ If checked, lines are rendered in the YX plane.
YZLines¶
-
name:
multiAxisYZ
, type:
Bool
, default:
FALSE
¶ If checked, lines are rendered in the YZ plane.
ZXLines¶
-
name:
multiAxisZX
, type:
Bool
, default:
FALSE
¶ If checked, lines are rendered in the ZX plane.
ZYLines¶
-
name:
multiAxisZY
, type:
Bool
, default:
FALSE
¶ If checked, lines are rendered in the ZY plane.
Axis1 (axis1Text)¶
-
name:
axis1Text
, type:
String
, default:
X
¶ Sets the text denoting the first axis.
Axis2 (axis2Text)¶
-
name:
axis2Text
, type:
String
, default:
Y
¶ Sets the text denoting the second axis.
Axis3 (axis3Text)¶
-
name:
axis3Text
, type:
String
, default:
Z
¶ Sets the text denoting the third axis.
Axis1 (numPrefix1Text)¶
-
name:
numPrefix1Text
, type:
String
¶ A text string added as prefix (or postfix) before (or after) numbers, which are drawn next to the ticks of the axis. This can be useful to add unit strings, or only spaces when numbers tend to be drawn to near to the axis lines.
Axis1 (axisText1AlignMode)¶
-
name:
axisText1AlignMode
, type:
Enum
, default:
Axis::AXIS_TEXT_ALIGN_LEFT
¶ Controls the alignment of the text drawn at tip ends of the axis.
Values:
Title | Name | Description |
---|---|---|
LEFT | Axis::AXIS_TEXT_ALIGN_LEFT | The text is drawn right from the calculated drawing position. |
CENTER | Axis::AXIS_TEXT_ALIGN_CENTER | The text is drawn centered at the calculated drawing position. |
RIGHT | Axis::AXIS_TEXT_ALIGN_RIGHT | The text is drawn left from the calculated drawing position. |
Axis2 (axisText2AlignMode)¶
Axis3 (axisText3AlignMode)¶
Axis1 (axisNumber1AlignMode)¶
-
name:
axisNumber1AlignMode
, type:
Enum
, default:
Axis::AXIS_TEXT_ALIGN_LEFT
¶ Controls the alignment of the number strings drawn at ticks of the axis.
Values:
Title | Name | Description |
---|---|---|
LEFT | Axis::AXIS_TEXT_ALIGN_LEFT | The text is drawn right from the calculated drawing position. |
CENTER | Axis::AXIS_TEXT_ALIGN_CENTER | The text is drawn centered at the calculated drawing position. |
RIGHT | Axis::AXIS_TEXT_ALIGN_RIGHT | The text is drawn left from the calculated drawing position. |
Axis2 (axisNumber2AlignMode)¶
Axis3 (axisNumber3AlignMode)¶
Num Bias¶
-
name:
axisNumBias
, type:
Vector3
, default:
0 0 0
¶ Sets a value that is added to the annotations of the ticks.
Num Scale¶
-
name:
axisNumScale
, type:
Vector3
, default:
1 1 1
¶ Sets a scale factor for scaling the numbers annotating the ticks.
Steps (axisStepSizes)¶
-
name:
axisStepSizes
, type:
Vector3
, default:
0.100000001490116 0.100000001490116 0.100000001490116
¶ Sets distance values between the ticks.
Axis Min¶
-
name:
axisMinEnds
, type:
Vector3
, default:
0 0 0
¶ Sets the minimum values of the axes’ ticks.
Axis Max¶
-
name:
axisMaxEnds
, type:
Vector3
, default:
1 1 1
¶ Sets the maximum values of the axes’ ticks.
Length¶
-
name:
axisMarkerLength
, type:
Vector3
, default:
0.0500000007450581 0.0500000007450581 0.0500000007450581
¶ Sets the lengths of the ticks.
Alpha (axis1Transparency)¶
-
name:
axis1Transparency
, type:
Float
, default:
1
, minimum:
0
, maximum:
1
¶ Sets the transparency for the first axis.
Alpha (axis2Transparency)¶
-
name:
axis2Transparency
, type:
Float
, default:
1
, minimum:
0
, maximum:
1
¶ Sets the transparency for the second axis.
Alpha (axis3Transparency)¶
-
name:
axis3Transparency
, type:
Float
, default:
1
, minimum:
0
, maximum:
1
¶ Sets the transparency for the third axis.
Wing Length¶
-
name:
axisWingLength
, type:
Vector3
, default:
0.0333333350718021 0.0333333350718021 0.0333333350718021
¶ Sets the lengths of the ending arrows at the axes.
Axis Overscale¶
-
name:
axisOverScale
, type:
Vector3
, default:
1.10000002384186 1.10000002384186 1.10000002384186
¶ Sets a scale factor for over-scaling the lengths of the axes in respect to the set input size.
Steps (axisSubTickSteps)¶
-
name:
axisSubTickSteps
, type:
Vector3
, default:
0.200000002980232 0.200000002980232 0.200000002980232
¶ Sets a step value for subticks.