![]() |
http://www.sim.no http://www.coin3d.org |
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. 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 } |
Public Member Functions | |
void | setOverride (const SbBool state) |
SbBool | isOverride (void) const |
void | setNodeType (const NodeType type) |
NodeType | getNodeType (void) const |
virtual SoNode * | copy (SbBool copyconnections=0) const |
virtual SbBool | affectsState (void) const |
virtual void | doAction (SoAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | GLRenderBelowPath (SoGLRenderAction *action) |
virtual void | GLRenderInPath (SoGLRenderAction *action) |
virtual void | GLRenderOffPath (SoGLRenderAction *action) |
virtual void | callback (SoCallbackAction *action) |
virtual void | getBoundingBox (SoGetBoundingBoxAction *action) |
virtual void | getMatrix (SoGetMatrixAction *action) |
virtual void | handleEvent (SoHandleEventAction *action) |
virtual void | pick (SoPickAction *action) |
virtual void | rayPick (SoRayPickAction *action) |
virtual void | search (SoSearchAction *action) |
virtual void | write (SoWriteAction *action) |
virtual void | audioRender (SoAudioRenderAction *action) |
virtual void | getPrimitiveCount (SoGetPrimitiveCountAction *action) |
virtual void | grabEventsSetup (void) |
virtual void | grabEventsCleanup (void) |
virtual void | startNotify (void) |
virtual void | notify (SoNotList *l) |
uint32_t | getNodeId (void) const |
virtual SoChildList * | getChildren (void) const |
virtual void | writeInstance (SoOutput *out) |
virtual SoNode * | addToCopyDict (void) const |
virtual void | copyContents (const SoFieldContainer *from, SbBool copyconnections) |
virtual SoFieldContainer * | copyThroughConnection (void) const |
![]() | |
void | setToDefaults (void) |
SbBool | hasDefaultValues (void) const |
SbBool | fieldsAreEqual (const SoFieldContainer *container) const |
void | copyFieldValues (const SoFieldContainer *container, SbBool copyconnections=0) |
SbBool | set (const char *const fielddata) |
void | get (SbString &fielddata) |
virtual int | getFields (SoFieldList &l) const |
virtual int | getAllFields (SoFieldList &l) const |
virtual SoField * | getField (const SbName &name) const |
virtual SoField * | getEventIn (const SbName &name) const |
virtual SoField * | getEventOut (const SbName &name) const |
SbBool | getFieldName (const SoField *const field, SbName &name) const |
SbBool | enableNotify (const SbBool flag) |
SbBool | isNotifyEnabled (void) const |
SbBool | set (const char *fielddata, SoInput *in) |
void | get (SbString &fielddata, SoOutput *out) |
virtual SbBool | validateNewFieldValue (SoField *field, void *newval) |
virtual void | addWriteReference (SoOutput *out, SbBool isfromfield=0) |
SbBool | getIsBuiltIn (void) const |
virtual const SoFieldData * | getFieldData (void) const |
void | setUserData (void *userdata) const |
void * | getUserData (void) const |
![]() | |
void | ref (void) const |
void | unref (void) const |
void | unrefNoDelete (void) const |
int32_t | getRefCount (void) const |
void | touch (void) |
virtual SoType | getTypeId (void) const =0 |
SbBool | isOfType (SoType type) const |
virtual SbName | getName (void) const |
virtual void | setName (const SbName &newname) |
void | addAuditor (void *const auditor, const SoNotRec::Type type) |
void | removeAuditor (void *const auditor, const SoNotRec::Type type) |
const SoAuditorList & | getAuditors (void) const |
SbBool | shouldWrite (void) |
void | assertAlive (void) const |
Static Public Member Functions | |
static uint32_t | getCompatibilityTypes (const SoType &nodetype) |
static SoType | getClassTypeId (void) |
static SoNode * | getByName (const SbName &name) |
static int | getByName (const SbName &name, SoNodeList &l) |
static void | initClass (void) |
static void | initClasses (void) |
static uint32_t | getNextNodeId (void) |
static int | getActionMethodIndex (const SoType type) |
static void | getBoundingBoxS (SoAction *action, SoNode *node) |
static void | GLRenderS (SoAction *action, SoNode *node) |
static void | callbackS (SoAction *action, SoNode *node) |
static void | getMatrixS (SoAction *action, SoNode *node) |
static void | handleEventS (SoAction *action, SoNode *node) |
static void | pickS (SoAction *action, SoNode *node) |
static void | rayPickS (SoAction *action, SoNode *node) |
static void | searchS (SoAction *action, SoNode *node) |
static void | writeS (SoAction *action, SoNode *node) |
static void | audioRenderS (SoAction *action, SoNode *node) |
static void | getPrimitiveCountS (SoAction *action, SoNode *node) |
![]() | |
static void | initClass (void) |
static SoType | getClassTypeId (void) |
static void | initCopyDict (void) |
static void | addCopy (const SoFieldContainer *orig, const SoFieldContainer *copy) |
static SoFieldContainer * | checkCopy (const SoFieldContainer *orig) |
static SoFieldContainer * | findCopy (const SoFieldContainer *orig, const SbBool copyconnections) |
static void | copyDone (void) |
![]() | |
static void | initClass (void) |
static SoType | getClassTypeId (void) |
static void | addName (SoBase *const base, const char *const name) |
static void | removeName (SoBase *const base, const char *const name) |
static void | incrementCurrentWriteCounter (void) |
static void | decrementCurrentWriteCounter (void) |
static SoBase * | getNamedBase (const SbName &name, SoType type) |
static int | getNamedBases (const SbName &name, SoBaseList &baselist, SoType type) |
static SbBool | read (SoInput *in, SoBase *&base, SoType expectedtype) |
static void | setInstancePrefix (const SbString &c) |
static void | setTraceRefs (SbBool trace) |
static SbBool | getTraceRefs (void) |
static SbBool | connectRoute (SoInput *in, const SbName &fromnodename, const SbName &fromfieldname, const SbName &tonodename, const SbName &tofieldname) |
static SbBool | readRoute (SoInput *in) |
Protected Member Functions | |
SoNode (void) | |
virtual | ~SoNode () |
virtual SbBool | readInstance (SoInput *in, unsigned short flags) |
![]() | |
SoFieldContainer (void) | |
~SoFieldContainer () | |
![]() | |
SoBase (void) | |
virtual | ~SoBase () |
virtual void | destroy (void) |
SbBool | hasMultipleWriteRefs (void) const |
SbBool | writeHeader (SoOutput *out, SbBool isgroup, SbBool isengine) const |
void | writeFooter (SoOutput *out) const |
virtual const char * | getFileFormatName (void) const |
Static Protected Member Functions | |
static const SoFieldData ** | getFieldDataPtr (void) |
static void | setNextActionMethodIndex (int index) |
static int | getNextActionMethodIndex (void) |
static void | incNextActionMethodIndex (void) |
static void | setCompatibilityTypes (const SoType &nodetype, const uint32_t bitmask) |
![]() | |
static uint32_t | getCurrentWriteCounter (void) |
static void | staticDataLock (void) |
static void | staticDataUnlock (void) |
Protected Attributes | |
uint32_t | uniqueId |
![]() | |
SbBool | isBuiltIn |
Static Protected Attributes | |
static uint32_t | nextUniqueId = 0 |
static int | nextActionMethodIndex = 0 |
Additional Inherited Members | |
![]() | |
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 can not 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 function's 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 de-referencing 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*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 it's 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, aswell 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 sourcecode of the built-in classes in Coin should also provide very helpful.
For information about dynamic loading of extension nodes, see the documentation of SoType::fromName().
enum SoNode::NodeType |
Used to store node type.
|
protected |
Default constructor, initializes node instance.
References INVENTOR, nextUniqueId, setNodeType(), and uniqueId.
|
protectedvirtual |
Destructor.
References SoDebugError::postInfo().
void SoNode::setOverride | ( | const SbBool | state | ) |
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 applicaton for "override nodes" is to place them at the top of the tree as a convenient way to force e.g. a common drawstyle 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.
References nextUniqueId, and uniqueId.
SbBool SoNode::isOverride | ( | void | ) | const |
Return status of override flag.
Referenced by SoFont::doAction(), SoLightModel::doAction(), SoPickStyle::doAction(), SoComplexity::doAction(), SoPolygonOffset::doAction(), SoDrawStyle::doAction(), SoMaterialBinding::doAction(), SoNormalBinding::doAction(), SoTransparencyType::doAction(), SoFontStyle::doAction(), SoShapeHints::doAction(), SoTexture3::doAction(), SoColorIndex::GLRender(), SoComplexity::GLRender(), and SoTexture3::GLRender().
|
static |
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.
References EXTENSION, SoType::getKey(), and SoType::isDerivedFrom().
void SoNode::setNodeType | ( | const NodeType | type | ) |
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.
Referenced by readInstance(), and SoNode().
SoNode::NodeType SoNode::getNodeType | ( | void | ) | const |
Returns the node type set for this node.
This method is an extension versus the Open Inventor API.
Referenced by SoShapeHints::doAction(), SoDebug::write(), and SoDebug::writeToFile().
|
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 aswell as calling the parent superclass' copyContents() method for automatically handling of fields and other common data.
References addToCopyDict(), SoFieldContainer::copyDone(), SoFieldContainer::findCopy(), SoFieldContainer::initCopyDict(), SoBase::ref(), and SoBase::unrefNoDelete().
Referenced by SoFile::copyChildren(), SoVRMLInline::copyChildren(), SoWWWInline::copyChildren(), SoMFNode::fixCopy(), SoSFNode::fixCopy(), SoShuttle::write(), and SoPendulum::write().
|
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 SoSeparator, SoNodeKitListPart, SoShape, SoVRMLShape, SoVRMLSwitch, SoArray, SoVRMLProximitySensor, SoVRMLTouchSensor, SoSwitch, SoVRMLLOD, SoSceneKit, SoVRMLParent, and SoMultipleCopy.
Referenced by SoNodeKitListPart::affectsState(), SoVRMLAppearance::GLRender(), SoVRMLCollision::GLRender(), SoGroup::GLRender(), SoVRMLShape::GLRender(), SoSeparator::GLRenderInPath(), SoVRMLBillboard::GLRenderInPath(), SoVRMLGroup::GLRenderInPath(), SoLOD::GLRenderOffPath(), SoVRMLLOD::GLRenderOffPath(), GLRenderS(), SoChildList::traverse(), and SoChildList::traverseInPath().
|
virtual |
This function performs the typical operation of a node for any action.
Reimplemented in SoSceneTexture2, SoCamera, SoWWWInline, SoVRMLInline, SoBaseKit, SoTextureCombine, SoVRMLFontStyle, SoTextureCubeMap, SoVRMLSwitch, SoVRMLVertexShape, SoTexture2, SoTexture3, SoNodeKitListPart, SoVRMLTransform, SoShapeHints, SoVRMLLOD, SoUnits, SoVertexProperty, SoVRMLGroup, SoTransform, SoFontStyle, SoVRMLShape, SoMaterialBinding, SoNormalBinding, SoTransparencyType, SoVRMLParent, SoArray, SoBumpMap, SoVRMLImageTexture, SoVRMLProximitySensor, SoDrawStyle, SoClipPlaneManip, SoDirectionalLightManip, SoGroup, SoPolygonOffset, SoRotationXYZ, SoSeparator, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoProfile, SoTextureCoordinateBinding, SoVRMLScript, SoAntiSquish, SoComplexity, SoSwitch, SoMaterial, SoTexture3Transform, SoVRMLMaterial, SoLOD, SoPickStyle, SoResetTransform, SoTextureUnit, SoVRMLBillboard, SoVRMLTextureTransform, SoGeoLocation, SoGeoCoordinate, SoBumpMapTransform, SoLightModel, SoSurroundScale, SoTexture2Transform, SoVRMLAppearance, SoLevelOfDetail, SoGeoOrigin, SoFile, SoTextureCoordinatePlane, SoMultipleCopy, SoNormal, SoPathSwitch, SoVRMLColor, SoVRMLPixelTexture, SoVRMLVertexLine, SoVRMLVertexPoint, SoBaseColor, SoClipPlane, SoFont, SoVRMLCoordinate, SoCallback, SoMatrixTransform, SoRotation, SoScale, SoTranslation, SoVRMLNormal, SoVRMLTextureCoordinate, SoBumpMapCoordinate, SoCoordinate3, SoCoordinate4, SoPackedColor, SoProfileCoordinate2, SoProfileCoordinate3, SoTextureCoordinate2, SoTextureCoordinate3, SoTransformSeparator, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment, SoTextureCoordinateCube, SoTextureCoordinateCylinder, and SoTextureCoordinateSphere.
Referenced by SoAudioRenderAction::beginTraversal(), SoVRMLVertexPoint::doAction(), SoVRMLVertexLine::doAction(), SoVRMLVertexShape::doAction(), SoPointSet::generatePrimitives(), SoTriangleStripSet::generatePrimitives(), SoLineSet::generatePrimitives(), SoQuadMesh::generatePrimitives(), and SoIndexedTriangleStripSet::generatePrimitives().
|
virtual |
Action method for the SoGLRenderAction.
This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method.
Reimplemented in SoSceneTexture2, SoCamera, SoWWWInline, SoVRMLInline, SoBaseKit, SoMarkerSet, SoTextureCombine, SoVRMLFontStyle, SoTabPlaneDragger, SoTextureCubeMap, SoVRMLSwitch, SoText3, SoVRMLVertexShape, SoDragger, SoTexture2, SoNodeKitListPart, SoImage, SoTexture3, SoUnits, SoVRMLElevationGrid, SoVRMLLOD, SoShapeHints, SoVRMLGroup, SoVertexProperty, SoShaderObject, SoShape, SoTransform, SoFontStyle, SoVRMLShape, SoArray, SoCylinder, SoMaterialBinding, SoNormalBinding, SoTransparencyType, SoGeometryShader, SoAntiSquish, SoBumpMap, SoVRMLBackground, SoVRMLImageTexture, SoVRMLProximitySensor, SoVRMLText, SoClipPlaneManip, SoDirectionalLightManip, SoAsciiText, SoCone, SoDrawStyle, SoPolygonOffset, SoSurroundScale, SoVRMLExtrusion, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoComplexity, SoGroup, SoProfile, SoRotationXYZ, SoSeparator, SoTextureCoordinateBinding, SoShaderProgram, SoVRMLScript, SoIndexedNurbsSurface, SoSwitch, SoVRMLMovieTexture, SoVRMLViewpoint, SoText2, SoTexture3Transform, SoMaterial, SoVRMLIndexedFaceSet, SoVRMLMaterial, SoVRMLNavigationInfo, SoEnvironment, SoLOD, SoNurbsSurface, SoResetTransform, SoTextureScalePolicy, SoTextureUnit, SoVRMLBillboard, SoVRMLTextureTransform, SoGeoLocation, SoGeoCoordinate, SoBumpMapTransform, SoTexture2Transform, SoVRMLAppearance, SoVRMLCollision, SoVRMLFog, SoShadowStyle, SoLevelOfDetail, SoLightModel, SoVRMLSpotLight, SoGeoOrigin, SoFile, SoVRMLCylinder, SoShadowCulling, SoCube, SoIndexedNurbsCurve, SoMultipleCopy, SoSpotLight, SoTextureCoordinatePlane, SoVRMLCone, SoVRMLLight, SoVRMLVisibilitySensor, SoFont, SoIndexedFaceSet, SoIndexedTriangleStripSet, SoNormal, SoPathSwitch, SoVRMLColor, SoVRMLPixelTexture, SoVRMLPointLight, SoVRMLVertexLine, SoVRMLVertexPoint, SoBaseColor, SoCallback, SoClipPlane, SoFaceSet, SoMatrixTransform, SoNurbsCurve, SoScale, SoTranslation, SoVRMLCoordinate, SoVRMLIndexedLineSet, SoVRMLTextureCoordinate, SoIndexedLineSet, SoLineSet, SoQuadMesh, SoRotation, SoTransformSeparator, SoVRMLNormal, SoBumpMapCoordinate, SoCoordinate3, SoCoordinate4, SoDirectionalLight, SoPackedColor, SoPointLight, SoPointSet, SoProfileCoordinate2, SoProfileCoordinate3, SoSphere, SoTextureCoordinate2, SoTextureCoordinate3, SoTriangleStripSet, SoVRMLBox, SoVRMLDirectionalLight, SoVRMLSphere, SoVRMLTexture, SoColorIndex, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment, SoVRMLPointSet, SoAnnotation, SoTextureCoordinateCube, SoTextureCoordinateCylinder, and SoTextureCoordinateSphere.
Referenced by SoPointSet::GLRender(), SoTriangleStripSet::GLRender(), SoLineSet::GLRender(), SoQuadMesh::GLRender(), SoVRMLVertexLine::GLRender(), SoVRMLVertexPoint::GLRender(), SoIndexedTriangleStripSet::GLRender(), SoVRMLCollision::GLRender(), SoVRMLAppearance::GLRender(), SoGroup::GLRender(), SoVRMLShape::GLRender(), SoVRMLElevationGrid::GLRender(), SoVRMLVertexShape::GLRender(), SoMarkerSet::GLRender(), GLRenderBelowPath(), GLRenderInPath(), GLRenderOffPath(), and GLRenderS().
|
virtual |
Implements the SoAction::BELOW_PATH traversal method for the rendering action.
Reimplemented in SoExtSelection, SoVRMLGroup, SoVRMLLOD, SoVRMLTransform, SoShadowGroup, SoLocateHighlight, SoVRMLBillboard, SoSeparator, SoLOD, SoGeoSeparator, and SoAnnotation.
References GLRender().
Referenced by SoLOD::GLRenderBelowPath(), SoSeparator::GLRenderBelowPath(), SoVRMLBillboard::GLRenderBelowPath(), SoVRMLLOD::GLRenderBelowPath(), and SoVRMLGroup::GLRenderBelowPath().
|
virtual |
Implements the SoAction::IN_PATH traversal method for the rendering action.
Reimplemented in SoVRMLGroup, SoVRMLLOD, SoVRMLTransform, SoShadowGroup, SoLocateHighlight, SoVRMLBillboard, SoSeparator, SoLOD, SoGeoSeparator, and SoAnnotation.
References GLRender().
Referenced by SoLOD::GLRenderInPath(), SoSeparator::GLRenderInPath(), SoVRMLBillboard::GLRenderInPath(), SoVRMLLOD::GLRenderInPath(), and SoVRMLGroup::GLRenderInPath().
|
virtual |
Implements the SoAction::OFF_PATH traversal method for the rendering action.
Reimplemented in SoVRMLGroup, SoVRMLLOD, SoVRMLBillboard, SoSeparator, SoLOD, and SoAnnotation.
References GLRender().
Referenced by SoSeparator::GLRenderInPath(), SoVRMLBillboard::GLRenderInPath(), SoVRMLGroup::GLRenderInPath(), SoLOD::GLRenderOffPath(), and SoVRMLLOD::GLRenderOffPath().
|
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 SoSceneTexture2, SoCamera, SoWWWInline, SoVRMLInline, SoBaseKit, SoTextureCombine, SoVRMLFontStyle, SoTextureCubeMap, SoVRMLSwitch, SoVRMLVertexShape, SoTexture2, SoTexture3, SoDragger, SoNodeKitListPart, SoShapeHints, SoVertexProperty, SoVRMLTransform, SoShape, SoVRMLLOD, SoTransform, SoUnits, SoVRMLGroup, SoFontStyle, SoMaterialBinding, SoNormalBinding, SoTransparencyType, SoVRMLShape, SoBumpMap, SoSeparator, SoArray, SoVRMLImageTexture, SoVRMLProximitySensor, SoAntiSquish, SoDrawStyle, SoGroup, SoRotationXYZ, SoClipPlaneManip, SoDirectionalLightManip, SoPolygonOffset, SoSurroundScale, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoProfile, SoTextureCoordinateBinding, SoVRMLScript, SoComplexity, SoMaterial, SoSwitch, SoVRMLMaterial, SoEnvironment, SoTexture3Transform, SoLOD, SoLightModel, SoPickStyle, SoResetTransform, SoTextureUnit, SoVRMLBillboard, SoVRMLTextureTransform, SoGeoLocation, SoGeoCoordinate, SoBumpMapTransform, SoTexture2Transform, SoTextureCoordinatePlane, SoVRMLAppearance, SoGeoSeparator, SoLevelOfDetail, SoVRMLVertexLine, SoVRMLVertexPoint, SoGeoOrigin, SoFile, SoFont, SoNormal, SoVRMLColor, SoVRMLCoordinate, SoVRMLPixelTexture, SoBaseColor, SoClipPlane, SoMultipleCopy, SoCoordinate4, SoLight, SoRotation, SoVRMLNormal, SoBumpMapCoordinate, SoCallback, SoCoordinate3, SoMatrixTransform, SoPackedColor, SoProfileCoordinate2, SoProfileCoordinate3, SoScale, SoTextureCoordinate2, SoTextureCoordinate3, SoTextureCoordinateEnvironment, SoTranslation, SoVRMLTextureCoordinate, SoTextureCoordinateDefault, SoTransformSeparator, SoTextureCoordinateCube, SoTextureCoordinateCylinder, and SoTextureCoordinateSphere.
Referenced by SoTextureCombine::callback(), and callbackS().
|
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 calculates their bounding box also overrides this method to change the relevant state variables.
Reimplemented in SoDragger, SoCamera, SoWWWInline, SoVRMLInline, SoBaseKit, SoCenterballDragger, SoVRMLFontStyle, SoVRMLSwitch, SoVRMLVertexShape, SoNodeKitListPart, SoVRMLLOD, SoShapeHints, SoVRMLTransform, SoVRMLGroup, SoTransform, SoUnits, SoVertexProperty, SoVRMLShape, SoArray, SoShape, SoFontStyle, SoSeparator, SoVRMLProximitySensor, SoAntiSquish, SoClipPlaneManip, SoDirectionalLightManip, SoGroup, SoRotationXYZ, SoSurroundScale, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoLOD, SoProfile, SoSwitch, SoVRMLScript, SoComplexity, SoResetTransform, SoVRMLBillboard, SoGeoSeparator, SoGeoLocation, SoGeoCoordinate, SoLevelOfDetail, SoIndexedNurbsCurve, SoGeoOrigin, SoBlinker, SoFile, SoMultipleCopy, SoNurbsCurve, SoPathSwitch, SoVRMLIndexedLineSet, SoVRMLVertexLine, SoVRMLVertexPoint, SoCallback, SoMatrixTransform, SoProfileCoordinate2, SoRotation, SoScale, SoTransformSeparator, SoTranslation, SoVRMLCoordinate, SoCoordinate3, SoFont, SoIndexedLineSet, SoLineSet, SoCoordinate4, SoPointSet, and SoVRMLPointSet.
Referenced by SoPointLightManip::getBoundingBox(), SoSpotLightManip::getBoundingBox(), SoDirectionalLightManip::getBoundingBox(), SoClipPlaneManip::getBoundingBox(), and getBoundingBoxS().
|
virtual |
Action method for SoGetMatrixAction.
Updates action by accumulating with the transformation matrix of this node (if any).
Reimplemented in SoWWWInline, SoVRMLInline, SoBaseKit, SoCenterballDragger, SoVRMLSwitch, SoDragger, SoNodeKitListPart, SoVRMLTransform, SoVRMLGroup, SoTransform, SoUnits, SoArray, SoSeparator, SoAntiSquish, SoClipPlaneManip, SoDirectionalLightManip, SoGroup, SoRotationXYZ, SoSurroundScale, SoSwitch, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoTexture3Transform, SoResetTransform, SoVRMLBillboard, SoGeoSeparator, SoGeoLocation, SoVRMLTextureTransform, SoBumpMapTransform, SoMultipleCopy, SoTexture2Transform, SoGeoOrigin, SoFile, SoPathSwitch, SoCallback, SoMatrixTransform, SoRotation, SoScale, SoTransformSeparator, and SoTranslation.
Referenced by getMatrixS().
|
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 overrides this method.
Reimplemented in SoDragger, SoCamera, SoExtSelection, SoSelection, SoWWWInline, SoVRMLInline, SoBaseKit, SoVRMLSwitch, SoEventCallback, SoNodeKitListPart, SoArray, SoSeparator, SoWWWAnchor, SoClipPlaneManip, SoDirectionalLightManip, SoGroup, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoVRMLScript, SoLocateHighlight, SoSwitch, SoVRMLAnchor, SoVRMLTimeSensor, SoVRMLTouchSensor, SoFile, SoMultipleCopy, SoPathSwitch, SoCallback, and SoVRMLDragSensor.
Referenced by SoVRMLDragSensor::handleEvent(), SoVRMLTouchSensor::handleEvent(), SoTransformManip::handleEvent(), SoSpotLightManip::handleEvent(), SoPointLightManip::handleEvent(), SoDirectionalLightManip::handleEvent(), SoClipPlaneManip::handleEvent(), SoArray::handleEvent(), and handleEventS().
|
virtual |
Action method for SoPickAction.
Does common processing for SoPickAction action instances.
Reimplemented in SoWWWInline, SoVRMLInline, SoTextureCombine, SoVRMLFontStyle, SoVRMLSwitch, SoVRMLVertexShape, SoNodeKitListPart, SoShapeHints, SoUnits, SoTransform, SoVertexProperty, SoFontStyle, SoAntiSquish, SoMaterialBinding, SoNormalBinding, SoClipPlaneManip, SoDirectionalLightManip, SoArray, SoGroup, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoRotationXYZ, SoSurroundScale, SoProfile, SoVRMLScript, SoComplexity, SoTextureCoordinateBinding, SoSwitch, SoTexture3Transform, SoResetTransform, SoVRMLBillboard, SoGeoLocation, SoVRMLTextureTransform, SoGeoCoordinate, SoBumpMapTransform, SoFile, SoTexture2Transform, SoTextureUnit, SoGeoOrigin, SoPickStyle, SoCallback, SoVRMLVertexLine, SoVRMLVertexPoint, SoFont, SoMatrixTransform, SoMultipleCopy, SoNormal, SoRotation, SoScale, SoTextureCoordinatePlane, SoTranslation, SoVRMLCoordinate, SoClipPlane, SoPathSwitch, SoCoordinate3, SoCoordinate4, SoVRMLNormal, SoVRMLTextureCoordinate, SoBumpMapCoordinate, SoProfileCoordinate2, SoProfileCoordinate3, SoTextureCoordinate2, SoTextureCoordinate3, SoTransformSeparator, SoTextureCoordinateDefault, SoTextureCoordinateEnvironment, SoTextureCoordinateCube, SoTextureCoordinateCylinder, and SoTextureCoordinateSphere.
Referenced by SoVRMLVertexLine::pick(), SoVRMLVertexPoint::pick(), SoPointLightManip::pick(), SoSpotLightManip::pick(), SoDirectionalLightManip::pick(), SoTextureCombine::pick(), pickS(), rayPick(), and SoDragger::shouldGrabBasedOnSurrogate().
|
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 overrides this method.
Reimplemented in SoSceneTexture2, SoCamera, SoBaseKit, SoTextureCubeMap, SoDragger, SoTexture2, SoImage, SoVRMLTransform, SoVRMLGroup, SoVRMLElevationGrid, SoVRMLLOD, SoSeparator, SoShape, SoVRMLShape, SoBumpMap, SoVRMLImageTexture, SoVRMLProximitySensor, SoCone, SoCylinder, SoIndexedNurbsSurface, SoLOD, SoText2, SoGeoSeparator, SoNurbsSurface, SoLevelOfDetail, SoVRMLCylinder, SoCube, SoIndexedNurbsCurve, SoVRMLCone, SoVRMLPixelTexture, SoNurbsCurve, SoSphere, SoVRMLBox, and SoVRMLSphere.
References pick().
Referenced by rayPickS().
|
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 SoWWWInline, SoVRMLInline, SoBaseKit, SoVRMLSwitch, SoNodeKitListPart, SoDragger, SoVRMLGroup, SoVRMLLOD, SoArray, SoSeparator, SoShaderObject, SoVRMLShape, SoClipPlaneManip, SoDirectionalLightManip, SoGroup, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoSwitch, SoVRMLParent, SoShaderProgram, SoFile, SoVRMLBillboard, SoMultipleCopy, SoPathSwitch, SoVRMLAppearance, SoCallback, and SoVRMLGeometry.
References SoSearchAction::addPath(), SoPath::copy(), SoAction::getCurPath(), SoSearchAction::getFind(), SoSearchAction::getName(), SoBase::getName(), SoSearchAction::getNode(), SoSearchAction::getType(), SoBase::getTypeId(), SoType::isDerivedFrom(), and SoSearchAction::isFound().
Referenced by SoVRMLGeometry::search(), SoCallback::search(), SoPathSwitch::search(), SoVRMLAppearance::search(), SoVRMLBillboard::search(), SoShaderProgram::search(), SoSwitch::search(), SoSpotLightManip::search(), SoTransformManip::search(), SoPointLightManip::search(), SoClipPlaneManip::search(), SoDirectionalLightManip::search(), SoGroup::search(), SoShaderObject::search(), SoVRMLShape::search(), SoSeparator::search(), SoVRMLGroup::search(), SoNodeKitListPart::search(), SoVRMLSwitch::search(), SoVRMLInline::search(), SoWWWInline::search(), and searchS().
|
virtual |
Action method for SoWriteAction.
Writes out a node object, and any connected nodes, engines etc, if necessary.
Reimplemented in SoSceneTexture2, SoBaseKit, SoVRMLSwitch, SoDragger, SoVRMLGroup, SoVRMLLOD, SoVRMLShape, SoGroup, SoSwitch, SoVRMLParent, SoVRMLScript, SoVertexShape, SoVRMLTimeSensor, SoPendulum, SoShuttle, SoCallback, and SoBlinker.
References SoFieldContainer::addWriteReference(), SoOutput::getCurrentProto(), SoFieldContainer::getFieldData(), SbName::getLength(), SoWriteAction::getOutput(), SoOutput::getStage(), SbName::getString(), SoOutput::indent(), SoBase::isOfType(), SoFieldData::write(), SoOutput::write(), SoBase::writeFooter(), and SoBase::writeHeader().
Referenced by SoCallback::write(), SoPendulum::write(), SoShuttle::write(), SoVRMLScript::write(), SoVRMLLOD::write(), SoVRMLSwitch::write(), and writeS().
|
virtual |
Action method for SoAudioRenderAction.
Does common processing for SoAudioRenderAction action instances.
Reimplemented in SoCamera, SoWWWInline, SoVRMLSwitch, SoVRMLSound, SoVRMLGroup, SoVRMLLOD, SoVRMLTransform, SoArray, SoSeparator, SoGroup, SoSwitch, SoLOD, SoFile, SoMultipleCopy, SoPathSwitch, SoLevelOfDetail, SoListener, and SoTransformSeparator.
Referenced by audioRenderS(), and SoAudioRenderAction::beginTraversal().
|
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 calculates their primitive count also overrides this method to change the relevant state variables.
Reimplemented in SoCamera, SoWWWInline, SoVRMLInline, SoBaseKit, SoMarkerSet, SoVRMLFontStyle, SoDragger, SoNodeKitListPart, SoText3, SoVRMLGroup, SoVRMLLOD, SoImage, SoVRMLTransform, SoUnits, SoShape, SoTransform, SoVertexProperty, SoVRMLElevationGrid, SoVRMLShape, SoArray, SoSeparator, SoFontStyle, SoGroup, SoMaterialBinding, SoNormalBinding, SoSwitch, SoVRMLParent, SoRotationXYZ, SoCone, SoCylinder, SoProfile, SoVRMLText, SoAsciiText, SoComplexity, SoLOD, SoVRMLExtrusion, SoIndexedNurbsSurface, SoResetTransform, SoText2, SoGeoSeparator, SoGeoLocation, SoGeoCoordinate, SoFile, SoMultipleCopy, SoNurbsSurface, SoVRMLIndexedFaceSet, SoGeoOrigin, SoCallback, SoPathSwitch, SoVRMLCylinder, SoVRMLVertexPoint, SoCube, SoFont, SoIndexedNurbsCurve, SoMatrixTransform, SoNormal, SoRotation, SoScale, SoTranslation, SoVRMLCone, SoTransformSeparator, SoCoordinate3, SoCoordinate4, SoFaceSet, SoIndexedFaceSet, SoIndexedTriangleStripSet, SoNurbsCurve, SoProfileCoordinate2, SoVRMLNormal, SoVRMLTextureCoordinate, SoIndexedLineSet, SoLineSet, SoProfileCoordinate3, SoVRMLIndexedLineSet, SoPointSet, SoQuadMesh, SoSphere, SoVRMLBox, SoVRMLSphere, and SoTriangleStripSet.
Referenced by SoMarkerSet::getPrimitiveCount(), and getPrimitiveCountS().
|
virtual |
Called from SoHandleEventAction::setGrabber() to notify a node when it becomes the node where all events are sent.
Reimplemented in SoDragger.
Referenced by SoHandleEventAction::setGrabber().
|
virtual |
Called from SoHandleEventAction to notify a node when it looses status as the node where events are sent.
Reimplemented in SoDragger.
Referenced by SoHandleEventAction::releaseGrabber().
|
virtual |
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.
References SoBase::startNotify().
Referenced by SoChildList::append(), SoChildList::copy(), SoChildList::insert(), SoChildList::remove(), and SoChildList::set().
|
virtual |
Notifies all auditors for this instance when changes are made.
Reimplemented from SoFieldContainer.
Reimplemented in SoSceneTexture2, SoVRMLSwitch, SoVRMLLOD, SoTextureCubeMap, SoText3, SoImage, SoTexture2, SoVRMLGroup, SoVRMLParent, SoVRMLTransform, SoTexture3, SoVRMLVertexShape, SoVRMLElevationGrid, SoVertexProperty, SoAsciiText, SoVRMLShape, SoShadowGroup, SoBumpMap, SoSeparator, SoVRMLScript, SoVRMLProximitySensor, SoVRMLExtrusion, SoSwitch, SoVRMLBillboard, SoVRMLText, SoLOD, SoShape, SoMaterial, SoVRMLTouchSensor, SoBlinker, SoLevelOfDetail, SoVRMLAppearance, SoVRMLIndexedLine, SoVRMLPixelTexture, SoVertexShape, SoVRMLCollision, SoVRMLTimeSensor, SoVRMLVertexPoint, SoVRMLGeometry, SoVRMLVertexLine, SoPackedColor, SoNodeEngine, and SoVRMLIndexedShape.
References SoBase::getName(), SoNotList::getTimeStamp(), SoBase::getTypeId(), nextUniqueId, SoFieldContainer::notify(), SoDebugError::postInfo(), and uniqueId.
Referenced by SoVRMLPixelTexture::notify(), SoLevelOfDetail::notify(), SoVRMLTouchSensor::notify(), SoLOD::notify(), SoSwitch::notify(), SoVRMLProximitySensor::notify(), SoSeparator::notify(), SoTexture3::notify(), SoVRMLParent::notify(), SoVRMLLOD::notify(), and SoVRMLSwitch::notify().
uint32_t 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 fom 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 scenegraph caches are set up and invalidated.
References uniqueId.
Referenced by SoAccumulatedElement::addNodeId(), SoGeoCoordinate::doAction(), and SoReplacedElement::getElement().
|
virtual |
Returns list of children for this node.
Reimplemented in SoVRMLInline, SoBaseKit, SoVRMLSwitch, SoVRMLLOD, SoWWWInline, SoNodeKitListPart, SoVRMLShape, SoGroup, SoClipPlaneManip, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoVRMLText, SoFile, SoVRMLParent, SoVRMLAppearance, and SoVRMLGeometry.
Referenced by addToCopyDict(), SoPath::append(), SoBaseKit::createPathToAnyPart(), SoPath::getTypeId(), SoInteractionKit::readInstance(), SoNodeKitListPart::setContainerType(), and SoBaseKit::setPart().
|
virtual |
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.
References SoOutput::getStage().
Referenced by SoNodeEngine::writeInstance().
|
virtual |
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.
References SoFieldContainer::addCopy(), SoFieldContainer::checkCopy(), SoType::createInstance(), getChildren(), SbPList::getLength(), SoBase::getName(), SoBase::getTypeId(), SoBase::isOfType(), and SoDebugError::postInfo().
Referenced by SoBaseKit::addToCopyDict(), and copy().
|
virtual |
Makes a deep copy of all data of from into this instance, except external scenegraph references if copyconnections is FALSE
.
This is the protected method that should be overridden by extension node / engine / dragger / whatever subclasses which needs 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 it's 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 SoBaseKit, SoWWWInline, SoVRMLSwitch, SoVRMLLOD, SoInteractionKit, SoNodeKitListPart, SoVRMLParent, SoGroup, SoClipPlaneManip, SoVRMLShape, SoDirectionalLightManip, SoPointLightManip, SoSpotLightManip, SoTransformManip, SoVRMLScript, SoRotateSphericalDragger, SoRotateCylindricalDragger, SoFile, SoCallback, SoVRMLAppearance, and SoVRMLGeometry.
References SoFieldContainer::copyContents(), and SoBase::isOfType().
Referenced by SoCallback::copyContents(), SoVRMLScript::copyContents(), SoPointLightManip::copyContents(), SoSpotLightManip::copyContents(), SoTransformManip::copyContents(), SoDirectionalLightManip::copyContents(), SoClipPlaneManip::copyContents(), SoGroup::copyContents(), SoVRMLParent::copyContents(), SoNodeKitListPart::copyContents(), SoVRMLLOD::copyContents(), SoVRMLSwitch::copyContents(), and SoWWWInline::copyContents().
|
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.
References SoFieldContainer::checkCopy(), and SoFieldContainer::findCopy().
Referenced by SoField::copyConnection().
Returns the last node that was registered under name.
References SoBase::getNamedBase().
Referenced by SoToVRMLAction::beginTraversal(), SoBase::connectRoute(), and SoBase::readRoute().
|
static |
Finds all nodes with name and appends them to the l nodelist. Returns the number of nodes with the specified name.
References SoNodeList::append(), and SoBase::getNamedBases().
|
static |
Initialize all the node classes of Coin.
Referenced by incNextActionMethodIndex().
|
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).
References nextUniqueId.
Referenced by SoNotList::SoNotList().
|
static |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
References SoType::getData().
Referenced by SoActionMethodList::setUp(), and SoAction::traverse().
This is a static "helper" method registered with the action, and used for calling the SoNode::getBoundingBox() virtual method which does the real work.
References SoGetBoundingBoxAction::checkResetAfter(), SoGetBoundingBoxAction::checkResetBefore(), and getBoundingBox().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::GLRender() virtual method which does the real work.
References affectsState(), SoAction::getCurPathCode(), SoType::getName(), SoAction::getState(), SbName::getString(), SoBase::getTypeId(), GLRender(), and SoDebugError::post().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::callback() virtual method which does the real work.
References callback(), SoCallbackAction::CONTINUE, SoCallbackAction::getCurrentResponse(), SoAction::hasTerminated(), SoCallbackAction::invokePostCallbacks(), SoCallbackAction::invokePreCallbacks(), and SoCallbackAction::setCurrentNode().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::getMatrix() virtual method which does the real work.
References getMatrix(), and SoAction::getTypeId().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::handleEvent() virtual method which does the real work.
References SoAction::getTypeId(), handleEvent(), and SoType::isDerivedFrom().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::pick() virtual method which does the real work.
References SoAction::getTypeId(), SoType::isDerivedFrom(), and pick().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::rayPick() virtual method which does the real work.
References SoAction::getTypeId(), SoType::isDerivedFrom(), and rayPick().
Referenced by SoDragger::initClass(), setCompatibilityTypes(), SoBaseKit::~SoBaseKit(), and SoGeoSeparator::~SoGeoSeparator().
This is a static "helper" method registered with the action, and used for calling the SoNode::search() virtual method which does the real work.
References SoAction::getTypeId(), SoType::isDerivedFrom(), and search().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::write() virtual method which does the real work.
References SoAction::getTypeId(), SoType::isDerivedFrom(), and write().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::audioRender() virtual method which does the real work.
References audioRender(), SoAction::getTypeId(), and SoType::isDerivedFrom().
Referenced by setCompatibilityTypes().
This is a static "helper" method registered with the action, and used for calling the SoNode::getPrimitiveCount() virtual method which does the real work.
References getPrimitiveCount().
Referenced by setCompatibilityTypes().
|
protectedvirtual |
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 / persistant 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 SoBaseKit, SoWWWInline, SoVRMLSwitch, SoVRMLLOD, SoInteractionKit, SoTextureCubeMap, SoNodeKitListPart, SoSeparator, SoImage, SoTexture2, SoVRMLParent, SoShaderObject, SoTexture3, SoFile, SoGroup, SoVRMLImageTexture, SoBumpMap, SoNormalBinding, SoTextureCoordinateBinding, SoNodeEngine, and SoVRMLPixelTexture.
References SoInput::isFileVRML1(), SoInput::isFileVRML2(), SoFieldContainer::readInstance(), setNodeType(), VRML1, and VRML2.
Referenced by SoNodeEngine::readInstance(), SoTextureCoordinateBinding::readInstance(), SoNormalBinding::readInstance(), SoGroup::readInstance(), SoTexture3::readInstance(), SoVRMLParent::readInstance(), SoImage::readInstance(), SoNodeKitListPart::readInstance(), and SoWWWInline::readInstance().
|
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.
Only in TGS Inventor on Win32 – to avoid needing to export the nextActionMethodIndex member, see SoNode.h for more info.
References nextActionMethodIndex.
|
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 info.
References nextActionMethodIndex.
|
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 info.
References SoType::badType(), SoType::createType(), initClasses(), nextActionMethodIndex, and setCompatibilityTypes().
|
staticprotected |
Set the node compatibility mask for node type nodetype. The mask specifies for which file formats the node is supported.
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
References SoAudioRenderAction::addMethod(), SoWriteAction::addMethod(), SoGetPrimitiveCountAction::addMethod(), SoSearchAction::addMethod(), SoPickAction::addMethod(), SoGetBoundingBoxAction::addMethod(), SoGetMatrixAction::addMethod(), SoHandleEventAction::addMethod(), SoGLRenderAction::addMethod(), SoRayPickAction::addMethod(), SoCallbackAction::addMethod(), audioRenderS(), callbackS(), getBoundingBoxS(), SoType::getKey(), getMatrixS(), getPrimitiveCountS(), GLRenderS(), handleEventS(), SoType::isDerivedFrom(), SoAction::nullAction(), pickS(), rayPickS(), searchS(), and writeS().
Referenced by incNextActionMethodIndex().
|
protected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Referenced by getNodeId(), notify(), setOverride(), and SoNode().
|
staticprotected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Referenced by getNextNodeId(), notify(), setOverride(), and SoNode().
|
staticprotected |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Referenced by getNextActionMethodIndex(), incNextActionMethodIndex(), and setNextActionMethodIndex().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Fri Feb 17 2017 for Coin by Doxygen. 1.8.13