| 
    JunkBox_Lib++ (for Windows) 1.10.1
    
   | 
 

Go to the source code of this file.
Functions | |
| BVHData * | new_BVHData (void) | 
| void | del_BVHData (BVHData **bvh) | 
| void | init_BVHData (BVHData *bvh) | 
| void | clear_BVHData (BVHData *bvh) | 
| tList * | bvh_get_seq_data (FILE *fp) | 
| tList * | bvh_find_line (FILE *fp, const char *key) | 
| int | bvh_count_channels (tTree *pp) | 
| int | bvh_count_joints (tTree *pp) | 
| void | bvh_get_offset (tTree *pp, vector **vect) | 
| void | bvh_get_parameter (BVHData *bvh) | 
| void | _bvh_recsv_get_parameter (tTree *pp, BVHData *bvh) | 
| void | _bvh_space_format (FILE *fp, int depth) | 
| BVHData * | bvh_read_file (const char *fn) | 
| int | bvh_write_file (const char *fn, BVHData *bvh) | 
| int | bvh_print_data (FILE *fp, BVHData *bvh) | 
| int | bvh_print_hierarchy (FILE *fp, BVHData *bvh) | 
| int | _bvh_recsv_print_hierarchy (FILE *fp, tTree *tree) | 
| int | bvh_print_motion (FILE *fp, BVHData *bvh) | 
| BVHData * | bvh_parse_data (FILE *fp) | 
| void | bvh_parse_motion (BVHData *bvh, FILE *fp) | 
| tTree * | bvh_parse_hierarchy (tTree *tree, FILE *fp) | 
| void _bvh_recsv_get_parameter | ( | tTree * | pp, | 
| BVHData * | bvh ) | 
Definition at line 216 of file bvh_tool.cpp.
References _bvh_recsv_get_parameter().
Referenced by _bvh_recsv_get_parameter(), and bvh_get_parameter().


| int _bvh_recsv_print_hierarchy | ( | FILE * | fp, | 
| tTree * | tree ) | 
Definition at line 320 of file bvh_tool.cpp.
References _bvh_recsv_print_hierarchy(), _bvh_space_format(), BVH_NODE_END, BVH_NODE_JOINT, BVH_NODE_ROOT, BVH_STR_CHANNELS, BVH_STR_END, BVH_STR_JOINT, BVH_STR_OFFSET, BVH_STR_PX, BVH_STR_PY, BVH_STR_PZ, BVH_STR_ROOT, BVH_STR_RX, BVH_STR_RY, BVH_STR_RZ, vector::x, vector::y, and vector::z.
Referenced by _bvh_recsv_print_hierarchy(), and bvh_print_hierarchy().


| void _bvh_space_format | ( | FILE * | fp, | 
| int | depth ) | 
Definition at line 234 of file bvh_tool.cpp.
Referenced by _bvh_recsv_print_hierarchy().

| int bvh_count_channels | ( | tTree * | pp | ) | 
Definition at line 138 of file bvh_tool.cpp.
References bvh_count_channels().
Referenced by bvh_count_channels(), and CBVHTool::setHierarchy().


| int bvh_count_joints | ( | tTree * | pp | ) | 
Definition at line 155 of file bvh_tool.cpp.
References bvh_count_joints().
Referenced by bvh_count_joints(), and CBVHTool::setHierarchy().


| tList * bvh_find_line | ( | FILE * | fp, | 
| const char * | key ) | 
tList* bvh_find_line(FILE* fp, const char* key)
fp のファイルから keyで始まる行を探し出し,その行に含まれる項目を空白を区切りにしてリストに格納する.
| fp | ファイルポインタ | 
| key | 検索する文字列. | 
Definition at line 121 of file bvh_tool.cpp.
References bvh_get_seq_data(), del_tList(), and strcasecmp.
Referenced by bvh_parse_data().


void bvh_get_offset(tTree* pp, vector** vect)
OFFSETの値を順に取り出して *vect[] に格納する.
| pp | Hierarchy データへのポインタ. | 
| vect | OFFSETを格納する vect[]へのポインタ.vect[]は予め領域を確保しておく. | 
Definition at line 180 of file bvh_tool.cpp.
References bvh_get_offset().
Referenced by bvh_get_offset(), and bvh_parse_data().


| void bvh_get_parameter | ( | BVHData * | bvh | ) | 
void bvh_get_parameter(BVHData* bvh)
hierarchy データから joint_num と channelsを設定する.
Definition at line 205 of file bvh_tool.cpp.
References _bvh_recsv_get_parameter().
Referenced by bvh_parse_data().


| tList * bvh_get_seq_data | ( | FILE * | fp | ) | 
tList* bvh_get_seq_data(FILE* fp)
fp の一行分のデータに含まれる項目を空白を区切りにしてリストに格納する.
| fp | 読み出しファイルの識別子 | 
Definition at line 87 of file bvh_tool.cpp.
References awk_tList(), LBUF, pack_char, replace_str(), and UNUSED.
Referenced by bvh_find_line(), bvh_parse_hierarchy(), and bvh_parse_motion().


