- Cal3D 0.11 API Reference -

saver.h

00001 //****************************************************************************//
00002 // saver.h                                                                    //
00003 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger                       //
00004 //****************************************************************************//
00005 // This library is free software; you can redistribute it and/or modify it    //
00006 // under the terms of the GNU Lesser General Public License as published by   //
00007 // the Free Software Foundation; either version 2.1 of the License, or (at    //
00008 // your option) any later version.                                            //
00009 //****************************************************************************//
00010 
00011 #ifndef CAL_SAVER_H
00012 #define CAL_SAVER_H
00013 
00014 //****************************************************************************//
00015 // Includes                                                                   //
00016 //****************************************************************************//
00017 
00018 #include "cal3d/global.h"
00019 #include "cal3d/vector.h"
00020 
00021 //****************************************************************************//
00022 // Forward declarations                                                       //
00023 //****************************************************************************//
00024 
00025 class CalCoreModel;
00026 class CalCoreSkeleton;
00027 class CalCoreBone;
00028 class CalCoreAnimation;
00029 class CalCoreMesh;
00030 class CalCoreSubmesh;
00031 class CalCoreMaterial;
00032 class CalCoreKeyframe;
00033 class CalCoreTrack;
00034 
00035 //****************************************************************************//
00036 // Class declaration                                                          //
00037 //****************************************************************************//
00038 
00039  /*****************************************************************************/
00043 class CAL3D_API CalSaver
00044 {
00045 public:
00046   static bool saveCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
00047   static bool saveCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
00048   static bool saveCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
00049   static bool saveCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
00050 
00051 protected:
00052   static bool saveCoreBones(std::ofstream& file, const std::string& strFilename, CalCoreBone *pCoreBone);
00053   static bool saveCoreKeyframe(std::ofstream& file, const std::string& strFilename, CalCoreKeyframe *pCoreKeyframe);
00054   static bool saveCoreSubmesh(std::ofstream& file, const std::string& strFilename, CalCoreSubmesh *pCoreSubmesh);
00055   static bool saveCoreTrack(std::ofstream& file, const std::string& strFilename, CalCoreTrack *pCoreTrack);
00056 
00057   static bool saveXmlCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
00058   static bool saveXmlCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
00059   static bool saveXmlCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
00060   static bool saveXmlCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);  
00061 };
00062 
00063 #endif
00064 
00065 //****************************************************************************//

Generated at Thu Jun 29 19:03:59 2006 by The Cal3D Team with Doxygen 1.4.6