- Cal3D 0.11 API Reference -

coreanimatedmorph.h
1//****************************************************************************//
2// coreanimatedMorph.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_COREANIMATEDMORPH_H
12#define CAL_COREANIMATEDMORPH_H
13
14//****************************************************************************//
15// Includes //
16//****************************************************************************//
17
18#include "cal3d/global.h"
19#include "cal3d/coremorphtrack.h"
20
21//****************************************************************************//
22// Forward declarations //
23//****************************************************************************//
24
26
27//****************************************************************************//
28// Class declaration //
29//****************************************************************************//
30
31 /*****************************************************************************/
36class CAL3D_API CalCoreAnimatedMorph
37{
38// member variables
39protected:
40 std::string m_name;
41 float m_duration;
42 std::list<CalCoreMorphTrack> m_listCoreTrack;
43 std::list<CalCoreMorphTrack*> m_tracksToDelete;
44
45// constructors/destructor
46public:
48 virtual ~CalCoreAnimatedMorph();
49
50// member functions
51public:
52 const std::string& getName() const {return m_name;}
53 void setName(const std::string& name) {m_name = name;}
54 bool addCoreTrack(CalCoreMorphTrack *pCoreTrack);
55 bool create();
56 void destroy();
57 CalCoreMorphTrack *getCoreTrack(const unsigned int &trackId);
58 float getDuration() const;
59 std::list<CalCoreMorphTrack>& getListCoreTrack();
60 const std::list<CalCoreMorphTrack>& getListCoreTrack() const;
61 void setDuration(float duration);
62 void scale(float factor);
63 void removeZeroScaleTracks();
64 static int getNumCoreAnimatedMorphs();
65};
66
67#endif
68
69//****************************************************************************//
The core animatedMorph class.
Definition coreanimatedmorph.h:37
Definition coremorphtrack.h:39

Generated by The Cal3D Team with Doxygen 1.10.0