#include <XSITriangleStripList.h>
Inheritance diagram for CSLXSITriangleStripList:

Public Types |
|
| typedef CSLArrayProxy< SI_Int, SI_Int, 1 > |
CSLIntArray |
Public Member Functions |
|
| CSLXSITriangleStripList (CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate) | |
| virtual | ~CSLXSITriangleStripList () |
| virtual ETemplateType | Type () |
| CSLBaseMaterial * | GetMaterial () |
| CSIBCString | GetMaterialName () |
| SI_Void | SetMaterial (CSLBaseMaterial *in_pNewMaterial) |
| SI_Void | SetMaterialName (const CSIBCString &in_szNewMaterialName) |
| SI_Int | GetTriangleStripCount () |
| CSLXSITriangleStripList::CSLIntArray * | GetTriangleStripNodeCountArray () |
| CSLIntArray * | GetVertexIndices () |
| virtual SI_Error | SetCount (SI_Int) |
| SI_Error | Synchronize () |
The CSLXSITriangleStripList class describes a list of triangle strips that are made up of N number of vertices. 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 triangle strips in the list, use GetTriangleStripCount(). To find out how many vertices a particular triangle strip uses, get the list of triangle strip vertex count using GetTriangleStripNodeCountArray().
| typedef CSLArrayProxy<SI_Int, SI_Int, 1> CSLIntArray |
Proxy class that allows modifying a list of SI_Int like an array.
Reimplemented from CSLXSISubComponentList.
| CSLXSITriangleStripList | ( | CSLScene * | in_pScene, | |
| CSLModel * | in_pModel, | |||
| CdotXSITemplate * | in_pTemplate | |||
| ) |
Constructor
| in_pScene | Parent scene | |
| in_pModel | Parent model | |
| in_pTemplate | Refered template |
| virtual ~CSLXSITriangleStripList | ( | ) | [virtual] |
Destructor
| virtual ETemplateType Type | ( | ) | [inline, virtual] |
Returns the type of this template (XSI_TRIANGLE_STRIP_LIST)
Implements CSLTemplate.
| CSLBaseMaterial* GetMaterial | ( | ) | [inline] |
Return the material object of the triangle strip list.
| CSIBCString GetMaterialName | ( | ) |
Return the material object name of the triangle strip list or an empty string if there's none.
| SI_Void SetMaterial | ( | CSLBaseMaterial * | in_pNewMaterial | ) |
Change the material object of the triangle strip list.
| CSLBaseMaterial* | New material object. |
| SI_Void SetMaterialName | ( | const CSIBCString & | in_szNewMaterialName | ) |
Change the material object name of the triangle strip list. Should ONLY be called if we don't export the material.
| const | CSIBCString& New material object name. |
| SI_Int GetTriangleStripCount | ( | ) |
Get the number of triangle strip.
| CSLXSITriangleStripList::CSLIntArray* GetTriangleStripNodeCountArray | ( | ) |
Get the triangle strip node count array.
| CSLIntArray* GetVertexIndices | ( | ) |
Get the polynode vertex indices array.
| virtual SI_Error SetCount | ( | SI_Int | ) | [virtual] |
Set the number of polynode in this triangle strip list.
Reimplemented from CSLXSISubComponentList.
| SI_Error Synchronize | ( | ) | [virtual] |
Commit the current template information
Reimplemented from CSLTemplate.