#include <XSISubComponentList.h>
Inheritance diagram for CSLXSISubComponentList:

Public Types |
|
| typedef CSLArrayProxy< SI_Int, SI_Int, 1 > |
CSLIntArray |
| typedef CSLArrayProxy< SI_Char *, SI_Char *, 1 > |
CSLStringArray |
Public Member Functions |
|
| CSLXSISubComponentList (CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate) | |
| virtual | ~CSLXSISubComponentList () |
| SI_Int | GetCount () |
| virtual SI_Error | SetCount (SI_Int) |
| SI_Int | GetAttributeCount () |
| SI_Int | AddAttribute (SI_Char *) |
| SI_Error | RemoveAttribute () |
| SI_Error | ClearAttribute () |
| CSLIntArray * | GetAttributeIndices (SI_Int in_iIndex) |
| CSIBCArray< CSLIntArray * > * | GetAttributeIndicesArray () |
| CSLStringArray * | GetAttributeNameArray () |
| CSLArrayProxy< SI_Int, SI_Int, 1 > * | GetAttributeByName (SI_Char *in_pName) |
| CSIBCString & | GetSemantic (int in_iIndx) |
| SI_Void | SetSemantic (int in_iIndx, CSIBCString in_szSemantic) |
| CSIBCString & | GetSource (int in_iIndx) |
| SI_Void | SetSource (int in_iIndx, CSIBCString in_szSource) |
Describes a sub-component list base class
The CSLXSISubComponentList base class holds a list of attribute reference. Each attributes list are reference by name and a corresponding indices array matche the sub component node with the attribute value.
This class allows an element composed of sub-component (vertex list, polygon list, etc.) to reference to attrubutes (position, normal, colors, etc.) for its nodes, by name. A corresponding indices array is associated to each attribute reference to match the sub component node with the attribute value.
| typedef CSLArrayProxy<SI_Int, SI_Int, 1> CSLIntArray |
Proxy class that allows modifying a list of SI_Int like an array.
Reimplemented in CSLXSIPolygonList, and CSLXSITriangleStripList.
| typedef CSLArrayProxy<SI_Char*, SI_Char*, 1> CSLStringArray |
Proxy class that allows modifying a list of SI_Char* like an array.
| CSLXSISubComponentList | ( | CSLScene * | in_pScene, | |
| CSLModel * | in_pModel, | |||
| CdotXSITemplate * | in_pTemplate | |||
| ) |
Constructor
| in_pScene | Parent scene | |
| in_pModel | Parent model | |
| in_pTemplate | Refered template |
| virtual ~CSLXSISubComponentList | ( | ) | [virtual] |
Destructor
| SI_Int GetCount | ( | ) |
Get the number of node (polynode/vertex/etc.) in this sub component list.
| virtual SI_Error SetCount | ( | SI_Int | ) | [virtual] |
Set the number of node (polynode/vertex/etc.) in this sub component list.
Reimplemented in CSLXSIPolygonList, CSLXSITriangleList, and CSLXSITriangleStripList.
| SI_Int GetAttributeCount | ( | ) |
Get the number of attribute accessor.
| SI_Int AddAttribute | ( | SI_Char * | ) |
Create a new attribute accessor element.
| SI_Error RemoveAttribute | ( | ) |
Remove the last attribute accessor.
| SI_Error ClearAttribute | ( | ) |
Remove all the attribute accessors.
| CSLIntArray* GetAttributeIndices | ( | SI_Int | in_iIndex | ) |
Get the attribute indices.
| CSIBCArray<CSLIntArray*>* GetAttributeIndicesArray | ( | ) |
Get the attribute indices array.
| CSLStringArray* GetAttributeNameArray | ( | ) |
Get the attribute name array.
| CSLArrayProxy<SI_Int, SI_Int, 1>* GetAttributeByName | ( | SI_Char * | in_pName | ) |
Get the index of the first attribute with the specified name from the array.
| CSIBCString& GetSemantic | ( | int | in_iIndx | ) |
Gets the associated semantic
| SI_Void SetSemantic | ( | int | in_iIndx, | |
| CSIBCString | in_szSemantic | |||
| ) |
Sets the associated semantic
| CSIBCString& GetSource | ( | int | in_iIndx | ) |
Gets the associated Source
| SI_Void SetSource | ( | int | in_iIndx, | |
| CSIBCString | in_szSource | |||
| ) |
Sets the associated Source