Node that scales to convert units of length. More...
#include <Inventor/nodes/SoUnits.h>
Public Types | |
enum | Units { METERS, CENTIMETERS, MILLIMETERS, MICROMETERS, MICRONS, NANOMETERS, ANGSTROMS, KILOMETERS, FEET, INCHES, POINTS, YARDS, MILES, NAUTICAL_MILES } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoUnits () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFEnum | units |
Node that scales to convert units of length.
This node defines a uniform 3D scale about the origin relative to the previously defined units. The default units for all data are meters. Adding a units node with the value INCHES will have the same effect as adding an 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.
units | METERS |
SoGetMatrixAction
Returns the matrix corresponding to the units scaling.
enum SoUnits::Units |
SoUnits::SoUnits | ( | ) |
Creates a unit conversion node with default settings.
static SoType SoUnits::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoTransformation.
virtual SoType SoUnits::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoTransformation.
Defines the current unit.
Use enum Units. Default is METERS.