ActionClipContainer.h

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 _ACTIONCLIPCONTAINER_H
00025 #define _ACTIONCLIPCONTAINER_H
00026 
00027 #include "Template.h"
00028 #include "ActionClip.h"
00029 
00030 // Forward declaration
00031 
00032 class CSLAction;
00033 class CSLTrack;
00034 
00045 class XSIEXPORT CSLActionClipContainer
00046     : public CSLActionClip
00047 {
00048 public:
00054     CSLActionClipContainer(CSLScene* in_pScene, CSLModel *in_pModel, CdotXSITemplate* in_pTemplate);
00055     virtual ~CSLActionClipContainer();
00056     
00060     virtual SI_Error Synchronize();
00061 
00065     CSLTemplate::ETemplateType Type(){ return CSLTemplate::XSI_ACTIONCLIPCONTAINER; }
00066 
00067     // Tracks functionality //////////////////////////////////////////////////
00068     
00074     SI_Error RemoveTrack( SI_Int in_nIndex );
00075 
00081     SI_Error RemoveTrack( CSLTrack *io_pToRemove );
00082 
00086     CSLTrack** GetTrackList();
00087 
00091     SI_Int GetTrackCount();
00092 
00096     CSLTrack* AddTrack();
00097 
00101     SI_Error ClearTracks();
00102 
00107     CSLTrack* ConnectTrack(CSLTrack* in_pNewTrack);
00108     
00109 private:
00110     CSIBCArray<CSLTrack *> m_Tracks;
00111 
00112     SI_Void *m_pReserved;
00113 };
00114 
00115 #endif // _ACTIONCLIPCONTAINER_H