Field containing a name. More...
#include <Inventor/fields/SoSFName.h>
Public Member Functions | |
| virtual SoType | getTypeId () const |
| const SoSFName & | operator= (const SoSFName &f) |
| SoSFName () | |
| virtual | ~SoSFName () |
| const SbName & | getValue () const |
| void | setValue (const SbName &newValue) |
| const SbName & | operator= (const SbName &newValue) |
| int | operator== (const SoSFName &f) const |
| int | operator!= (const SoSFName &f) const |
| virtual size_t | getValueSize () const |
| void | setValue (const char *string) |
Static Public Member Functions | |
| static SoType | getClassTypeId () |
Field containing a name.
A field containing a name. Names are short series of characters generally used for labels or names, and are stored in a special table designed to allow fast lookup and comparison. For most purposes, an SoSFString field is probably more appropriate.
SoSFNames are written to file as a string of characters. Names must begin with an underscore or alphabetic character, and must consist entirely of underscores, alphabetic characters, or numbers.
| SoSFName::SoSFName | ( | ) |
Default constructor.
| virtual SoSFName::~SoSFName | ( | ) | [virtual] |
Destructor.
| static SoType SoSFName::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
| virtual SoType SoSFName::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
| const SbName& SoSFName::getValue | ( | ) | const [inline] |
Returns this field's value.
| virtual size_t SoSFName::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
| int SoSFName::operator!= | ( | const SoSFName & | f | ) | const [inline] |
Returns FALSE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
| int SoSFName::operator== | ( | const SoSFName & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
| void SoSFName::setValue | ( | const char * | string | ) |
Sets this field to the name equivalent to the given string.
| void SoSFName::setValue | ( | const SbName & | newValue | ) |
Sets this field to newValue.