My Project
rayKey.h
1 #ifndef KEY_FILE_INCLUDED
2 #define KEY_FILE_INCLUDED
3 #include <Util/parameterSamples.h>
4 
5 
7 class RayKeyFile{
8  char** pNames;
9  int sNum,pNum;
10  class Matrix4D* keyTransforms;
11 public:
13  float duration;
14  RayKeyFile(void);
15  ~RayKeyFile(void);
16 
18  int read(char* fileName);
20  int write(char* fileName);
23  class Matrix4D* operator[] (int i);
25  const char* name(int i);
27  int index(char* name);
29  int samples(void);
31  int parameters(void);
32 };
33 
35 class RayKeyData{
36  int pNum;
37  VParameterSamples** sampleData;
38  int type;
39  void clear(void);
40 public:
41  const static int MATRIX;
42  const static int EULER_AND_TRANSLATION;
43  const static int CLOSEST_R_AND_TRANSLATION;
44  const static int R_LOGARITHM_AND_TRANSLATION;
45  const static int QUATERNION_AND_TRANSLATION;
46 
47  RayKeyData(void);
48  ~RayKeyData(void);
49 
52  int set(RayKeyFile& keyFile,int type=MATRIX);
54  void setCurrentValue(double t,int curveType=LINEAR);
55 
57  class ParametrizedRayGroup* getParametrizedRayGroup(int i);
58 
59 };
60 #endif // KEY_FILE_INCLUDED
int index(char *name)
Definition: rayKey.cpp:29
Definition: rayGroup.h:104
const char * name(int i)
Definition: rayKey.cpp:26
Definition: rayKey.h:35
int read(char *fileName)
Definition: rayKey.cpp:34
int parameters(void)
Definition: rayKey.cpp:28
Definition: parameterSamples.h:10
Definition: geometry.h:312
Definition: rayKey.h:7
int samples(void)
Definition: rayKey.cpp:27
int write(char *fileName)
Definition: rayKey.cpp:114
float duration
Definition: rayKey.h:13
class Matrix4D * operator[](int i)
Definition: rayKey.cpp:25