Repository navigation
Expand file tree
/
Copy pathAnimationClip.h
More file actions
60 lines (45 loc) · 1.83 KB
/
Copy pathAnimationClip.h
File metadata and controls
60 lines (45 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//#ifndef ANIMATIONCLIP_H
//#define ANIMATIONCLIP_H
//#include <QHash>
//#include <QVector>
//#include <QString>
//#include "BasicTokenizer.h"
//#include "Channel.h"
//#include "Keyframe.h"
//#include "Pose.h"
//class AnimationClip
//{
//public:
// AnimationClip();
// virtual ~AnimationClip();
// virtual bool loadFromFile(QString const& filename);
// QString const& name() const;
// void setName(QString const& name);
// float startTime() const;
// float endTime() const;
// QVector<Channel*> const& channels() const;
// void setChannels(QVector<Channel*> const& channels);
// Channel* channel(int idx) const;
// void evaluate(float t, Pose& pose);
// void saveToFile(QString const& filename);
//private:
// typedef bool (AnimationClip::*loadFunction)(BasicTokenizer&);
// void _preCompute();
// bool _loadAnimation(BasicTokenizer& tokenizer);
// bool _loadRange(BasicTokenizer& tokenizer);
// bool _loadNumChannels(BasicTokenizer& tokenizer);
// bool _loadChannel(BasicTokenizer& tokenizer);
// bool _loadExtrapolate(BasicTokenizer& tokenizer);
// bool _loadKeys(BasicTokenizer& tokenizer);
// int _currentParsingChannel;
// float _startTime;
// float _endTime;
// QVector<Channel*> _channels;
// QString _name;
// static QHash<QString, loadFunction> _loadingFunctions;
// static QHash<QString, Channel::ExtrapolateType> _channelExtrapolationTypes;
// static QHash<QString, Keyframe::TangentType> _keyTangentTypes;
// static QHash<Channel::ExtrapolateType, QString> _channelExtrapolationNames;
// static QHash<Keyframe::TangentType, QString> _keyTangentNames;
//};
//#endif // ANIMATIONCLIP_H