00001 #pragma once 00002 00003 #include "NiBVHName.h" 00004 00005 00006 // 00007 namespace jbxwl { 00008 00009 using namespace jbxl; 00010 00011 00012 typedef struct 00013 { 00014 int format; 00015 int fps; 00016 int divtm; 00017 float scale; 00018 BOOL recalc; 00019 // 00020 } BVHSaveParam; 00021 00022 00023 00024 // 00025 class CNiBVHTool : public CBaseFrameTool 00026 { 00027 public: 00028 CNiBVHTool(void) { init();} 00029 virtual ~CNiBVHTool(void); 00030 00031 public: 00032 void free_data(void); 00033 void clear_data(void); 00034 00035 // 00036 virtual NiJointData* getJointsData(int frmnum, int fps); // 補間データ 00037 00038 virtual int getPlayBackFPS(void); 00039 00040 virtual BOOL readFile(FILE* fp); 00041 virtual BOOL writeFile(FILE* fp); 00042 00043 private: 00044 // 00045 CBVHTool* bvh_tool; 00046 tList* bvh_name_list; 00047 00048 private: 00049 void init(void); 00050 }; 00051 00052 00053 } 00054