Open Inventor Reference
SoSFNode Class Reference

Field containing a pointer to a node. More...

#include <Inventor/fields/SoSFNode.h>

Inheritance diagram for SoSFNode:
SoSField SoField

List of all members.

Public Member Functions

virtual void fixCopy (SbBool copyConnections)
 Update a copied field to use the copy of the node if there is one.
virtual SbBool referencesCopy () const
 Override this to also check the stored node.

Static Public Member Functions

static void initClass ()

Detailed 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.

See Also
SoField, SoSField, SoMFNode, SoNode

Definition at line 92 of file SoSFNode.h.


Member Function Documentation

virtual void SoSFNode::fixCopy ( SbBool  copyConnections) [virtual]

Reimplemented from SoField.

static void SoSFNode::initClass ( ) [static]

Reimplemented from SoSField.

virtual SbBool SoSFNode::referencesCopy ( ) const [virtual]

Reimplemented from SoField.


The documentation for this class was generated from the following file: