8.1. Inventor Actions

The preceding chapters focused on building a scene graph using group, property, and shape nodes. Once you have created this scene graph, you can apply actions to it. Table 8.1, “ Using Inventor Actions ” summarizes some of the ways you can use the scene graph and the specific Inventor action to use.

Table 8.1.  Using Inventor Actions

You Can Perform This Task

Using This Action

Draw, or render, the scene graph

SoGLRenderAction

Compute a 3D bounding box for objects in the scene graph

SoGetBoundingBoxAction

Compute a cumulative transformation matrix (and its inverse)

SoGetMatrixAction

Write the scene graph to a file

SoWriteAction

Search for paths to specific nodes, types of nodes, or nodes with specific names in the scene graph

SoSearchAction

Allow objects in the scene graph to handle an event (see Chapter 10, Handling Events and Selection)

SoHandleEventAction

Pick objects in the scene graph along a ray

SoRayPickAction

Traverse the scene graph and accumulate traversal state, then perform your own action using callback functions

SoCallbackAction

Figure 8.1, “ Action Classes ” shows the portion of the class tree for actions.

Action Classes

Figure 8.1.  Action Classes