Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
3DKeyCurve.h
Go to the documentation of this file.
1//! @file 3DKeyCurve.h
2//! @brief The file defines C3DKeyCurve, C3DTCBCurve which handles interpolation curve between two keyframes.
3//!
4//////////////////////////////////////////////////////////////////////
5
6#ifndef C3DKEYCURVE_CLASS_H
7#define C3DKEYCURVE_CLASS_H
8
9#ifdef _MSC_VER
10#pragma once
11#endif // _MSC_VER
12
13#include "CustomData.h"
14
15BEGIN_MOOTOOLS_NAMESPACE
16
17//! @class C3DKeyCurve
18//! @brief C3DKeyCurve is the base class that determines the transition curve between a given keyframe and the next keyframe which has the same class.
19//! @details The derived class can be determined using GetClassID method.
20//! There is currently one kind of derived class which is C3DTCBCurve, which has the KEYCURVE_TCB class id.
21class DLL_3DFUNCTION C3DKeyCurve
22{
23public:
24 C3DKeyCurve(void);
25 virtual ~C3DKeyCurve(void);
26
27protected:
28 int classid;
29
30public:
31 enum
32 {
33 KEYCURVE_NULLID = 0,
34 KEYCURVE_TCB = MAKE_CUSTOM_ID('T', 'C', 'B', ' '),
35 };
36
37 unsigned int GetClassID() const;
38
39 static C3DKeyCurve *CreateCurve(unsigned int classid);
40 C3DKeyCurve *Copy() const;
41
42 virtual void Serialize(CXArchive& ar);
43
44 virtual bool operator==(const C3DKeyCurve& key) const;
45 virtual bool operator=(const C3DKeyCurve& key);
46};
47
48//! @class C3DTCBCurve
49//! @brief C3DTCBCurve class handles a transition between two keyframes based on Tension, Continuity and Bias parameters.
50//! These values can be directly retrieved from the public members of the class.
51class DLL_3DFUNCTION C3DTCBCurve : public C3DKeyCurve
52{
53public:
54 float tension;
55 float continuity;
56 float bias;
57 float easeIn;
58 float easeOut;
59
60public:
62
63 virtual void Serialize(CXArchive& ar);
64
65 virtual bool operator=(const C3DKeyCurve& curve);
66};
67
68END_MOOTOOLS_NAMESPACE
69
70#endif // C3DKEYCURVE_CLASS_H
CCustomData class is a handly class for storing any kind of data.
C3DKeyCurve is the base class that determines the transition curve between a given keyframe and the n...
Definition 3DKeyCurve.h:22
C3DTCBCurve class handles a transition between two keyframes based on Tension, Continuity and Bias pa...
Definition 3DKeyCurve.h:52
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
Definition XArchive.h:17