CSLCOLLADAModel Class Reference

This class represents a model for COLLADA. More...

#include <COLLADAModel.h>

Inheritance diagram for CSLCOLLADAModel:

CSLModel CSLTemplate CSLConstrainableType CSIBCNode List of all members.

Public Member Functions

  CSLCOLLADAModel (CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate)
virtual  ~CSLCOLLADAModel ()
  Destructor.
virtual SI_Error  Fix ()
virtual SI_Error  Synchronize ()
virtual CSLModel AddModel ()
virtual CSLModel AddPointLight ()
virtual CSLModel AddDirectionalLight ()
virtual CSLModel AddInfiniteLight ()
virtual CSLModel AddSpotLight ()
virtual CSLModel AddCamera ()
virtual CSLModel AddXSIMesh ()
virtual CSLModel AddXSICamera ()
virtual CSLModel AddInstance ()
CCOLLADATemplate FindInstanceMaterial (char *in_pName)
virtual const SI_Char *  GetParameterName (CSLAnimatableType *in_pParameter)
const char *  GetInstanceTarget (char *in_pSymbol)
const char *  GetInstanceSymbol (char *in_pTarget)
virtual CSLMixer CreateMixer ()
void  SetTechniqueCommon (CCOLLADATemplate *in_pTechniqueCommon)
void  AddInstanceMaterialSymbol (char *in_pSymbol, char *in_pTarget)

Detailed Description

This class represents a model for COLLADA.


Constructor & Destructor Documentation

CSLCOLLADAModel ( CSLScene in_pScene,
CSLModel in_pModel,
CdotXSITemplate in_pTemplate  
)

Constructor

Parameters:
[in]  in_pScene  Parent Scene
[in]  in_pModel  Parent Model
[in]  in_pTemplate  Parent Template
Returns:
an instance of CSLModel


Member Function Documentation

virtual SI_Error Fix (  )  [virtual]

Fixes all problems in the model to ensure it is valid

Returns:
Whether or not the model could be fixed

Reimplemented from CSLModel.

virtual SI_Error Synchronize (  )  [virtual]

Updates the template with information from this instance

Returns:
Whether or not the template could be updated

Reimplemented from CSLModel.

virtual CSLModel* AddModel (  )  [virtual]

Adds a model to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

virtual CSLModel* AddPointLight (  )  [virtual]

Adds a point light to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

virtual CSLModel* AddDirectionalLight (  )  [virtual]

Adds a directional light to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

virtual CSLModel* AddInfiniteLight (  )  [virtual]

Adds an infinite light to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

virtual CSLModel* AddSpotLight (  )  [virtual]

Adds a spot light to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

virtual CSLModel* AddCamera (  )  [virtual]

Adds a camera to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

virtual CSLModel* AddXSIMesh (  )  [virtual]

Adds a mesh to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

virtual CSLModel* AddXSICamera (  )  [virtual]

Adds an XSI_Camera to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

virtual CSLModel* AddInstance (  )  [virtual]

Adds an instance of another model to the children list

Returns:
Pointer to the new children

Reimplemented from CSLModel.

CCOLLADATemplate* FindInstanceMaterial ( char *  in_pName  ) 

Finds the instance_material template with a given name material

Parameters:
[in]  in_pName  the name of the material
Returns:
the template of the instance_material

virtual const SI_Char* GetParameterName ( CSLAnimatableType in_pParameter  )  [virtual]

Returns the name (string) of a specified parameter.

Parameters:
[in]  in_pParameter  The parameter
Returns:
Name of the parameter.

Reimplemented from CSLModel.

const char* GetInstanceTarget ( char *  in_pSymbol  ) 

Returns the instance target name from its symbol.

Parameters:
[in]  in_pSymbol  The symbol
Returns:
The name of the target.

const char* GetInstanceSymbol ( char *  in_pTarget  ) 

Returns the instance target symbol from its name.

Parameters:
[in]  in_pTarget  The symbol
Returns:
The name of the target.

virtual CSLMixer* CreateMixer (  )  [virtual]

Allocates and connects a new mixer to the model

Returns:
Pointer to the newly allocated mixer

Reimplemented from CSLModel.

void SetTechniqueCommon ( CCOLLADATemplate in_pTechniqueCommon  )  [inline]

Sets the pointer to the <bind_material> <technique_common> template

Parameters:
[in]  in_pTechniqueCommon  the <technique_common> template pointer

void AddInstanceMaterialSymbol ( char *  in_pSymbol,
char *  in_pTarget  
)

Adds a symbol vs target <instance_material> association to the list

Parameters:
[in]  in_pSymbol  the symbol
[in]  in_pTarget  the associated target


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