XSITriangleStripList.h

00001 //***************************************************************************************
00002 //
00003 // File supervisor: Softimage 3D Games & 3D Bridge team
00004 //
00005 // (c) Copyright 2001-2005 Avid Technology, Inc. . All rights reserved.
00006 //
00007 //***************************************************************************************
00008 
00009 /****************************************************************************************
00010 THIS CODE IS PUBLISHED AS A SAMPLE ONLY AND IS PROVIDED "AS IS".
00011 IN NO EVENT SHALL SOFTIMAGE, AVID TECHNOLOGY, INC. AND/OR THEIR RESPECTIVE
00012 SUPPLIERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
00013 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00014 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
00015 CONNECTION WITH THE USE OR PERFORMANCE OF THIS CODE .
00016 
00017 COPYRIGHT NOTICE. Copyright © 1999-2002 Avid Technology Inc. . All rights reserved. 
00018 
00019 SOFTIMAGE is a registered trademark of Avid Technology Inc. or its subsidiaries 
00020 or divisions. Windows NT is a registered trademark of Microsoft Corp. All other
00021 trademarks contained herein are the property of their respective owners. 
00022 ****************************************************************************************/
00023 
00024 #ifndef _XSITRIANGLESTRIPLIST_H
00025 #define _XSITRIANGLESTRIPLIST_H
00026 
00027 #include "XSISubComponentList.h"
00028 #include "Material.h"
00029 
00031 
00043 class XSIEXPORT CSLXSITriangleStripList
00044     : public CSLXSISubComponentList
00045 {
00046 public:
00050     typedef CSLArrayProxy<SI_Int, SI_Int, 1> CSLIntArray;
00051 
00058     CSLXSITriangleStripList(CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate);
00059 
00062     virtual ~CSLXSITriangleStripList();
00063 
00067     virtual ETemplateType           Type() { return XSI_TRIANGLE_STRIP_LIST; }
00068 
00072     CSLBaseMaterial*                GetMaterial() { return m_pMaterial; }
00073 
00077     CSIBCString                     GetMaterialName();
00078 
00083     SI_Void                         SetMaterial(CSLBaseMaterial *in_pNewMaterial);
00084 
00089     SI_Void                         SetMaterialName(const CSIBCString& in_szNewMaterialName);
00090 
00094     SI_Int                          GetTriangleStripCount();
00095 
00099     CSLXSITriangleStripList::CSLIntArray*   GetTriangleStripNodeCountArray();
00100 
00104     CSLIntArray*                    GetVertexIndices();
00105 
00109     virtual SI_Error                SetCount(SI_Int);
00110 
00114     SI_Error Synchronize();
00115 
00116 private:
00117     CSLIntArray                     m_TriangleStripNodeCountArray;
00118 
00119     CSLIntArray                     m_VertexIndices;
00120 
00121     CSLBaseMaterial*                m_pMaterial;
00122 
00123     CSIBCString                     m_szMaterialName;
00124 
00125     void *m_pReserved;  // reserved for future extension
00126 };
00127 
00128 #endif