SoSFName — field containg a name
Contents
Description
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.
Inherits From
SoField > SoSField > SoSFName
Methods
voidsetValue(constchar*string)
Set this field to the name equivalent to the given string.
staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
Returns the type for this class or a particular object of this class.
constSbName&getValue()const
Returns this field's value.
constSbName&operator=(constSbName&newValue)voidsetValue(constSbName&newValue)
Sets this field to newValue.
intoperator==(constSoSFName&f)constintoperator!=(constSoSFName&f)const
Returns TRUE if f is of the same type and has the same value as this field.
Name
SoSFName — field containg a name
See Also
SoField,SoSField,SoMFNameSoSFName(3IV)()
Synopsis
#include<Inventor/fields/SoSFName.h>
Methods from class SoSFName:
voidsetValue(constchar*string)staticSoTypegetClassTypeId()virtualvoidgetTypeId()constconstSbName&getValue()constconstSbName&operator=(constSbName&newValue)voidsetValue(constSbName&newValue)intoperator==(constSoSFName&f)constintoperator!=(constSoSFName&f)const
Methods from class SoField:
voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()constvirtualSbBoolisOfType(SoTypetype)constSbBoolset(constchar*valueString)voidget(SbString&valueString)voidtouch()SbBoolconnectFrom(SoField*fromField)SbBoolconnectFrom(SoEngineOutput*fromEngine)voiddisconnect()SbBoolisConnected()constSbBoolisConnectedFromField()constSbBoolgetConnectedField(SoField*&writingField)constSbBoolisConnectedFromEngine()constSbBoolgetConnectedEngine(SoEngineOutput*&engineOutput)constvoidenableConnection(SbBoolflag)SbBoolisConnectionEnabled()constintgetForwardConnections(SoFieldList&list)constSoFieldContainer*getContainer()const