public class SoUnits extends SoTransformation
SoScale node with the scaleFactor of (.0254, .0254, .0254). Any subsequent SoUnits node will take the previous units into account. When building a composite object out of a bunch of pieces, it would be a good practice to add an SoUnits node at the beginning of each of the pieces, under an SoSeparator node, to make sure all the pieces fit together with the same scale.
File format/default:
Units {
| units | METERS |
Action behavior:
SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction
Accumulates the scale that is the ratio of the size from the previous unit to the current unit into the current transformation. Sets: SoModelMatrixElement, SoUnitsElement
SoGetMatrixAction
Returns the matrix corresponding to the units scaling.
See also:
| Modifier and Type | Class and Description |
|---|---|
static class |
SoUnits.UnitsType
Units.
|
Inventor.ConstructorCommand| Modifier and Type | Field and Description |
|---|---|
static int |
ANGSTROMS
Deprecated.
Use
SoUnits.UnitsType.ANGSTROMS instead. |
static int |
CENTIMETERS
Deprecated.
Use
SoUnits.UnitsType.CENTIMETERS instead. |
static int |
FEET
Deprecated.
Use
SoUnits.UnitsType.FEET instead. |
static int |
INCHES
Deprecated.
Use
SoUnits.UnitsType.INCHES instead. |
static int |
KILOMETERS
Deprecated.
Use
SoUnits.UnitsType.KILOMETERS instead. |
static int |
METERS
Deprecated.
Use
SoUnits.UnitsType.METERS instead. |
static int |
MICROMETERS
Deprecated.
Use
SoUnits.UnitsType.MICROMETERS instead. |
static int |
MICRONS
Deprecated.
Use
SoUnits.UnitsType.MICRONS instead. |
static int |
MILES
Deprecated.
Use
SoUnits.UnitsType.MILES instead. |
static int |
MILLIMETERS
Deprecated.
Use
SoUnits.UnitsType.MILLIMETERS instead. |
static int |
NANOMETERS
Deprecated.
Use
SoUnits.UnitsType.NANOMETERS instead. |
static int |
NAUTICAL_MILES
Deprecated.
Use
SoUnits.UnitsType.NAUTICAL_MILES instead. |
static int |
POINTS
Deprecated.
Use
SoUnits.UnitsType.POINTS instead. |
SoSFEnum<SoUnits.UnitsType> |
units
Defines the current unit.
|
static int |
YARDS
Deprecated.
Use
SoUnits.UnitsType.YARDS instead. |
VERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoUnits()
Creates a unit conversion node with default settings.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writecopyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsdispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizablegetAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads@Deprecated public static final int METERS
SoUnits.UnitsType.METERS instead.@Deprecated public static final int CENTIMETERS
SoUnits.UnitsType.CENTIMETERS instead.@Deprecated public static final int MILLIMETERS
SoUnits.UnitsType.MILLIMETERS instead.@Deprecated public static final int MICROMETERS
SoUnits.UnitsType.MICROMETERS instead.@Deprecated public static final int MICRONS
SoUnits.UnitsType.MICRONS instead.@Deprecated public static final int NANOMETERS
SoUnits.UnitsType.NANOMETERS instead.@Deprecated public static final int ANGSTROMS
SoUnits.UnitsType.ANGSTROMS instead.@Deprecated public static final int KILOMETERS
SoUnits.UnitsType.KILOMETERS instead.@Deprecated public static final int FEET
SoUnits.UnitsType.FEET instead.@Deprecated public static final int INCHES
SoUnits.UnitsType.INCHES instead.@Deprecated public static final int POINTS
SoUnits.UnitsType.POINTS instead.@Deprecated public static final int YARDS
SoUnits.UnitsType.YARDS instead.@Deprecated public static final int MILES
SoUnits.UnitsType.MILES instead.@Deprecated public static final int NAUTICAL_MILES
SoUnits.UnitsType.NAUTICAL_MILES instead.public final SoSFEnum<SoUnits.UnitsType> units
Units. Default is METERS.Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com