#include <XSITriangleList.h>
Inheritance diagram for CSLXSITriangleList:

Public Member Functions |
|
| CSLXSITriangleList (CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate) | |
| virtual | ~CSLXSITriangleList () |
| virtual ETemplateType | Type () |
| CSLBaseMaterial * | GetMaterial () |
| CSIBCString | GetMaterialName () |
| SI_Void | SetMaterial (CSLBaseMaterial *in_pNewMaterial) |
| SI_Void | SetMaterialName (const CSIBCString &in_szNewMaterialName) |
| CSLIntArray * | GetVertexIndices () |
| SI_Int | GetTriangleCount () |
| virtual SI_Error | SetCount (SI_Int) |
| virtual SI_Error | Synchronize () |
The CSLXSITriangleList class describes a list of triangles The polynodes in this list can have N number of attibutes like vertex, normals, UV and color information.
To find out, you may use GetVertexIndices() to get the mendatory vertex index attributes and the parent class (CSLXSISubComponentList) functionality to get the other generic attributes index.
To get the number of triangles in the list, use GetTriangleCount().
| CSLXSITriangleList | ( | CSLScene * | in_pScene, | |
| CSLModel * | in_pModel, | |||
| CdotXSITemplate * | in_pTemplate | |||
| ) |
Constructor
| in_pScene | Parent scene | |
| in_pModel | Parent model | |
| in_pTemplate | Refered template |
| virtual ~CSLXSITriangleList | ( | ) | [virtual] |
Destructor
| virtual ETemplateType Type | ( | ) | [inline, virtual] |
Returns the type of this template (XSI_TRIANGLE_LIST)
Implements CSLTemplate.
| CSLBaseMaterial* GetMaterial | ( | ) | [inline] |
Return the material object of the triangle list.
| CSIBCString GetMaterialName | ( | ) |
Return the material object name of the triangle list or an empty string if there's none.
| SI_Void SetMaterial | ( | CSLBaseMaterial * | in_pNewMaterial | ) |
Change the material object of the triangle list.
| CSLBaseMaterial* | New material object. |
| SI_Void SetMaterialName | ( | const CSIBCString & | in_szNewMaterialName | ) |
Change the material object name of the triangle list. Should ONLY be called if we don't export the material.
| const | CSIBCString& New material object name. |
| CSLIntArray* GetVertexIndices | ( | ) |
Get the polynode vertex indices array.
| SI_Int GetTriangleCount | ( | ) |
Get the number of triangle.
| virtual SI_Error SetCount | ( | SI_Int | ) | [virtual] |
Set the number of polynode in this triangle list.
Reimplemented from CSLXSISubComponentList.
| virtual SI_Error Synchronize | ( | ) | [virtual] |
Commit the current template information
Reimplemented from CSLTemplate.
Reimplemented in CSLCOLLADATriangleList.