Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SoSField — abstract base class for all single-value fields

Description

       Each  class derived from SoSField begins with an SoSF prefix and contains one value of a particular type.
       Each has setValue() and getValue() methods that are used to change or access  this  value.  In  addition,
       some  field  classes  have  extra  convenience routines that allow values to be set or retrieved in other
       related formats (see below).

       In addition to setValue(), all single-value fields overload the "=" assignment operator to set the  field
       value from the correct datatype or from another field instance of the same type.

       The  value  of  a  single-value field is written to file in a format dependent on the field type; see the
       subclass man pages for details.

       A field that is ignored has a tilde (~) either in place of the value (if the actual value is the default)
       or after it (otherwise).

Inherits From

       SoField > SoSField

Methods

staticSoTypegetClassTypeId()
          Return the type identifier for this field class.

Name

       SoSField — abstract base class for all single-value fields

See Also

SoField,SoMFieldSoSField(3IV)()

Synopsis

#include<Inventor/fields/SoField.h>

          Methods from class SoSField:

     staticSoTypegetClassTypeId()

          Methods from class SoField:

     voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()constvirtualSoTypegetTypeId()constvirtualSbBoolisOfType(SoTypetype)constSbBoolset(constchar*valueString)voidget(SbString&valueString)intoperator==(constSoField&f)constintoperator!=(constSoField&f)constvoidtouch()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