JunkBox_Win_Lib 1.5.3
|
#include <NiJTextTool.h>
Public Member Functions | |
CNiJTextTool (void) | |
virtual | ~CNiJTextTool (void) |
void | free_data (void) |
void | clear_data (void) |
virtual NiJointData * | getJointsData (int frmnum, int fps) |
virtual BOOL | readFile (FILE *fp) |
void | writeHeader (FILE *fp) |
void | writeCurrentData (FILE *fp, unsigned short msec) |
void | setPosVect (Vector< double > *pos, NiSDK_Lib lib, BOOL mirror) |
void | setRotQuat (Quaternion< double > *rot, NiSDK_Lib lib, BOOL mirror) |
void | setJntAngl (double *agl, NiSDK_Lib lib, BOOL mirror) |
![]() | |
CBaseFrameTool (void) | |
virtual | ~CBaseFrameTool (void) |
virtual unsigned int | getFramesNumber (void) |
virtual int | getJointsNumber (void) |
virtual NiFrameData * | getFramesData (void) |
virtual int | getPlayBackTime (void) |
virtual int | getPlayBackFPS (void) |
virtual BOOL | writeFile (FILE *fp) |
Public Attributes | |
double * | jntAngl |
Additional Inherited Members | |
![]() | |
void | init_data (void) |
void | free_data (void) |
void | clear_data (void) |
void | clearJointsData (int jnum) |
void | clearVectorData (int jnum) |
![]() | |
unsigned int | frames_num |
int | joints_num |
int | start_time |
int | stop_time |
int | exec_time |
NiFrameData * | framesData |
NiJointData * | jointsData |
Vector< double > * | posVect |
Quaternion< double > * | rotQuat |
Definition at line 15 of file NiJTextTool.h.
CNiJTextTool | ( | void | ) |
Definition at line 13 of file NiJTextTool.cpp.
References CNiJTextTool::jntAngl, NI_TOTAL_JOINT_NUM, CBaseFrameTool::posVect, and CBaseFrameTool::rotQuat.
|
virtual |
Definition at line 22 of file NiJTextTool.cpp.
References CNiJTextTool::free_data().
void clear_data | ( | void | ) |
Definition at line 40 of file NiJTextTool.cpp.
References CNiJTextTool::free_data().
Referenced by CNiFileTool::clearFrameData(), and CNiJTextTool::readFile().
void free_data | ( | void | ) |
Definition at line 31 of file NiJTextTool.cpp.
References CBaseFrameTool::free_data(), and CNiJTextTool::jntAngl.
Referenced by CNiJTextTool::clear_data(), and CNiJTextTool::~CNiJTextTool().
|
virtual |
Reimplemented from CBaseFrameTool.
Definition at line 307 of file NiJTextTool.cpp.
References CBaseFrameTool::clearJointsData(), CBaseFrameTool::exec_time, CBaseFrameTool::frames_num, CBaseFrameTool::framesData, NiJointData::index, NiFrameData::jdat, NiJointData::joint, CBaseFrameTool::joints_num, CBaseFrameTool::jointsData, NiFrameData::msec, NiJointData::quat, CBaseFrameTool::start_time, and NiJointData::vect.
|
virtual |
Reimplemented from CBaseFrameTool.
Definition at line 50 of file NiJTextTool.cpp.
References NiJointData::angl, CNiJTextTool::clear_data(), CBaseFrameTool::clearJointsData(), CBaseFrameTool::clearVectorData(), CBaseFrameTool::exec_time, CBaseFrameTool::frames_num, CBaseFrameTool::framesData, NiFrameData::frmn, NiJointData::index, NiFrameData::jdat, NiJointData::joint, CBaseFrameTool::joints_num, CBaseFrameTool::jointsData, jbxwl::makeFramesData(), NiFrameData::msec, NI_JTXT_FILE_ID, NI_TOTAL_JOINT_NUM, jbxwl::NiJointNum(), CBaseFrameTool::posVect, NiJointData::quat, CBaseFrameTool::rotQuat, CBaseFrameTool::start_time, CBaseFrameTool::stop_time, and NiJointData::vect.
Referenced by CNiFileTool::readJTextFile().
void setJntAngl | ( | double * | agl, |
NiSDK_Lib | lib, | ||
BOOL | mirror ) |
Definition at line 279 of file NiJTextTool.cpp.
References CNiJTextTool::jntAngl, Ni2SDKJointNum, NI_TOTAL_JOINT_NUM, and jbxwl::NiSDKMirrorJointNum().
Referenced by CNiFileTool::writeJTextData().
void setPosVect | ( | Vector< double > * | pos, |
NiSDK_Lib | lib, | ||
BOOL | mirror ) |
Definition at line 226 of file NiJTextTool.cpp.
References Ni2SDKJointNum, NI_TOTAL_JOINT_NUM, jbxwl::NiSDKMirrorJointNum(), and CBaseFrameTool::posVect.
Referenced by CNiFileTool::writeJTextData().
void setRotQuat | ( | Quaternion< double > * | rot, |
NiSDK_Lib | lib, | ||
BOOL | mirror ) |
Definition at line 251 of file NiJTextTool.cpp.
References Ni2SDKJointNum, NI_TOTAL_JOINT_NUM, jbxwl::NiSDKMirrorJointNum(), and CBaseFrameTool::rotQuat.
Referenced by CNiFileTool::writeJTextData().
void writeCurrentData | ( | FILE * | fp, |
unsigned short | msec ) |
Definition at line 204 of file NiJTextTool.cpp.
References CNiJTextTool::jntAngl, NI_TOTAL_JOINT_NUM, jbxwl::NiJointName(), CBaseFrameTool::posVect, and CBaseFrameTool::rotQuat.
Referenced by CNiFileTool::writeJTextData().
|
inline |
Definition at line 34 of file NiJTextTool.h.
References NI_JTXT_FILE_ID.
Referenced by CNiFileTool::write_header().
double* jntAngl |
Definition at line 25 of file NiJTextTool.h.
Referenced by CNiJTextTool::CNiJTextTool(), CNiJTextTool::free_data(), CNiJTextTool::setJntAngl(), and CNiJTextTool::writeCurrentData().