Coin
4.0.3
Coin3D core library
|
The SoNode class is the base class for nodes used in scene graphs. More...
#include <Inventor/nodes/SoNode.h>
Public Types | |
enum | NodeType { INVENTOR = 0x0000 , VRML1 = 0x0001 , VRML2 = 0x0002 , INVENTOR_1 = 0x0004 , INVENTOR_2_0 = 0x0008 , INVENTOR_2_1 = 0x0010 , INVENTOR_2_5 = 0x0020 , INVENTOR_2_6 = 0x0040 , COIN_1_0 = 0x0080 , COIN_2_0 = 0x0100 , EXTENSION = 0x0200 , COIN_2_2 = 0x0400 , COIN_2_3 = 0x0800 , COIN_2_4 = 0x1000 , INVENTOR_5_0 = 0x2000 , COIN_2_5 = 0x4000 , COIN_3_0 = 0x8000 , INVENTOR_6_0 = 0x10000 , COIN_4_0 = 0x20000 } |
Protected Member Functions | |
SoNode (void) | |
virtual | ~SoNode () |
virtual SbBool | readInstance (SoInput *in, unsigned short flags) |
Protected Member Functions inherited from SoFieldContainer | |
SoFieldContainer (void) | |
virtual | ~SoFieldContainer () |
Protected Member Functions inherited from SoBase | |
SoBase (void) | |
virtual | ~SoBase () |
virtual SoNotRec | createNotRec (void) |
virtual void | destroy (void) |
virtual const char * | getFileFormatName (void) const |
SbBool | hasMultipleWriteRefs (void) const |
void | writeFooter (SoOutput *out) const |
SbBool | writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const |
Static Protected Member Functions | |
static const SoFieldData ** | getFieldDataPtr (void) |
static int | getNextActionMethodIndex (void) |
static void | incNextActionMethodIndex (void) |
static void | setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask) |
static void | setNextActionMethodIndex (int index) |
Static Protected Member Functions inherited from SoBase | |
static uint32_t | getCurrentWriteCounter (void) |
static void | staticDataLock (void) |
static void | staticDataUnlock (void) |
Protected Attributes | |
SbUniqueId | uniqueId |
Protected Attributes inherited from SoFieldContainer | |
SbBool | isBuiltIn |
Static Protected Attributes | |
static int | nextActionMethodIndex = 0 |
static SbUniqueId | nextUniqueId = 1 |
Additional Inherited Members | |
Protected Types inherited from SoBase | |
enum | BaseFlags { IS_ENGINE = 0x01 , IS_GROUP = 0x02 } |
The SoNode class is the base class for nodes used in scene graphs.
Coin is a retained mode 3D visualization library (built on top of the immediate mode OpenGL library). "Retained mode" means that instead of passing commands to draw graphics primitives directly to the renderer, you build up data structures which are rendered by the library on demand.
The node classes are the main "primitive" for building these data structures. In Coin, you build tree hierarchies made up of different node types: group nodes (for the tree structure layout of the other nodes), appearance nodes (for setting up materials, textures, etc), shape nodes (for the actual geometry), and nodes for lighting and camera positioning.
One common issue with newcomers to the API is that you should not and cannot use the C++ delete operator on nodes – the destructor is protected. This is because node instances are using a common technique for memory resource handling called "reference counting". Nodes are deleted (actually, they delete themselves) when their unref() method is called and the reference count goes to zero.
One important side-effect of this is that SoNode-derived classes should not be statically allocated, neither in static module memory nor on functions stack frames. SoNode-derived classes must always be allocated dynamically from the memory heap with the new
operator (or else the scheme with self-destruction upon dereferencing to 0 would not work).
Usually application programmers won't manually ref() and unref() nodes a lot, because you pass the nodes directly to SoGroup::addChild() or So@Gui@Viewer::setSceneGraph() or something similar. These functions will ref() the nodes they are passed, and unref() them when they are finished with them.
Make sure you do ref() nodes that you keep pointers to so they aren't accidentally deleted prematurely due to an unref() call from within the library itself. If you haven't manually called ref() on a top level root node, it will then be deleted automatically. This code shows how to do it:
For full information and tutorial-style introductions to all API issues, see the "Inventor Mentor: Programming Object-Oriented 3D Graphics with Open Inventor" (ISBN 0-201-62495-8). It has detailed explanations on all the basic principles involved.
See specifically the section "References and Deletion" in Chapter 3 to learn about the reference counting techniques.
Often when using the Coin library, one is interested in making extensions to it. Of particular interest is setting up extension nodes, which are then traversed, rendered and otherwise used by the rest of the library as any internal node.
The Coin header file Inventor/nodes/SoSubNode.h includes a set of convenience macros for quick and easy construction of extension nodes. Here's a complete snippet of code which shows how to set up a skeleton framework for an extension node class:
You can then override for instance the GLRender() method to have your new class render OpenGL geometry different from its superclass.
For extending the Coin library with your own classes, we strongly recommend that you make yourself acquainted with the excellent «The Inventor Toolmaker» book (ISBN 0-201-62493-1), which describes the tasks involved in detail. This book was written by the original SGI Inventor designers and explains many of the underlying design ideas, as well as having lots of hands-on examples on how to extend the Coin toolkit in ways that are true to the fundamental design ideas. («The Inventor Toolmaker» is also available at SGI's online library, at no cost. See Download The Inventor Toolmaker.) Reading the source code of the built-in classes in Coin should also prove very helpful.
For information about dynamic loading of extension nodes, see the documentation of SoType::fromName().
Used to store node type.
Enumerator | |
---|---|
INVENTOR | Specifies Inventor node type. |
VRML1 | Node is VRML V1.0 compatible. |
VRML2 | Node is from the VRML V2.0 specification. |
INVENTOR_1 | Node was part of SGI Inventor version 1. |
INVENTOR_2_0 | Node was part of SGI Inventor version 2.0. |
INVENTOR_2_1 | Node was introduced with SGI / TGS Inventor version 2.1. |
INVENTOR_2_5 | Node was introduced with TGS Inventor version 2.5. |
INVENTOR_2_6 | Node was introduced with TGS Inventor version 2.6. |
COIN_1_0 | Node was part of Coin version 1.0. |
COIN_2_0 | Node was introduced with Coin 2.0. |
EXTENSION | Node is a client code extension. |
COIN_2_2 | Node was introduced with Coin 2.2. |
COIN_2_3 | Node was introduced with Coin 2.3. |
COIN_2_4 | Node was introduced with Coin 2.4. |
INVENTOR_5_0 | Node was introduced with TGS Inventor version 5.0. |
COIN_2_5 | Node was introduced with Coin 2.5. |
COIN_3_0 | Node was introduced with Coin 3.0. |
INVENTOR_6_0 | Node was introduced with TGS Inventor version 6.0. |
COIN_4_0 | Node was introduced with Coin 4.0. |
|
protected |
Default constructor, initializes node instance.
|
protectedvirtual |
Destructor.
Add a copy of this node and (recursively) all children to the copy dictionary of SoFieldContainer if this has not already been done.
Used internally during copy operations.
Reimplemented in SoBaseKit.
|
virtual |
Returns TRUE
if the node could have any effect on the state during traversal.
If it returns FALSE
, no data in the traversal state will change from the pre-traversal state to the post-traversal state. The SoSeparator node will for instance return FALSE
, as it pushes and pops the state before and after traversal of its children. All SoShape nodes will also return FALSE
, as just pushing out geometry data to the rendering engine won't affect the actual rendering state.
The default method returns TRUE
, on a "better safe than sorry" philosophy.
Reimplemented in SoNodeKitListPart, SoSceneKit, SoArray, SoMultipleCopy, SoSeparator, SoShape, SoSwitch, SoVRMLLOD, SoVRMLParent, SoVRMLProximitySensor, SoVRMLShape, SoVRMLSwitch, and SoVRMLTouchSensor.
|
virtual |
Action method for SoAudioRenderAction.
Does common processing for SoAudioRenderAction action instances.
Reimplemented in SoListener, SoProfilerStats, SoArray, SoCamera, SoFile, SoGroup, SoLevelOfDetail, SoLOD, SoMultipleCopy, SoPathSwitch, SoSeparator, SoSwitch, SoTransformSeparator, SoWWWInline, SoVRMLGroup, SoVRMLLOD, SoVRMLSound, SoVRMLSwitch, and SoVRMLTransform.
This is a static "helper" method registered with the action, and used for calling the SoNode::audioRender() virtual method which does the real work.
|
virtual |
Action method for SoCallbackAction.
Simply updates the state according to how the node behaves for the render action, so the application programmer can use the SoCallbackAction for extracting information about the scene graph.
Reimplemented in SoProfilerStats, SoDragger, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoNodeKitListPart, SoAntiSquish, SoArray, SoBaseColor, SoBumpMap, SoBumpMapCoordinate, SoBumpMapTransform, SoCacheHint, SoCallback, SoCamera, SoClipPlane, SoComplexity, SoCoordinate3, SoCoordinate4, SoDrawStyle, SoEnvironment, SoFile, SoFont, SoFontStyle, SoGeoCoordinate, SoGeoLocation, SoGeoOrigin, SoGeoSeparator, SoGroup, SoLevelOfDetail, SoLight, SoLightModel, SoLOD, SoMaterial, SoMaterialBinding, SoMatrixTransform, SoMultipleCopy, SoNormal, SoNormalBinding, SoPackedColor, SoPathSwitch, SoPickStyle, SoPolygonOffset, SoProfile, SoProfileCoordinate2, SoProfileCoordinate3, SoResetTransform, SoRotation, SoRotationXYZ, SoScale, SoSceneTexture2, SoSceneTextureCubeMap, SoSeparator, SoShape, SoShapeHints, SoSurroundScale, SoSwitch, SoTexture, SoTexture2, SoTexture2Transform, SoTexture3, SoTexture3Transform, SoTextureCombine, SoTextureCoordinate2, SoTextureCoordinate3, SoTextureCoordinateBinding, SoTextureCoordinateCube, SoTextureCoordinateCylinder, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment, SoTextureCoordinateNormalMap, SoTextureCoordinateObject, SoTextureCoordinatePlane, SoTextureCoordinateReflectionMap, SoTextureCoordinateSphere, SoTextureCubeMap, SoTextureMatrixTransform, SoTextureUnit, SoTransform, SoTransformSeparator, SoTranslation, SoTransparencyType, SoUnits, SoVertexAttributeBinding, SoVertexProperty, SoWWWInline, SoVRMLAppearance, SoVRMLBillboard, SoVRMLColor, SoVRMLCoordinate, SoVRMLFontStyle, SoVRMLGroup, SoVRMLImageTexture, SoVRMLInline, SoVRMLLOD, SoVRMLMaterial, SoVRMLNormal, SoVRMLPixelTexture, SoVRMLProximitySensor, SoVRMLScript, SoVRMLShape, SoVRMLSwitch, SoVRMLTextureCoordinate, SoVRMLTextureTransform, SoVRMLTransform, SoVRMLVertexLine, SoVRMLVertexPoint, and SoVRMLVertexShape.
This is a static "helper" method registered with the action, and used for calling the SoNode::callback() virtual method which does the real work.
|
virtual |
Make a duplicate of this node and return a pointer to the duplicate.
If this node is a group node, children are also copied and we return a pointer to the root of a full copy of the subgraph rooted here.
If copyconnections is TRUE
, we also copy the connections to fields within this node (and ditto for any children and children's children etc.).
Note that this function has been made virtual in Coin, which is not the case in the original Open Inventor API. We may change this method back into being non-virtual again for major Coin versions after this, as it was made virtual more or less by mistake. So please don't write application code that depends on SoNode::copy() being virtual.
The reason this method should not be virtual is because this is not the function the application programmer should override in extension nodes if she needs some special behavior during a copy operation (like copying the value of internal data not exposed as fields).
For that purpose, override the copyContents() method. Your overridden copyContents() method should then both copy internal data as well as calling the parent superclass' copyContents() method for automatically handling of fields and other common data.
|
virtual |
Makes a deep copy of all data of from into this instance, except external scene graph references if copyconnections is FALSE
.
This is the method that should be overridden by extension node / engine / dragger / whatever subclasses which need to account for internal data that are not handled automatically.
For copying nodes from application code, you should not invoke this function directly, but rather call the SoNode::copy() function:
The same also goes for engines.
Make sure that when you override the copyContents() method in your extension class that you also make it call upwards to its parent superclass in the inheritance hierarchy, as copyContents() in for instance SoNode and SoFieldContainer does important work. It should go something like this:
Reimplemented from SoFieldContainer.
Reimplemented in SoVRMLAppearance, SoVRMLGeometry, SoVRMLLOD, SoVRMLParent, SoVRMLScript, SoVRMLShape, SoVRMLSwitch, SoCallback, SoFile, SoGroup, SoVertexAttribute, SoRotateCylindricalDragger, SoRotateSphericalDragger, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoInteractionKit, SoNodeKitListPart, and SoWWWInline.
|
virtual |
Return copy of this instance.
Note: default implementation just returns this
pointer, SoNode and SoEngine overrides this method to return the pointer to the actual copy.
Reimplemented from SoFieldContainer.
This function performs the typical operation of a node for any action.
Reimplemented in SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoNodeKitListPart, SoAntiSquish, SoArray, SoBaseColor, SoBumpMap, SoBumpMapCoordinate, SoBumpMapTransform, SoCacheHint, SoCallback, SoCamera, SoClipPlane, SoComplexity, SoCoordinate3, SoCoordinate4, SoDrawStyle, SoFile, SoFont, SoFontStyle, SoGeoCoordinate, SoGeoLocation, SoGeoOrigin, SoGroup, SoLevelOfDetail, SoLightModel, SoLOD, SoMaterial, SoMaterialBinding, SoMatrixTransform, SoMultipleCopy, SoNormal, SoNormalBinding, SoPackedColor, SoPathSwitch, SoPickStyle, SoPolygonOffset, SoProfile, SoProfileCoordinate2, SoProfileCoordinate3, SoResetTransform, SoRotation, SoRotationXYZ, SoScale, SoSceneTexture2, SoSceneTextureCubeMap, SoSeparator, SoShapeHints, SoSurroundScale, SoSwitch, SoTexture, SoTexture2, SoTexture2Transform, SoTexture3, SoTexture3Transform, SoTextureCombine, SoTextureCoordinate2, SoTextureCoordinate3, SoTextureCoordinateBinding, SoTextureCoordinateCube, SoTextureCoordinateCylinder, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment, SoTextureCoordinateNormalMap, SoTextureCoordinateObject, SoTextureCoordinatePlane, SoTextureCoordinateReflectionMap, SoTextureCoordinateSphere, SoTextureCubeMap, SoTextureMatrixTransform, SoTextureUnit, SoTransform, SoTransformSeparator, SoTranslation, SoTransparencyType, SoUnits, SoVertexAttribute, SoVertexAttributeBinding, SoVertexProperty, SoWWWInline, SoVRMLAppearance, SoVRMLBillboard, SoVRMLColor, SoVRMLCoordinate, SoVRMLFontStyle, SoVRMLGroup, SoVRMLImageTexture, SoVRMLInline, SoVRMLLOD, SoVRMLMaterial, SoVRMLNormal, SoVRMLParent, SoVRMLPixelTexture, SoVRMLProximitySensor, SoVRMLScript, SoVRMLShape, SoVRMLSwitch, SoVRMLTextureCoordinate, SoVRMLTextureTransform, SoVRMLTransform, SoVRMLVertexLine, SoVRMLVertexPoint, and SoVRMLVertexShape.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
|
virtual |
Action method for the SoGetBoundingBoxAction.
Calculates bounding box and center coordinates for node and modifies the values of the action to encompass the bounding box for this node and to shift the center point for the scene more towards the one for this node.
Nodes influencing how geometry nodes calculate their bounding box also override this method to change the relevant state variables.
Reimplemented in SoProfilerStats, SoCenterballDragger, SoDragger, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoNodeKitListPart, SoAntiSquish, SoArray, SoBlinker, SoCacheHint, SoCallback, SoCamera, SoComplexity, SoCoordinate3, SoCoordinate4, SoFile, SoFont, SoFontStyle, SoGeoCoordinate, SoGeoLocation, SoGeoOrigin, SoGeoSeparator, SoGroup, SoIndexedLineSet, SoIndexedNurbsCurve, SoIndexedPointSet, SoLevelOfDetail, SoLineSet, SoLOD, SoMatrixTransform, SoMultipleCopy, SoNurbsCurve, SoPathSwitch, SoPointSet, SoProfile, SoProfileCoordinate2, SoProfileCoordinate3, SoResetTransform, SoRotation, SoRotationXYZ, SoScale, SoSeparator, SoShape, SoShapeHints, SoSurroundScale, SoSwitch, SoTextureUnit, SoTransform, SoTransformSeparator, SoTranslation, SoUnits, SoVertexProperty, SoWWWInline, SoVRMLBillboard, SoVRMLCoordinate, SoVRMLFontStyle, SoVRMLGroup, SoVRMLIndexedLineSet, SoVRMLInline, SoVRMLLOD, SoVRMLPointSet, SoVRMLProximitySensor, SoVRMLScript, SoVRMLShape, SoVRMLSwitch, SoVRMLTransform, SoVRMLVertexLine, SoVRMLVertexPoint, and SoVRMLVertexShape.
This is a static "helper" method registered with the action, and used for calling the SoNode::getBoundingBox() virtual method which does the real work.
Returns the last node that was registered under name.
|
static |
Finds all nodes with name and appends them to the l node list. Returns the number of nodes with the specified name.
|
virtual |
Returns list of children for this node.
Reimplemented in SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoNodeKitListPart, SoFile, SoGroup, SoWWWInline, SoVRMLAppearance, SoVRMLGeometry, SoVRMLInline, SoVRMLLOD, SoVRMLParent, SoVRMLShape, SoVRMLSwitch, and SoVRMLText.
This static method returns the SoType object associated with objects of this class.
Get the node compatibility mask for node type nodetype. The return value will be a bit mask of SoNode::NodeType flags, containing one or several flags.
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
|
staticprotected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Returns the SoFieldData class which holds information about fields in this node.
|
virtual |
Action method for SoGetMatrixAction.
Updates action by accumulating with the transformation matrix of this node (if any).
Reimplemented in SoProfilerStats, SoCenterballDragger, SoDragger, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoNodeKitListPart, SoAntiSquish, SoArray, SoBumpMapTransform, SoCallback, SoCamera, SoFile, SoGeoLocation, SoGeoOrigin, SoGeoSeparator, SoGroup, SoMatrixTransform, SoMultipleCopy, SoPathSwitch, SoResetTransform, SoRotation, SoRotationXYZ, SoScale, SoSeparator, SoSurroundScale, SoSwitch, SoTexture2Transform, SoTexture3Transform, SoTextureMatrixTransform, SoTextureUnit, SoTransform, SoTransformSeparator, SoTranslation, SoUnits, SoWWWInline, SoVRMLBillboard, SoVRMLGroup, SoVRMLInline, SoVRMLSwitch, SoVRMLTextureTransform, and SoVRMLTransform.
This is a static "helper" method registered with the action, and used for calling the SoNode::getMatrix() virtual method which does the real work.
|
staticprotected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Only in TGS Inventor on Win32 – to avoid needing to export the nextActionMethodIndex member, see SoNode.h for more information.
|
static |
Return the next unique identification number to be assigned upon node construction or change. It is unlikely that application programmers will ever need use this method from client application code, unless working with extensions to the core library (and probably not even then).
SbUniqueId SoNode::getNodeId | ( | void | ) | const |
This returns the node's current unique identification number. It is unlikely that application programmers will ever need use this method from client application code, unless working with extensions to the core library (and probably not even then).
The id number is only valid for as long as the node is kept unchanged – upon any kind of change the internal id will be updated (in the notify() method), and the old id number forgotten.
The technique described above plays an important role in the way internal scene graph caches are set up and invalidated.
SoNode::NodeType SoNode::getNodeType | ( | void | ) | const |
Returns the node type set for this node.
This method is an extension versus the Open Inventor API.
|
virtual |
Action method for the SoGetPrimitiveCountAction.
Calculates the number of triangle, line segment and point primitives for the node and adds these to the counters of the action.
Nodes influencing how geometry nodes calculate their primitive count also override this method to change the relevant state variables.
Reimplemented in SoProfilerStats, SoDragger, SoBaseKit, SoNodeKitListPart, SoArray, SoAsciiText, SoCallback, SoCamera, SoComplexity, SoCone, SoCoordinate3, SoCoordinate4, SoCube, SoCylinder, SoFaceSet, SoFile, SoFont, SoFontStyle, SoGeoCoordinate, SoGeoLocation, SoGeoOrigin, SoGeoSeparator, SoGroup, SoImage, SoIndexedFaceSet, SoIndexedLineSet, SoIndexedNurbsCurve, SoIndexedNurbsSurface, SoIndexedPointSet, SoIndexedTriangleStripSet, SoLineSet, SoLOD, SoMarkerSet, SoMaterialBinding, SoMatrixTransform, SoMultipleCopy, SoNormal, SoNormalBinding, SoNurbsCurve, SoNurbsSurface, SoPathSwitch, SoPointSet, SoProfile, SoProfileCoordinate2, SoProfileCoordinate3, SoQuadMesh, SoResetTransform, SoRotation, SoRotationXYZ, SoScale, SoSeparator, SoShape, SoSphere, SoSwitch, SoText2, SoText3, SoTransform, SoTransformSeparator, SoTranslation, SoTriangleStripSet, SoUnits, SoVertexAttributeBinding, SoVertexProperty, SoWWWInline, SoVRMLBox, SoVRMLCone, SoVRMLCylinder, SoVRMLElevationGrid, SoVRMLExtrusion, SoVRMLFontStyle, SoVRMLGroup, SoVRMLIndexedFaceSet, SoVRMLIndexedLineSet, SoVRMLInline, SoVRMLLOD, SoVRMLNormal, SoVRMLParent, SoVRMLShape, SoVRMLSphere, SoVRMLText, SoVRMLTextureCoordinate, SoVRMLTransform, and SoVRMLVertexPoint.
This is a static "helper" method registered with the action, and used for calling the SoNode::getPrimitiveCount() virtual method which does the real work.
|
virtual |
Action method for the SoGLRenderAction.
This is called during rendering traversals. Nodes influencing the rendering state in any way or want to throw geometry primitives at OpenGL override this method.
Reimplemented in SoShadowCulling, SoShadowDirectionalLight, SoShadowSpotLight, SoShadowStyle, SoProfilerStats, SoDragger, SoTabPlaneDragger, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoNodeKitListPart, SoAlphaTest, SoAnnotation, SoAntiSquish, SoArray, SoAsciiText, SoBaseColor, SoBumpMap, SoBumpMapCoordinate, SoBumpMapTransform, SoCacheHint, SoCallback, SoCamera, SoClipPlane, SoColorIndex, SoComplexity, SoCone, SoCoordinate3, SoCoordinate4, SoCube, SoCylinder, SoDepthBuffer, SoDirectionalLight, SoDrawStyle, SoEnvironment, SoFaceSet, SoFile, SoFont, SoFontStyle, SoGeoCoordinate, SoGeoLocation, SoGeometryShader, SoGeoOrigin, SoGroup, SoImage, SoIndexedFaceSet, SoIndexedLineSet, SoIndexedMarkerSet, SoIndexedNurbsCurve, SoIndexedNurbsSurface, SoIndexedPointSet, SoIndexedTriangleStripSet, SoLevelOfDetail, SoLightModel, SoLineSet, SoLOD, SoMarkerSet, SoMaterial, SoMaterialBinding, SoMatrixTransform, SoMultipleCopy, SoNormal, SoNormalBinding, SoNurbsCurve, SoNurbsSurface, SoPackedColor, SoPathSwitch, SoPointLight, SoPointSet, SoPolygonOffset, SoProfile, SoProfileCoordinate2, SoProfileCoordinate3, SoQuadMesh, SoResetTransform, SoRotation, SoRotationXYZ, SoScale, SoSceneTexture2, SoSceneTextureCubeMap, SoSeparator, SoShaderObject, SoShaderProgram, SoShape, SoShapeHints, SoSphere, SoSpotLight, SoSurroundScale, SoSwitch, SoText2, SoText3, SoTexture, SoTexture2, SoTexture2Transform, SoTexture3, SoTexture3Transform, SoTextureCombine, SoTextureCoordinate2, SoTextureCoordinate3, SoTextureCoordinateBinding, SoTextureCoordinateCube, SoTextureCoordinateCylinder, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment, SoTextureCoordinateNormalMap, SoTextureCoordinateObject, SoTextureCoordinatePlane, SoTextureCoordinateReflectionMap, SoTextureCoordinateSphere, SoTextureCubeMap, SoTextureMatrixTransform, SoTextureScalePolicy, SoTextureUnit, SoTransform, SoTransformSeparator, SoTranslation, SoTransparencyType, SoTriangleStripSet, SoUnits, SoVertexAttribute, SoVertexAttributeBinding, SoVertexProperty, SoWWWInline, SoVRMLAppearance, SoVRMLBackground, SoVRMLBillboard, SoVRMLBox, SoVRMLCollision, SoVRMLColor, SoVRMLCone, SoVRMLCoordinate, SoVRMLCylinder, SoVRMLDirectionalLight, SoVRMLElevationGrid, SoVRMLExtrusion, SoVRMLFog, SoVRMLFontStyle, SoVRMLGroup, SoVRMLImageTexture, SoVRMLIndexedFaceSet, SoVRMLIndexedLineSet, SoVRMLInline, SoVRMLLight, SoVRMLLOD, SoVRMLMaterial, SoVRMLMovieTexture, SoVRMLNavigationInfo, SoVRMLNormal, SoVRMLPixelTexture, SoVRMLPointLight, SoVRMLPointSet, SoVRMLProximitySensor, SoVRMLScript, SoVRMLShape, SoVRMLSphere, SoVRMLSpotLight, SoVRMLSwitch, SoVRMLText, SoVRMLTexture, SoVRMLTextureCoordinate, SoVRMLTextureTransform, SoVRMLVertexLine, SoVRMLVertexPoint, SoVRMLVertexShape, SoVRMLViewpoint, and SoVRMLVisibilitySensor.
|
virtual |
Implements the SoAction::BELOW_PATH traversal method for the rendering action.
Reimplemented in SoShadowGroup, SoAnnotation, SoExtSelection, SoGeoSeparator, SoLocateHighlight, SoLOD, SoSeparator, SoVRMLBillboard, SoVRMLGroup, SoVRMLLOD, and SoVRMLTransform.
|
virtual |
Implements the SoAction::IN_PATH traversal method for the rendering action.
Reimplemented in SoShadowGroup, SoAnnotation, SoGeoSeparator, SoLocateHighlight, SoLOD, SoSeparator, SoVRMLBillboard, SoVRMLGroup, SoVRMLLOD, and SoVRMLTransform.
|
virtual |
Implements the SoAction::OFF_PATH traversal method for the rendering action.
Reimplemented in SoAnnotation, SoLOD, SoSeparator, SoVRMLBillboard, SoVRMLGroup, and SoVRMLLOD.
This is a static "helper" method registered with the action, and used for calling the SoNode::GLRender() virtual method which does the real work.
Called from SoHandleEventAction to notify a node when it looses status as the node where events are sent.
Reimplemented in SoDragger.
Called from SoHandleEventAction::setGrabber() to notify a node when it becomes the node where all events are sent.
Reimplemented in SoDragger.
|
virtual |
Action method for SoHandleEventAction.
Inspects the event data from action, and processes it if it is something which this node should react to.
Nodes influencing relevant state variables for how event handling is done also override this method.
Reimplemented in SoNodeVisualize, SoProfilerStats, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoNodeKitListPart, SoArray, SoCallback, SoCamera, SoEventCallback, SoExtSelection, SoFile, SoGroup, SoLocateHighlight, SoMultipleCopy, SoPathSwitch, SoSelection, SoSeparator, SoSwitch, SoWWWAnchor, SoWWWInline, SoVRMLAnchor, SoVRMLDragSensor, SoVRMLInline, SoVRMLScript, SoVRMLSwitch, SoVRMLTimeSensor, SoVRMLTouchSensor, and SoDragger.
This is a static "helper" method registered with the action, and used for calling the SoNode::handleEvent() virtual method which does the real work.
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Only in TGS Inventor on Win32 – to avoid needing to export the nextActionMethodIndex member, see SoNode.h for more information.
SbBool SoNode::isOverride | ( | void | ) | const |
Return status of override flag.
Notifies all auditors for this instance when changes are made.
Reimplemented from SoFieldContainer.
Reimplemented in SoProfilerStats, SoVertexAttribute, SoAsciiText, SoBumpMap, SoImage, SoIndexedLineSet, SoIndexedPointSet, SoMaterial, SoPackedColor, SoSceneTexture2, SoSceneTextureCubeMap, SoText3, SoTexture2, SoTexture3, SoTextureCubeMap, SoVertexProperty, SoVRMLAppearance, SoVRMLBillboard, SoVRMLCollision, SoVRMLElevationGrid, SoVRMLExtrusion, SoVRMLGeometry, SoVRMLGroup, SoVRMLIndexedLine, SoVRMLIndexedLineSet, SoVRMLIndexedShape, SoVRMLLOD, SoVRMLParent, SoVRMLPixelTexture, SoVRMLProximitySensor, SoVRMLScript, SoVRMLShape, SoVRMLSwitch, SoVRMLText, SoVRMLTimeSensor, SoVRMLTouchSensor, SoVRMLTransform, SoVRMLVertexLine, SoVRMLVertexPoint, SoVRMLVertexShape, SoShadowGroup, SoNodeEngine, SoBlinker, SoLevelOfDetail, SoLOD, SoSeparator, SoShape, SoSwitch, and SoVertexShape.
|
virtual |
Action method for SoPickAction.
Does common processing for SoPickAction action instances.
Reimplemented in SoProfilerStats, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoNodeKitListPart, SoAntiSquish, SoArray, SoBumpMapCoordinate, SoBumpMapTransform, SoCacheHint, SoCallback, SoClipPlane, SoComplexity, SoCoordinate3, SoCoordinate4, SoFile, SoFont, SoFontStyle, SoGeoCoordinate, SoGeoLocation, SoGeoOrigin, SoGroup, SoMaterialBinding, SoMatrixTransform, SoMultipleCopy, SoNormal, SoNormalBinding, SoPathSwitch, SoPickStyle, SoProfile, SoProfileCoordinate2, SoProfileCoordinate3, SoResetTransform, SoRotation, SoRotationXYZ, SoScale, SoShapeHints, SoSurroundScale, SoSwitch, SoTexture2Transform, SoTexture3Transform, SoTextureCombine, SoTextureCoordinate2, SoTextureCoordinate3, SoTextureCoordinateBinding, SoTextureCoordinateCube, SoTextureCoordinateCylinder, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment, SoTextureCoordinateNormalMap, SoTextureCoordinateObject, SoTextureCoordinatePlane, SoTextureCoordinateReflectionMap, SoTextureCoordinateSphere, SoTextureMatrixTransform, SoTextureUnit, SoTransform, SoTransformSeparator, SoTranslation, SoUnits, SoVertexAttributeBinding, SoVertexProperty, SoWWWInline, SoVRMLBillboard, SoVRMLCoordinate, SoVRMLFontStyle, SoVRMLInline, SoVRMLNormal, SoVRMLScript, SoVRMLSwitch, SoVRMLTextureCoordinate, SoVRMLTextureTransform, SoVRMLVertexLine, SoVRMLVertexPoint, and SoVRMLVertexShape.
This is a static "helper" method registered with the action, and used for calling the SoNode::pick() virtual method which does the real work.
|
virtual |
Action method for SoRayPickAction.
Checks the ray specification of the action and tests for intersection with the data of the node.
Nodes influencing relevant state variables for how picking is done also override this method.
Reimplemented in SoProfilerStats, SoDragger, SoBaseKit, SoBumpMap, SoCamera, SoCone, SoCube, SoCylinder, SoGeoSeparator, SoImage, SoIndexedNurbsCurve, SoIndexedNurbsSurface, SoLevelOfDetail, SoLOD, SoNurbsCurve, SoNurbsSurface, SoSceneTexture2, SoSceneTextureCubeMap, SoSeparator, SoShape, SoSphere, SoText2, SoTexture2, SoTextureCubeMap, SoVRMLBox, SoVRMLCone, SoVRMLCylinder, SoVRMLElevationGrid, SoVRMLGroup, SoVRMLImageTexture, SoVRMLLOD, SoVRMLPixelTexture, SoVRMLProximitySensor, SoVRMLShape, SoVRMLSphere, and SoVRMLTransform.
This is a static "helper" method registered with the action, and used for calling the SoNode::rayPick() virtual method which does the real work.
This method is mainly intended for internal use during file import operations.
It reads a definition of an instance from the input stream in. The input stream state points to the start of a serialized / persistent representation of an instance of this class type.
TRUE
or FALSE
is returned, depending on if the instantiation and configuration of the new object of this class type went OK or not. The import process should be robust and handle corrupted input streams by returning FALSE
.
flags is used internally during binary import when reading user extension nodes, group nodes or engines.
Reimplemented from SoFieldContainer.
Reimplemented in SoNodeEngine, SoProtoInstance, SoBaseKit, SoInteractionKit, SoNodeKitListPart, SoBumpMap, SoFile, SoGroup, SoImage, SoNormalBinding, SoSeparator, SoShaderObject, SoTexture2, SoTexture3, SoTextureCoordinateBinding, SoTextureCubeMap, SoVertexAttribute, SoWWWInline, SoVRMLBackground, SoVRMLImageTexture, SoVRMLLOD, SoVRMLParent, SoVRMLPixelTexture, SoVRMLSwitch, and SoProto.
|
virtual |
Action method for SoSearchAction.
Compares the search criteria from the action to see if this node is a match. Searching is done by matching up all criteria set up in the SoSearchAction – if any of the requested criteria is a miss, the search is not deemed successful for the node.
Reimplemented in SoProfilerStats, SoDragger, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoBaseKit, SoNodeKitListPart, SoArray, SoCallback, SoFile, SoGroup, SoMultipleCopy, SoPathSwitch, SoSeparator, SoShaderObject, SoShaderProgram, SoSwitch, SoWWWInline, SoVRMLAppearance, SoVRMLBillboard, SoVRMLGeometry, SoVRMLGroup, SoVRMLInline, SoVRMLLOD, SoVRMLParent, SoVRMLShape, and SoVRMLSwitch.
This is a static "helper" method registered with the action, and used for calling the SoNode::search() virtual method which does the real work.
|
staticprotected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Only in TGS Inventor on Win32 – to avoid needing to export the nextActionMethodIndex member, see SoNode.h for more information.
Sets the node type for this node to type. Since some nodes should be handled differently in VRML1 vs. Inventor, this should be used to get correct behavior for those cases. The default node type is INVENTOR.
This method is an extension versus the Open Inventor API.
Set the override flag.
If this flag is TRUE
, the field values of this node will override the field values of other nodes of the same type during scene graph traversal.
A common application for "override nodes" is to place them at the top of the tree as a convenient way to force e.g. a common draw style on the complete tree.
The override flag does not exist in the Inventor file format. This flag is in other words not persistent, and must be programmatically set. The rationale for this flag is for viewers to be able to control rendering style of the 3D models, so it would look stupid if some parts of certain models suddenly didn't adhere to the viewer mode.
This is the method which starts the notification sequence after changes.
At the end of a notification sequence, all "immediate" sensors (i.e. sensors set up with a zero priority) are triggered.
Reimplemented from SoBase.
|
virtual |
Action method for SoWriteAction.
Writes out a node object, and any connected nodes, engines etc, if necessary.
Reimplemented in SoProfilerStats, SoDragger, SoProto, SoProtoInstance, SoBaseKit, SoBlinker, SoCallback, SoGroup, SoPendulum, SoSceneTexture2, SoShuttle, SoSwitch, SoVertexAttribute, SoVertexShape, SoVRMLGroup, SoVRMLLOD, SoVRMLParent, SoVRMLScript, SoVRMLShape, SoVRMLSwitch, and SoVRMLTimeSensor.
Writes all the fields contained in this instance to the output stream within out.
This method is solely called from the write methods of fields.
Either from SoField if the write is done because of a field-to-field connection, or from one of the fields which may actually write SoFieldContainer instances, i.e. SoSFNode, SoMFNode, SoSFEngine, SoMFEngine, SoSFPath and SoMFPath.
This method, in addition to the ordinary write() method of SoNode, needs to be present since the fields don't have a write action instance in their writeValue() method, and writeInstance() will create a new SoWriteAction and call continueToApply() on it.
Reimplemented from SoFieldContainer.
Reimplemented in SoNodeEngine.
This is a static "helper" method registered with the action, and used for calling the SoNode::write() virtual method which does the real work.
|
staticprotected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
|
staticprotected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
|
protected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.