Open Inventor Reference
SoSField Class Reference

Abstract base class for all single-value fields. More...

#include <Inventor/fields/SoField.h>

Inheritance diagram for SoSField:
SoField SoSFBool SoSFColor SoSFEngine SoSFEnum SoSFFloat SoSFImage SoSFInt32 SoSFMatrix SoSFName SoSFNode SoSFPath SoSFPlane SoSFRotation SoSFShort SoSFString SoSFTime SoSFTrigger SoSFUInt32 SoSFUShort SoSFVec2f SoSFVec2s SoSFVec3f SoSFVec3s SoSFVec4f

List of all members.

Public Member Functions

virtual ~SoSField ()
 Destructor.

Static Public Member Functions

static SoType getClassTypeId ()
 Return the type identifier for this field class.
static void initClass ()
static void * createInstance ()

Protected Member Functions

 SoSField ()
 Constructor.

Detailed Description

Each class derived from SoSField begins with an SoSF prefix and contains one value of a particular type. Each has setValue() and getValue() methods that are used to change or access this value. In addition, some field classes have extra convenience routines that allow values to be set or retrieved in other related formats (see below).

In addition to setValue(), all single-value fields overload the "=" assignment operator to set the field value from the correct datatype or from another field instance of the same type.

The value of a single-value field is written to file in a format dependent on the field type; see the subclass man pages for details.

A field that is ignored has a tilde (~) either in place of the value (if the actual value is the default) or after it (otherwise).

See Also
SoField, SoMField

Definition at line 537 of file SoField.h.


Constructor & Destructor Documentation

virtual SoSField::~SoSField ( ) [virtual]
SoSField::SoSField ( ) [protected]

Member Function Documentation

static void* SoSField::createInstance ( ) [static]
static SoType SoSField::getClassTypeId ( ) [inline, static]

Reimplemented from SoField.

Definition at line 543 of file SoField.h.


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