00001 #pragma once
00002
00003 #include "NiJointsTool.h"
00004
00005
00006 namespace jbxwl {
00007
00008 using namespace jbxl;
00009
00010
00012
00013
00014
00015 class CNiJTextTool : public CBaseFrameTool
00016 {
00017 public:
00018 CNiJTextTool(void);
00019 virtual ~CNiJTextTool(void);
00020
00021 public:
00022 void free_data(void);
00023 void clear_data(void);
00024
00025 double* jntAngl;
00026
00027 public:
00028 virtual NiJointData* getJointsData(int frmnum, int fps);
00029
00030 virtual BOOL readFile(FILE* fp);
00031
00032
00033 public:
00034 void writeHeader(FILE* fp) { if (fp!=NULL) fprintf(fp, "%s\n", NI_JTXT_FILE_ID);}
00035 void writeCurrentData(FILE* fp, unsigned short msec);
00036
00037 void setPosVect(Vector<double>* pos, NiSDK_Lib lib, BOOL mirror);
00038 void setRotQuat(Quaternion<double>* rot, NiSDK_Lib lib, BOOL mirror);
00039 void setJntAngl(double* agl, NiSDK_Lib lib, BOOL mirror);
00040 };
00041
00042
00043 }
00044