| BVHData * bvh_parse_data | ( | FILE * | fp | ) | 
Definition at line 418 of file bvh_tool.cpp.
References bvh_find_line(), bvh_get_offset(), bvh_get_parameter(), bvh_parse_hierarchy(), bvh_parse_motion(), BVH_STR_FRAME, BVH_STR_FRAMES, BVH_STR_HIERARCHY, BVH_STR_MOTION, BVH_STR_TIME, del_BVHData(), del_tList(), JBXL_ERROR, JBXL_NORMAL, new_BVHData(), and strcasecmp.
Referenced by bvh_read_file().


Definition at line 522 of file bvh_tool.cpp.
References add_tTree_node_bystr(), bvh_get_seq_data(), BVH_NODE_END, BVH_NODE_JOINT, BVH_NODE_ROOT, bvh_parse_hierarchy(), BVH_STR_CHANNELS, BVH_STR_END, BVH_STR_JOINT, BVH_STR_OFFSET, BVH_STR_PX, BVH_STR_PY, BVH_STR_PZ, BVH_STR_ROOT, BVH_STR_RX, BVH_STR_RY, BVH_STR_RZ, cat_s2Buffer, del_tList(), FALSE, make_Buffer(), strcasecmp, TRUE, vector::x, vector::y, and vector::z.
Referenced by bvh_parse_data(), and bvh_parse_hierarchy().


| void bvh_parse_motion | ( | BVHData * | bvh, | 
| FILE * | fp ) | 
Definition at line 480 of file bvh_tool.cpp.
References bvh_get_seq_data(), and del_tList().
Referenced by bvh_parse_data().


| int bvh_print_data | ( | FILE * | fp, | 
| BVHData * | bvh ) | 
Definition at line 289 of file bvh_tool.cpp.
References bvh_print_hierarchy(), bvh_print_motion(), JBXL_ARGS_ERROR, JBXL_BVH_HIERARCHY_ERROR, JBXL_BVH_MOTION_ERROR, and JBXL_FILE_OPEN_ERROR.
Referenced by bvh_write_file(), and CBVHTool::printBVH().


| int bvh_print_hierarchy | ( | FILE * | fp, | 
| BVHData * | bvh ) | 
Definition at line 307 of file bvh_tool.cpp.
References _bvh_recsv_print_hierarchy(), BVH_STR_HIERARCHY, and JBXL_ARGS_ERROR.
Referenced by bvh_print_data().


| int bvh_print_motion | ( | FILE * | fp, | 
| BVHData * | bvh ) | 
Definition at line 389 of file bvh_tool.cpp.
References BVH_STR_FRAME_TIME, BVH_STR_FRAMES, BVH_STR_MOTION, and JBXL_ARGS_ERROR.
Referenced by bvh_print_data().

| BVHData * bvh_read_file | ( | const char * | fn | ) | 
BVHData* bvh_read_file(const char* fn)
Definition at line 251 of file bvh_tool.cpp.
References bvh_parse_data().

| int bvh_write_file | ( | const char * | fn, | 
| BVHData * | bvh ) | 
int bvh_write_file(const char* fn, BVHData* bvh)
| 0 | 正常終了 | 
| JBXL_ARGS_ERROR | 不正な入力データ | 
| JBXL_FILE_OPEN_ERROR | ファイルのオープン失敗 | 
| JBXL_BVH_HIERARCHY_ERROR | HIERARCHYデータの書き込み失敗 | 
| JBXL_BVH_MOTION_ERROR | MOTIONデータの書き込み失敗 | 
Definition at line 274 of file bvh_tool.cpp.
References bvh_print_data(), JBXL_ARGS_ERROR, and JBXL_FILE_OPEN_ERROR.
Referenced by CBVHTool::writeFile(), and CBVHTool::writeMultiFile().


| void clear_BVHData | ( | BVHData * | bvh | ) | 
Definition at line 51 of file bvh_tool.cpp.
References del_tTree(), and init_BVHData().
Referenced by del_BVHData().


| void del_BVHData | ( | BVHData ** | bvh | ) | 
Definition at line 28 of file bvh_tool.cpp.
References clear_BVHData().
Referenced by bvh_parse_data(), and CBVHTool::readBVH().


| void init_BVHData | ( | BVHData * | bvh | ) | 
Definition at line 40 of file bvh_tool.cpp.
References JBXL_NORMAL.
Referenced by clear_BVHData(), and new_BVHData().

| BVHData * new_BVHData | ( | void | ) | 
Definition at line 15 of file bvh_tool.cpp.
References init_BVHData().
Referenced by bvh_parse_data().

