Chapter 2. Creating a Node

Table of Contents

This chapter explains how you can create new subclasses of SoNode( C++ | Java | .NET ). It discusses enabling elements in the state, constructing a node, and implementing actions for it. Chapter 1 provides important background material on these concepts, and this chapter assumes you are familiar with the material presented there.

The first part of this chapter offers an overview of the steps required to create a new node. When necessary, additional sections explain key concepts in further detail and list the relevant macros. Next, the chapter examples show how to create four new node classes:

Sections at the end of the chapter discuss the following: