Open Inventor Reference
|
Element that stores the current units type.
#include <Inventor/elements/SoUnitsElement.h>
Public Types | |
enum | Units { METERS, CENTIMETERS, MILLIMETERS, MICROMETERS, MICRONS, NANOMETERS, ANGSTROMS, KILOMETERS, FEET, INCHES, POINTS, YARDS, MILES, NAUTICAL_MILES } |
These are the available types of units: More... | |
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
virtual void | print (FILE *fp) const |
Prints element (for debugging) | |
Static Public Member Functions | |
static void | set (SoState *state, Units units) |
Sets the current units in the state. | |
static void | set (SoState *state, SoNode *, Units units) |
static Units | get (SoState *state) |
Returns current units from the state. | |
static Units | getDefault () |
Returns the default units. | |
static void | initClass () |
Initializes the SoUnitsElement class. | |
Protected Member Functions | |
virtual | ~SoUnitsElement () |
Definition at line 69 of file SoUnitsElement.h.
METERS | |
CENTIMETERS | |
MILLIMETERS | |
MICROMETERS | |
MICRONS | |
NANOMETERS | |
ANGSTROMS | |
KILOMETERS | |
FEET | |
INCHES | |
POINTS | |
YARDS | |
MILES | |
NAUTICAL_MILES |
Definition at line 75 of file SoUnitsElement.h.
virtual SoUnitsElement::~SoUnitsElement | ( | ) | [protected, virtual] |
Definition at line 105 of file SoUnitsElement.h.
References SoInt32Element::get().
static Units SoUnitsElement::getDefault | ( | ) | [inline, static] |
Definition at line 109 of file SoUnitsElement.h.
static void SoUnitsElement::initClass | ( | ) | [static] |
Reimplemented from SoInt32Element.
virtual void SoUnitsElement::print | ( | FILE * | fp | ) | const [virtual] |
Reimplemented from SoInt32Element.
Definition at line 100 of file SoUnitsElement.h.
Definition at line 96 of file SoUnitsElement.h.
References SoInt32Element::set().