SoSFEnum — field containing an enumerated value
Contents
Description
A single-value field that contains an enumerated type value, stored as an integer. Nodes that use this
field class define mnemonic names for the values. These names should be used when setting or testing the
values of the field, even though the values are treated as integers in the methods.
SoSFEnums are written to file as a mnemonic enumerated type name. The name differs among uses of this
field in various node or engine classes. See the man pages for specific nodes or engines for the names
(e.g. SoDrawStyle).
Inherits From
SoField > SoSField > SoSFEnum
Methods
voidsetValue(constSbName&name)
Sets this field to contain the given mnemonic name, passed in as a name or string.
staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
Returns the type for this class or a particular object of this class.
intgetValue()const
Returns this field's value.
intoperator=(intnewValue)voidsetValue(intnewValue)
Sets this field to newValue.
intoperator==(constSoSFEnum&f)constintoperator!=(constSoSFEnum&f)const
Returns TRUE if f is of the same type and has the same value as this field.
Name
SoSFEnum — field containing an enumerated value
See Also
SoField,SoSField,SoMFEnumSoSFEnum(3IV)()
Synopsis
Methods from class SoSFEnum:
voidsetValue(constSbName&name)staticSoTypegetClassTypeId()virtualvoidgetTypeId()constintgetValue()constintoperator=(intnewValue)voidsetValue(intnewValue)intoperator==(constSoSFEnum&f)constintoperator!=(constSoSFEnum&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