logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoSFString — field containing a string

Description

       A field containing an ASCII string (sequence of characters). Inventor does not support non-ASCII strings.

       SoSFStrings  are  written  to  file  as  a sequence of ASCII characters in double quotes (optional if the
       string doesn't contain any whitespace). Any characters (including newlines) may appear within the quotes.
       To include a double quote character within the string, precede it with a backslash. For example:

          Testing
          "One, Two, Three"
          "He said, \"Immel did it!\""

     are all valid strings.

Inherits From

       SoField > SoSField > SoSFString

Methods

setValue(constchar*string)
          Convenience method to set the field's value given a character array.

     staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
          Returns the type for this class or a particular object of this class.

     constSbString&getValue()const
          Returns this field's value.

     constSbString&operator=(constSbString&newValue)voidsetValue(constSbString&newValue)
          Sets this field to newValue.

     intoperator==(constSoSFString&f)constintoperator!=(constSoSFString&f)const
          Returns TRUE if f is of the same type and has the same value as this field.

Name

       SoSFString — field containing a string

See Also

SbString,SoField,SoSField,SoMFStringSoSFString(3IV)()

Synopsis

#include<Inventor/fields/SoSFString.h>

          Methods from class SoSFString:

                         setValue(constchar*string)staticSoTypegetClassTypeId()virtualvoidgetTypeId()constconstSbString&getValue()constconstSbString&operator=(constSbString&newValue)voidsetValue(constSbString&newValue)intoperator==(constSoSFString&f)constintoperator!=(constSoSFString&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

See Also