Coin
4.0.3
Coin3D core library
|
The SoSField class is the base class for fields which contains only a single value. More...
#include <Inventor/fields/SoSField.h>
Static Public Member Functions | |
static void | atexit_cleanup (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
Static Public Member Functions inherited from SoField | |
static void | cleanupClass (void) |
static SoType | getClassTypeId (void) |
static void | initClass (void) |
static void | initClasses (void) |
Protected Member Functions | |
SoSField (void) | |
Protected Member Functions inherited from SoField | |
SoField (void) | |
virtual SoNotRec | createNotRec (SoBase *cont) |
virtual void | evaluateConnection (void) const |
SbBool | isDestructing (void) const |
virtual SbBool | readConnection (SoInput *in) |
virtual SbBool | readValue (SoInput *in)=0 |
void | valueChanged (SbBool resetdefault=TRUE) |
virtual void | writeConnection (SoOutput *out) const |
virtual void | writeValue (SoOutput *out) const =0 |
Additional Inherited Members | |
Public Types inherited from SoField | |
enum | FieldType { NORMAL_FIELD = 0 , EVENTIN_FIELD , EVENTOUT_FIELD , EXPOSED_FIELD } |
The SoSField class is the base class for fields which contains only a single value.
All field types which should always contain only a single member value inherits this class. SoSField is an abstract class.
You use methods setValue() and getValue() to store or fetch the value of single-value fields. Example:
When nodes, engines or other types of field containers are written to file, their single-value fields are written to file in this format:
..like this, for instance, a SpotLight node from a scene graph which will be default off when read back from file:
|
virtual |
The SoSField destructor is empty, and is only defined so we could make it virtual.
|
protected |
The SoSField constructor is protected, as this is an abstract class.
Returns a unique type identifier for this field class.
Internal method called upon initialization of the library (from SoDB::init()) to set up the type system.