source: NonGTP/FCollada/FCDocument/FCDAnimationClip.h @ 964

Revision 964, 1.2 KB checked in by igarcia, 18 years ago (diff)
Line 
1/*
2        Copyright (C) 2005-2006 Feeling Software Inc.
3        MIT License: http://www.opensource.org/licenses/mit-license.php
4*/
5
6#ifndef _FCD_ANIMATION_CLIP_H_
7#define _FCD_ANIMATION_CLIP_H_
8
9class FCDocument;
10class FCDAnimationCurve;
11
12typedef vector<FCDAnimationCurve*> FCDAnimationCurveList;
13
14#include "FCDocument/FCDEntity.h"
15#include "FCDocument/FCDObject.h"
16
17class FCOLLADA_EXPORT FCDAnimationClip : public FCDEntity
18{
19private:
20        DeclareObjectType;
21        FCDAnimationCurveList curves;
22        float start, end;
23
24public:
25        FCDAnimationClip(FCDocument* document);
26        virtual ~FCDAnimationClip();
27
28        FCDAnimationClip* Clone();
29
30        // FCDEntity overrides
31        virtual Type GetType() const { return ANIMATION_CLIP; }
32
33        // Accessors
34        FCDAnimationCurveList& GetClipCurves() { return curves; }
35        const FCDAnimationCurveList& GetClipCurves() const { return curves; }
36        float GetStart() const { return start; }
37        float GetEnd() const { return end; }
38
39        // Load a Collada animation node from the XML document
40        virtual FUStatus LoadFromXML(xmlNode* clipNode);
41
42        // Write out the COLLADA animations to the document
43        virtual xmlNode* WriteToXML(xmlNode* parentNode) const;
44};
45
46#endif // _FCD_ANIMATION_CLIP_H_
47
Note: See TracBrowser for help on using the repository browser.