14.4. Scene Graph

The previous section mentioned the MediaObject class as the programming entity that manages the scene graph. The implementation details of this class are tricky and worth further elaboration.

A simplified structure of the scene graph implementation is illustrated in Figure 14.4. MediaObject is the base class for scene nodes of every type. Each node type has a corresponding class that extends MediaObject. Each node in the scene graph is represented by an instance of the appropriate class.

Figure 14.4. Scene graph structure and objects.

Scene graph nodes contain fields. The node fields in MediaObject-derived objects are represented ...

Get MPEG-4 Book, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.