SoUnitsElement Class Reference
[Elements]

Stores the current units type. More...

#include <Inventor/elements/SoUnitsElement.h>

Inheritance diagram for SoUnitsElement:
SoInt32Element SoElement SoTypedObject

List of all members.

Public Types

enum  Units {
  METERS,
  CENTIMETERS,
  MILLIMETERS,
  MICROMETERS,
  MICRONS,
  NANOMETERS,
  ANGSTROMS,
  KILOMETERS,
  FEET,
  INCHES,
  POINTS,
  YARDS,
  MILES,
  NAUTICAL_MILES
}

Public Member Functions

virtual void print (FILE *fp) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, Units units)
static void set (SoState *state, SoNode *, Units units)
static Units get (SoState *state)
static Units getDefault ()

Detailed Description

Stores the current units type.

This element stores the current units type.

SEE ALSO

SoUnits


Member Enumeration Documentation

These are the available types of units.

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

Member Function Documentation

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

Returns current units from the state.

static int SoUnitsElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoInt32Element.

static SoType SoUnitsElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoInt32Element.

static Units SoUnitsElement::getDefault (  )  [inline, static]

Returns the default units.

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

Prints element (for debugging).

Reimplemented from SoInt32Element.

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

Sets the current units in the state.

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

Sets the current units in the state.


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

Open Inventor Toolkit reference manual, generated on 16 Sep 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/