#include <Scenegraph.h>
Inherits DIObjectBase.
This is the DInterface used by all other components to control and otherwise interact with the scenegraph. In general, components will use the DISGManager, DISGNode and DISGRenderObject (and possibly DISGAnimatedRenderObject) when working with the scenegraph, and dss_cast'ing to specific types when wanting to deal with their representations.
Public Member Functions | |
| DISGBase * | CreateSGObject (const char *name, const char *type, DISGHeirachal *parent, DIXMLNode1 *configuration) |
| Create a new scene graph node. | |
| bool | DestroySGObject (const char *name) |
| Destroy a previously created scene graph object. | |
| DISGBase * | GetSGObject (const char *name) |
| Retreive a previously created scene graph object. | |
| DISGHeirachal * | GetSGHeirachal (const char *name) |
| A convenience version of GetSGObject, that performs the type cast for you. | |
| DISGMovable * | GetSGMovable (const char *name) |
| A convenience version of GetSGObject, that performs the type cast for you. | |
| DISGAnimated * | GetSGAnimated (const char *name) |
| A convenience version of GetSGObject, that performs the type cast for you. | |
| DISGBase * | CreateAdditionalRepresentationsOfObject (const char *name, const char *type, DIXMLNode1 *configuration) |
| Create additional representations of the specified object, with different configuration data. | |
| DISGBase* DISGManager::CreateSGObject | ( | const char * | name, | |
| const char * | type, | |||
| DISGHeirachal * | parent, | |||
| DIXMLNode1 * | configuration | |||
| ) |
Create a new scene graph node.
| name | Name to use to identify the object. If NULL or 0 length, creation will fail. | |
| type | Subtype to use with the object, for example: "node". If NULL or 0 length, creation will fail. | |
| parent | The object the new object will become attached to, or NULL if not required. | |
| configuration | Free form XML containing configuration data useful for the actual implementation of the object. |
1.5.6