| 1 |
NAME SoSField SoSFld "" { |
| 2 |
abstract base class for all single-value fields |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE fields/SoField.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
Each class derived from \cSoSField\. begins with an |
| 9 |
\cSoSF\. prefix and contains one value of a particular type. Each has |
| 10 |
\m\+setValue()\.\-Set()\.\. and \m\+getValue()\.\-Get()\.\. methods |
| 11 |
that are used to change or |
| 12 |
access this value. In addition, some field classes have extra |
| 13 |
convenience routines that allow values to be set or retrieved in other |
| 14 |
related formats (see below). |
| 15 |
\+ |
| 16 |
\p |
| 17 |
In addition to \msetValue()\., all single-value fields overload the "=" |
| 18 |
assignment operator to set the field value from the correct datatype |
| 19 |
or from another field instance of the same type. |
| 20 |
\. |
| 21 |
\- |
| 22 |
\p |
| 23 |
This class is rarely needed by C programmers. |
| 24 |
\. |
| 25 |
\p |
| 26 |
The value of a single-value field is written to file in a format |
| 27 |
dependent on the field type; see the subclass man pages for details. |
| 28 |
\p |
| 29 |
A field that is ignored has a tilde (~) |
| 30 |
either in place of the value (if the actual value is the default) |
| 31 |
or after it (otherwise). |
| 32 |
} |
| 33 |
|
| 34 |
METHOD "" static SoType getClassTypeId() { |
| 35 |
Return the type identifier for this field class. |
| 36 |
} |
| 37 |
|
| 38 |
ALSO { SoField, SoMField } |