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.
You Can Perform This Task |
Using This Action |
---|---|
Draw, or render, the scene graph |
|
Compute a 3D bounding box for objects in the scene graph |
|
Compute a cumulative transformation matrix (and its inverse) |
|
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 |
|
Allow objects in the scene graph to handle an event (see Chapter 10, Handling Events and Selection) |
|
Pick objects in the scene graph along a ray |
|
Traverse the scene graph and accumulate traversal state, then perform your own action using callback functions |
Figure 8.1, “ Action Classes ” shows the portion of the class tree for actions.