1 |
#ifndef __Spline_H__
|
2 |
#define __Spline_H__
|
3 |
|
4 |
class Spline
|
5 |
{
|
6 |
public:
|
7 |
Spline(int iNumberOfSplines);
|
8 |
~Spline();
|
9 |
|
10 |
void update();
|
11 |
void read(float *buffer);
|
12 |
float *getSplineChannel(int index);
|
13 |
void increaseTime(float time);
|
14 |
|
15 |
|
16 |
private:
|
17 |
void hermite(float t,float *h1,float *h2,float *h3,float *h4);
|
18 |
float calculateSpline(float t1, float t2, float t3, float t4, float p1, float p2 , float p3 , float p4, float bi1, float bi2, float co1, float co2, float te1, float te2);
|
19 |
float div( float a, float b);
|
20 |
void insertdata( int p, int p2);
|
21 |
void insertdata2( int p, int p2, int t, int t2);
|
22 |
void insertdata3( int p, int t, int t2);
|
23 |
float sceneFrame;
|
24 |
int numberOfKeys;
|
25 |
int sNumberOfKeys;
|
26 |
int keyP1;
|
27 |
int keyP2;
|
28 |
int keyP3;
|
29 |
int keyP4;
|
30 |
int mKeyP1;
|
31 |
int mKeyP2;
|
32 |
int mKeyP3;
|
33 |
int mKeyP4;
|
34 |
bool prev;
|
35 |
bool next;
|
36 |
float *motionTension;
|
37 |
float *motionContinuity;
|
38 |
float *motionBias;
|
39 |
int *motionValuesPointers;
|
40 |
int *motionSplinePointers;
|
41 |
float *motionFrames;
|
42 |
int *motionLinear;
|
43 |
int numberOfSplines;
|
44 |
|
45 |
};
|
46 |
|
47 |
#endif
|