00001 //*************************************************************************************** 00002 // 00003 // File supervisor: Softimage 3D Games & 3D Bridge team 00004 // 00005 // (c) Copyright 2001-2002 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 _SHAPEANIMATION_H 00025 #define _SHAPEANIMATION_H 00026 00027 #include "Template.h" 00028 00029 class CSLBaseShape; 00030 class CSLFCurve; 00031 00036 class XSIEXPORT CSLShapeAnimation 00037 : public CSLTemplate 00038 { 00039 public: 00046 CSLShapeAnimation(CSLScene* in_pScene, CSLModel *in_pModel, CdotXSITemplate* in_pTemplate, EFCurveInterpolationType in_Type); 00047 virtual ~CSLShapeAnimation(); 00048 00052 CSLBaseShape* AddShape(); 00053 00060 CSLBaseShape* InsertShape(SI_Int in_nIndex); 00061 00065 SI_Int GetShapeCount(); 00066 00070 CSLBaseShape** Shapes(); 00071 00077 SI_Error RemoveShape(SI_Int in_nIndex); 00078 00084 SI_Error RemoveShape(CSLBaseShape* in_pObject); 00085 00089 SI_Error ClearShapes(); 00090 00094 CSLFCurve* Animation(); 00095 00096 // Connection functions; 00097 CSLFCurve* ConnectAnimation(CSLFCurve *in_pNewAnimation); 00098 CSLBaseShape* ConnectShape(CSLBaseShape* in_pNewShape, SI_Int in_nIndex); 00099 00100 virtual SI_Error Fix(); 00101 virtual SI_Error Synchronize(); 00102 00106 virtual ETemplateType Type() { return SI_SHAPE_ANIMATION; } 00107 00108 protected: 00109 CSLBaseShape* CreateShape(); 00110 00111 private: 00112 CSIBCArray<CSLBaseShape *> m_Shapes; 00113 CSLFCurve* m_pAnimation; 00114 CSLStrEnumProxy<EFCurveInterpolationType, SI_CUBIC> m_InterpolationType; 00115 00116 void *m_pReserved; // reserved for future extension 00117 }; 00118 00119 #endif