< Zurück | Inhalt | Weiter >

5.2 Node






Node is an abstract base class for Group and Leaf Nodes. It defines methods to control bounding volumes (through the Bounds class), automatic computation of Bounds, collision detection and picking (mouse selection). Most important, it allows each Node to have a single parent Node. The parent Node allows arbitrarily complex scenegraph structures to be defined.

Group−derived Nodes have the ability to manage a Collection of Node−derived child objects, while Leaf−derived Nodes define the leaves of the scenegraph tree. In other words, Leaf Nodes cannot have child Nodes.