Open Inventor Reference
SoUnitsElement Class Reference

Element that stores the current units type.

#include <Inventor/elements/SoUnitsElement.h>

Inheritance diagram for SoUnitsElement:
SoInt32Element SoElement

List of all members.

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 ()

Detailed Description

Definition at line 69 of file SoUnitsElement.h.


Member Enumeration Documentation

Enumerator:
METERS 
CENTIMETERS 
MILLIMETERS 
MICROMETERS 
MICRONS 
NANOMETERS 
ANGSTROMS 
KILOMETERS 
FEET 
INCHES 
POINTS 
YARDS 
MILES 
NAUTICAL_MILES 

Definition at line 75 of file SoUnitsElement.h.


Constructor & Destructor Documentation

virtual SoUnitsElement::~SoUnitsElement ( ) [protected, virtual]

Member Function Documentation

static Units SoUnitsElement::get ( SoState state) [inline, static]

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.

virtual void SoUnitsElement::init ( SoState state) [virtual]

Reimplemented from SoElement.

static void SoUnitsElement::initClass ( ) [static]

Reimplemented from SoInt32Element.

virtual void SoUnitsElement::print ( FILE *  fp) const [virtual]

Reimplemented from SoInt32Element.

static void SoUnitsElement::set ( SoState state,
SoNode ,
Units  units 
) [inline, static]

Definition at line 100 of file SoUnitsElement.h.

static void SoUnitsElement::set ( SoState state,
Units  units 
) [inline, static]

Definition at line 96 of file SoUnitsElement.h.

References SoInt32Element::set().


The documentation for this class was generated from the following file: