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

SoNode — abstract base class for all database nodes

Action Behavior

SoSearchAction
          If the node pointer, type, or name matches the search criteria, returns a path to the node.

     SoWriteAction
          Writes the contents of the node to the current SoOutput.

Description

       This is the abstract base class from which all scene graph node classes are derived.

File Format/Defaults

       This is an abstract class. See the reference page of a derived class for the format and default values.

Inherits From

       SoBase > SoFieldContainer > SoNode

Methods

voidsetOverride(SbBoolstate)
          Turns override flag on or off.

     SbBoolisOverride()const
          Returns the state of the override flag.

     SoNode*copy(SbBoolcopyConnections=FALSE)const
          Creates and returns an exact copy of the node. If the node is a group, it copies the children as well.
          If  copyConnections  is TRUE (it is FALSE by default), any connections to (but not from) fields of the
          node are copied, as well. Note that multiple references to a node under the node  to  be  copied  will
          result in multiple references to the copy of that node.

     virtualSbBoolaffectsState()const
          Returns  TRUE  if a node has an effect on the state during traversal. The default method returns TRUE.
          Node classes (such as SoSeparator) that isolate their effects from the rest of the graph override this
          method to return FALSE.

     staticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)
          A node's name can be set using SoBase::setName().  These methods allow nodes to be looked up by  name.
          The  first  one  returns  the last node given the specified name. The second one returns the number of
          nodes with the given name, and adds to list pointers to those nodes.

     staticSoTypegetClassTypeId()
          Returns type identifier for the SoNode class.

Name

       SoNode — abstract base class for all database nodes

See Also

SoPath,SoAction,SoNodeKitSoNode(3IV)()

Synopsis

#include<Inventor/nodes/SoNode.h>

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)staticSoTypegetClassTypeId()

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also