| 1 |
NAME SoSFName SoSName "" { field containg a name } |
| 2 |
|
| 3 |
INCLUDE fields/SoSFName.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
A field containing a name. Names are short series of characters |
| 7 |
generally used for labels or names, and are stored in a special table |
| 8 |
designed to allow fast lookup and comparison. For most purposes, an |
| 9 |
\cSoSFString\. field is probably more appropriate. |
| 10 |
\p |
| 11 |
\cSoSFNames\. are written to file as a string of |
| 12 |
characters. Names must begin with an underscore or alphabetic |
| 13 |
character, and must consist entirely of underscores, alphabetic |
| 14 |
characters, or numbers. |
| 15 |
} |
| 16 |
METHOD setStr void setValue(const char *string) { |
| 17 |
Set this field to the name equivalent to the given string. |
| 18 |
} |
| 19 |
ALSO { SoField, SoSField, SoMFName } |
| 20 |
METHOD "" static SoType getClassTypeId() {} |
| 21 |
METHOD "" virtual void getTypeId() const { |
| 22 |
Returns the type for this class or a particular object of this class. |
| 23 |
} |
| 24 |
METHOD Get const SbName & getValue() const { |
| 25 |
Returns this field's value. |
| 26 |
} |
| 27 |
METHOD " " const SbName & operator =(const SbName & newValue) {} |
| 28 |
METHOD Set void setValue(const SbName & newValue) { |
| 29 |
Sets this field to \anewValue\.. |
| 30 |
} |
| 31 |
METHOD IsEq int operator ==(const SoSFName &f) const {} |
| 32 |
METHOD IsNEq int operator !=(const SoSFName &f) const { |
| 33 |
Returns TRUE if \af\. is of the same type and has the same value as this |
| 34 |
field. |
| 35 |
} |