Open Inventor Reference
|
Multiple-value field containing any number of names. More...
#include <Inventor/fields/SoMFName.h>
Public Member Functions | |
void | setValues (int start, int num, const char *strings[]) |
Sets num values beginning at index start to the names contained in the given set of character strings. | |
void | setValue (const char *string) |
Sets this field to contain one and only one value, given by string . | |
Static Public Member Functions | |
static void | initClass () |
A multiple-valued field containing any number of names. 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 SoMFString field is probably more appropriate.
SoMFNames are written to file as one or more strings of characters. Names must begin with an underscore or alphabetic character, and must consist entirely of underscores, alphabetic characters, or numbers. When more than one value is present, all of the values are enclosed in square brackets and separated by commas; for example:
[ Fred, Wilma, _Part_01, translationField ]
Definition at line 87 of file SoMFName.h.
static void SoMFName::initClass | ( | ) | [static] |
Reimplemented from SoMField.
void SoMFName::setValue | ( | const char * | string | ) |
void SoMFName::setValues | ( | int | start, |
int | num, | ||
const char * | strings[] | ||
) |