The namespace nvsg contains all classes that form the building blocks to create a directed acyclic graph (DAG). In the following, we refer to these classes as the NVSG core classes. Together, all NVSG core classes build a class hierarchy with Object as the common base class. All NVSG core classes are reference counted and utilize a highly optimized Memory Management.
In general, we distinguish between three kinds of objects:
In general, a scenegraph consists of nodes arranged in a tree structure. Scenegraph nodes encapsulate coherent parts of the scene to be represented, and hence, support the natural grouping of the geometric objects in the scene.
In NVSG, Node represents the base class for all concrete and non-concrete node classes. Two types of nodes are distinguished:
- Leaf nodes are nodes that can only have parent nodes
- Group nodes are nodes that can have other nodes as children.
In NVSG, all concrete and non-concrete group nodes inherit from Group . For example, nodes that all undergo a certain transformation are grouped together under a Transform node.
Node components are objects that are referenced by nodes. These components hold, for example, geometrical or topological informations, or they define certain state attributes for rendering. Material , or Triangles are examples of node components.
Superior objects are not part of the graph tree, but are objects to which a scenegraph is connected, or that define a certain view to the scene. Scene , ViewState , or Camera are examples of superior objects.
- See also:
- Overview of the Principal Classes
Back to Important Concepts - Must Read for All Developers
Generated on Tue Mar 1 13:20:36 2005 for NVSGSDK by