COLLADASubComponentAttributeList.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 _COLLADASUBCOMPONENTATTRIBUTELIST_H
00025 #define _COLLADASUBCOMPONENTATTRIBUTELIST_H
00026 
00027 #include "COLLADATemplate.h"
00028 #include "XSISubComponentAttributeList.h"
00029 
00030 
00032 
00039 class XSIEXPORT CSLCOLLADASubComponentAttributeList
00040     : public CSLXSISubComponentAttributeList
00041 {
00042 public:
00043     
00044     CSLCOLLADASubComponentAttributeList(CSLScene *in_pScene, CSLModel *in_pModel, CdotXSITemplate *in_pTemplate);
00045 
00048     virtual ~CSLCOLLADASubComponentAttributeList();
00049     virtual SI_Void     SetAttributeType(EAttributeType in_AttributeType);
00050     virtual SI_Char*    GetSemantic() { return m_szSemantic.GetText(); };
00051     virtual SI_Void     SetSemantic(SI_Char* in_Semantic) { m_szSemantic.SetText(in_Semantic);};
00052     virtual SI_Char*    GetSource() { return m_pMainID->GetVariantPtr()->p_cVal; };
00053 
00054     virtual SI_Error    Synchronize();
00055     
00056     SI_Void SetVerticesDeclarationTemplate( CCOLLADATemplate* in_pDecl );
00057     SI_Void SetInputSemantics ( CdotXSITemplates* in_pTemplates );
00058 
00059 private:
00060     CCOLLADATemplate* m_pAttributeArrayTemplate;
00061     CCOLLADATemplate *m_accessor ;
00062     CCOLLADATemplate*   m_pVertexDeclarationTemplate;
00063     CSIBCString m_szSemantic;
00064 
00065     CdotXSIParam*   m_pCountAttribute;
00066     CdotXSIParam*   m_pIDAttribute;
00067 
00068     CdotXSIParam*   m_pInnerCountAttribute;
00069     CdotXSIParam*   m_pStrideCountAttribute;
00070     CdotXSIParam*   m_pSourceIDAttribute;
00071 
00072     CdotXSIParam*   m_pMainID;
00073     CdotXSIParam*   m_pAttribArray;
00074 };
00075 
00076 #endif