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

SoSFNode — field containing a pointer to a node

Description

       This field maintains a pointer to an SoNode instance, correctly maintaining its reference count.

       SoSFNodes are written to file as the node they are pointing to. For example:

          mySoSFNodeField Cube {}

     is  an  SoSFNode  field named 'mySoSFNodeField', pointing to an SoCube node. If the node is used elsewhere,
     the regular DEF/USE instancing mechanism applies:

          anotherSoSFNodeField USE topSeparator

     is an SoSFNode field that points to a node named 'topSeparator' that was DEF'ed earlier in the scene.

Inherits From

       SoField > SoSField > SoSFNode

Methods

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

     SoNode*getValue()const
          Returns this field's value.

     SoNode*operator=(SoNode*newValue)voidsetValue(SoNode*newValue)
          Sets this field to newValue.

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

Name

       SoSFNode — field containing a pointer to a node

See Also

SoField,SoSField,SoMFNode,SoNodeSoSFNode(3IV)()

Synopsis

#include<Inventor/fields/SoSFNode.h>

          Methods from class SoSFNode:

     staticSoTypegetClassTypeId()virtualvoidgetTypeId()constSoNode*getValue()constSoNode*operator=(SoNode*newValue)voidsetValue(SoNode*newValue)intoperator==(constSoSFNode&f)constintoperator!=(constSoSFNode&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