DISGManager Struct Reference

#include <Scenegraph.h>

Inherits DIObjectBase.


Detailed Description

This DInterface should only be implemented by one component (SGManager), and is responsible for management of the scenegraph, by co-ordinating all the DISGRepresentative's.

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.

Member Function Documentation

DISGBase* DISGManager::CreateSGObject ( const char *  name,
const char *  type,
DISGHeirachal *  parent,
DIXMLNode1 *  configuration 
)

Create a new scene graph node.

Parameters:
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.
Returns:
Interface to the newly created object, or NULL if creation was not sucessful.


The documentation for this struct was generated from the following file:

Generated on Sun Aug 31 17:46:28 2008 for Digital Spaces by  doxygen 1.5.6