- Cal3D 0.11 API Reference -

saver.h
1//****************************************************************************//
2// saver.h //
3// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4//****************************************************************************//
5// This library is free software; you can redistribute it and/or modify it //
6// under the terms of the GNU Lesser General Public License as published by //
7// the Free Software Foundation; either version 2.1 of the License, or (at //
8// your option) any later version. //
9//****************************************************************************//
10
11#ifndef CAL_SAVER_H
12#define CAL_SAVER_H
13
14//****************************************************************************//
15// Includes //
16//****************************************************************************//
17
18#include "cal3d/global.h"
19#include "cal3d/vector.h"
20
21//****************************************************************************//
22// Forward declarations //
23//****************************************************************************//
24
25 class CalCoreModel;
26 class CalCoreSkeleton;
27 class CalCoreBone;
28 class CalCoreAnimation;
29 class CalCoreMesh;
30 class CalCoreSubmesh;
31 class CalCoreMaterial;
32 class CalCoreKeyframe;
33 class CalCoreTrack;
34
35//****************************************************************************//
36// Class declaration //
37//****************************************************************************//
38
39 /*****************************************************************************/
42
43 class CAL3D_API CalSaver
44{
45 public:
46 static bool saveCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
47 static bool saveCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
48 static bool saveCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
49 static bool saveCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
50
51 protected:
52 static bool saveCoreBones(std::ofstream& file, const std::string& strFilename, CalCoreBone *pCoreBone);
53 static bool saveCoreKeyframe(std::ofstream& file, const std::string& strFilename, CalCoreKeyframe *pCoreKeyframe);
54 static bool saveCoreSubmesh(std::ofstream& file, const std::string& strFilename, CalCoreSubmesh *pCoreSubmesh);
55 static bool saveCoreTrack(std::ofstream& file, const std::string& strFilename, CalCoreTrack *pCoreTrack);
56
57 static bool saveXmlCoreSkeleton(const std::string& strFilename, CalCoreSkeleton *pCoreSkeleton);
58 static bool saveXmlCoreAnimation(const std::string& strFilename, CalCoreAnimation *pCoreAnimation);
59 static bool saveXmlCoreMesh(const std::string& strFilename, CalCoreMesh *pCoreMesh);
60 static bool saveXmlCoreMaterial(const std::string& strFilename, CalCoreMaterial *pCoreMaterial);
61};
62
63#endif
64
65//****************************************************************************//
CalCoreAnimation
Definition coreanimation.h:23
CalCoreBone
Definition corebone.h:26
CalCoreKeyframe
The core keyframe class.
Definition corekeyframe.h:32
CalCoreMaterial
Definition corematerial.h:21
CalCoreMesh
Definition coremesh.h:24
CalCoreModel
Definition coremodel.h:26
CalCoreSkeleton
Definition coreskeleton.h:24
CalCoreSubmesh
Definition coresubmesh.h:23
CalCoreTrack
Definition coretrack.h:39
CalSaver
The saver class.
Definition saver.h:44
CalSaver::saveXmlCoreMesh
static bool saveXmlCoreMesh(const std::string &strFilename, CalCoreMesh *pCoreMesh)
Saves a core mesh instance in a XML file.
Definition saver.cpp:959
CalSaver::saveCoreTrack
static bool saveCoreTrack(std::ofstream &file, const std::string &strFilename, CalCoreTrack *pCoreTrack)
Saves a core track instance.
Definition saver.cpp:676
CalSaver::saveXmlCoreSkeleton
static bool saveXmlCoreSkeleton(const std::string &strFilename, CalCoreSkeleton *pCoreSkeleton)
Saves a core skeleton instance to a XML file.
Definition saver.cpp:727
CalSaver::saveCoreAnimation
static bool saveCoreAnimation(const std::string &strFilename, CalCoreAnimation *pCoreAnimation)
Saves a core animation instance.
Definition saver.cpp:51
CalSaver::saveCoreMesh
static bool saveCoreMesh(const std::string &strFilename, CalCoreMesh *pCoreMesh)
Saves a core mesh instance.
Definition saver.cpp:364
CalSaver::saveCoreSkeleton
static bool saveCoreSkeleton(const std::string &strFilename, CalCoreSkeleton *pCoreSkeleton)
Saves a core skeleton instance.
Definition saver.cpp:436
CalSaver::saveCoreKeyframe
static bool saveCoreKeyframe(std::ofstream &file, const std::string &strFilename, CalCoreKeyframe *pCoreKeyframe)
Saves a core keyframe instance.
Definition saver.cpp:217
CalSaver::saveCoreBones
static bool saveCoreBones(std::ofstream &file, const std::string &strFilename, CalCoreBone *pCoreBone)
Saves a core bone instance.
Definition saver.cpp:129
CalSaver::saveCoreSubmesh
static bool saveCoreSubmesh(std::ofstream &file, const std::string &strFilename, CalCoreSubmesh *pCoreSubmesh)
Saves a core submesh instance.
Definition saver.cpp:503
CalSaver::saveXmlCoreMaterial
static bool saveXmlCoreMaterial(const std::string &strFilename, CalCoreMaterial *pCoreMaterial)
Saves a core material instance to a XML file.
Definition saver.cpp:1183
CalSaver::saveXmlCoreAnimation
static bool saveXmlCoreAnimation(const std::string &strFilename, CalCoreAnimation *pCoreAnimation)
Saves a core animation instance in a XML file.
Definition saver.cpp:862
CalSaver::saveCoreMaterial
static bool saveCoreMaterial(const std::string &strFilename, CalCoreMaterial *pCoreMaterial)
Saves a core material instance.
Definition saver.cpp:266

Generated by The Cal3D Team with Doxygen 1.15.0