XSISubComponentAttributeList.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 _XSISUBCOMPONENTATTRIBUTELIST_H
00025 #define _XSISUBCOMPONENTATTRIBUTELIST_H
00026 
00027 #include "Template.h"
00028 
00029 
00031 
00038 class XSIEXPORT CSLXSISubComponentAttributeList
00039     : public CSLTemplate
00040 {
00041 public:
00045     typedef CSLArrayProxy<SI_Float, SI_Float, 1> CSLFloatArray;
00046 
00047     enum EAttributeType
00048     {
00049         FLOAT = 1,
00050         FLOAT2 = 2,
00051         FLOAT3 = 3,
00052         FLOAT4 = 4,
00053         FLOAT5 = 5,
00054     };
00055 
00063     CSLXSISubComponentAttributeList(CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate);
00064 
00067     virtual ~CSLXSISubComponentAttributeList();
00068 
00072     SI_Int                          GetCount();
00073 
00077     virtual SI_Char*                        GetSemantic() { return m_Semantic; }
00078 
00083     virtual SI_Void                         SetSemantic(SI_Char* in_Semantic) { m_Semantic = in_Semantic; }
00084 
00088     EAttributeType                  GetAttributeType() { return m_AttributeType; }
00089 
00094     virtual SI_Void                         SetAttributeType(EAttributeType in_AttributeType);
00095 
00099     CSLFloatArray*                  GetAttributeArray() { return &m_AttributeArray; }
00100 
00104     virtual ETemplateType           Type() { return XSI_SUB_COMPONENT_ATTRIBUTE_LIST; }
00105 
00109     virtual SI_Error Synchronize();
00110 
00111 private:
00112     CSLFloatArray                   m_AttributeArray;
00113     CSLStringProxy                  m_Semantic;
00114     EAttributeType                  m_AttributeType;
00115 
00116     void *m_pReserved;  // reserved for future extension
00117 };
00118 
00119 #endif