WinNiLib/NiJointsTool.h File Reference

#include "NiToolWin.h"
#include "Vector.h"
#include "Rotation.h"
#include "RingBuffer.h"
Include dependency graph for NiJointsTool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NiJointData
struct  NiFrameData
class  CNiJoints
class  CBaseFrameTool

Namespaces

namespace  jbxwl

Defines

#define NI_JTXT_FILE_ID   "NI_JOINTS_TEXT_FILE"
#define NI_NORML_JOINT_NUM   33
#define NI_SPECL_JOINT_NUM   4
#define NI_TOTAL_JOINT_NUM   37
#define NI_OPENNI_JOINT_NUM   25
#define NI_OPENNI2_JOINT_NUM   16
#define NI_KINECT_JOINT_NUM   20
#define NI_SDK_IS_TRACKING   0x0100
#define NI_SDK_PROFILE_UPPER   0x1000
#define NI_SDK_AVATAR_TRAILER   0x2000
#define NI_PROFILE_UPPER   3
#define NI_PELVIS   0
#define NI_WAIST   1
#define NI_TORSO   2
#define NI_CHEST   3
#define NI_NECK   4
#define NI_HEAD   5
#define NI_SKULL   6
#define NI_L_EYE   7
#define NI_R_EYE   8
#define NI_L_BUST   9
#define NI_R_BUST   10
#define NI_L_COLLAR   11
#define NI_L_SHLDR   12
#define NI_L_ELBOW   13
#define NI_L_WRIST   14
#define NI_L_HAND   15
#define NI_L_FNGRTIP   16
#define NI_R_COLLAR   17
#define NI_R_SHLDR   18
#define NI_R_ELBOW   19
#define NI_R_WRIST   20
#define NI_R_HAND   21
#define NI_R_FNGRTIP   22
#define NI_L_HIP   23
#define NI_L_KNEE   24
#define NI_L_ANKLE   25
#define NI_L_FOOT   26
#define NI_L_TOE   27
#define NI_R_HIP   28
#define NI_R_KNEE   29
#define NI_R_ANKLE   30
#define NI_R_FOOT   31
#define NI_R_TOE   32
#define NI_L_FINGER   33
#define NI_R_FINGER   34
#define NI_FACE   35
#define NI_AVATAR   36
#define NiMirrorJointNum(j)   NiSDKMirrorJointNum((j), NiSDK_None)
#define Ni2SDKJointNum(j, l)   Ni2SDKPosJointNum((j), (l))

Functions

std::string NiJointName (int n)
int NiJointNum (char *name)
std::string NiSDK2JointName (int joint, NiSDK_Lib lib)
int NiSDKMirrorJointNum (int joint, NiSDK_Lib lib)
int JointName2NiSDK (char *jname, NiSDK_Lib lib)
int Ni2SDKPosJointNum (int joint, NiSDK_Lib lib)
int Ni2SDKRotJointNum (int joint, NiSDK_Lib lib)
void NiSetKinectJointNums (void)
void NiSetOpenNIJointNums (void)
void NiSetOpenNI2JointNums (void)
NiFrameDatamakeFramesData (int frame, int joint_num, int *frame_num)
void freeFramesData (NiFrameData *frmdata, int frm_num)
void NiInitRBoundJointsRotation (void)
void NiCorrectJointsRotation (Quaternion< double > *quat, NiSDK_Lib lib)
void NiCorrectJointEuler (int joint, Quaternion< double > *quat, RBound< double > rb)
void NiGetJointEuler (int joint, Quaternion< double > *quat, Vector< double > *vect)
void NiSetJointEuler (int joint, Vector< double > *vect, Quaternion< double > *quat)

Variables

int NI_SDK_PELVIS
int NI_SDK_TORSO
int NI_SDK_NECK
int NI_SDK_HEAD
int NI_SDK_L_EYE
int NI_SDK_R_EYE
int NI_SDK_L_BUST
int NI_SDK_R_BUST
int NI_SDK_L_SHLDR
int NI_SDK_L_ELBOW
int NI_SDK_L_WRIST
int NI_SDK_L_HAND
int NI_SDK_R_SHLDR
int NI_SDK_R_ELBOW
int NI_SDK_R_WRIST
int NI_SDK_R_HAND
int NI_SDK_L_HIP
int NI_SDK_L_KNEE
int NI_SDK_L_ANKLE
int NI_SDK_L_FOOT
int NI_SDK_R_HIP
int NI_SDK_R_KNEE
int NI_SDK_R_ANKLE
int NI_SDK_R_FOOT
int NI_SDK_L_FINGER
int NI_SDK_R_FINGER
int NI_SDK_FACE
int NI_SDK_AVATAR
jbxl::RBound< double > RBound_NI_TORSO
jbxl::RBound< double > RBound_NI_CHEST
jbxl::RBound< double > RBound_NI_NECK
jbxl::RBound< double > RBound_NI_HEAD
jbxl::RBound< double > RBound_NI_L_COLLAR
jbxl::RBound< double > RBound_NI_R_COLLAR
jbxl::RBound< double > RBound_NI_L_SHLDR
jbxl::RBound< double > RBound_NI_R_SHLDR
jbxl::RBound< double > RBound_NI_L_ELBOW
jbxl::RBound< double > RBound_NI_R_ELBOW
jbxl::RBound< double > RBound_NI_L_WRIST
jbxl::RBound< double > RBound_NI_R_WRIST
jbxl::RBound< double > RBound_NI_L_HAND
jbxl::RBound< double > RBound_NI_R_HAND
jbxl::RBound< double > RBound_NI_L_HIP
jbxl::RBound< double > RBound_NI_R_HIP
jbxl::RBound< double > RBound_NI_L_KNEE
jbxl::RBound< double > RBound_NI_R_KNEE
jbxl::RBound< double > RBound_NI_L_ANKLE
jbxl::RBound< double > RBound_NI_R_ANKLE
jbxl::RBound< double > RBound_NI_L_FOOT
jbxl::RBound< double > RBound_NI_R_FOOT

Define Documentation

#define Ni2SDKJointNum ( j,
 )     Ni2SDKPosJointNum((j), (l))
#define NI_AVATAR   36

Definition at line 76 of file NiJointsTool.h.

#define NI_CHEST   3

Definition at line 35 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_FACE   35

Definition at line 74 of file NiJointsTool.h.

#define NI_HEAD   5

Definition at line 37 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_JTXT_FILE_ID   "NI_JOINTS_TEXT_FILE"

Definition at line 9 of file NiJointsTool.h.

Referenced by CNiJTextTool::readFile(), and CNiJTextTool::writeHeader().

#define NI_KINECT_JOINT_NUM   20

Definition at line 19 of file NiJointsTool.h.

#define NI_L_ANKLE   25
#define NI_L_BUST   9

Definition at line 42 of file NiJointsTool.h.

#define NI_L_COLLAR   11
#define NI_L_ELBOW   13
#define NI_L_EYE   7

Definition at line 40 of file NiJointsTool.h.

Referenced by jbxwl::setBVHJointName().

#define NI_L_FINGER   33

Definition at line 72 of file NiJointsTool.h.

#define NI_L_FNGRTIP   16

Definition at line 50 of file NiJointsTool.h.

#define NI_L_FOOT   26

Definition at line 62 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_L_HAND   15

Definition at line 49 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation().

#define NI_L_HIP   23

Definition at line 59 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_L_KNEE   24

Definition at line 60 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_L_SHLDR   12
#define NI_L_TOE   27

Definition at line 63 of file NiJointsTool.h.

Referenced by jbxwl::setBVHJointName().

#define NI_L_WRIST   14
#define NI_NECK   4

Definition at line 36 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_NORML_JOINT_NUM   33

Definition at line 12 of file NiJointsTool.h.

Referenced by jbxwl::addBVHJointName(), and jbxwl::setBVHJointName().

#define NI_OPENNI2_JOINT_NUM   16

Definition at line 18 of file NiJointsTool.h.

#define NI_OPENNI_JOINT_NUM   25

Definition at line 17 of file NiJointsTool.h.

#define NI_PELVIS   0

Definition at line 32 of file NiJointsTool.h.

Referenced by jbxwl::setBVHJointName().

#define NI_PROFILE_UPPER   3

Definition at line 26 of file NiJointsTool.h.

#define NI_R_ANKLE   30
#define NI_R_BUST   10

Definition at line 43 of file NiJointsTool.h.

#define NI_R_COLLAR   17
#define NI_R_ELBOW   19
#define NI_R_EYE   8

Definition at line 41 of file NiJointsTool.h.

Referenced by jbxwl::setBVHJointName().

#define NI_R_FINGER   34

Definition at line 73 of file NiJointsTool.h.

#define NI_R_FNGRTIP   22

Definition at line 57 of file NiJointsTool.h.

#define NI_R_FOOT   31

Definition at line 68 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_R_HAND   21

Definition at line 56 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation().

#define NI_R_HIP   28

Definition at line 65 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_R_KNEE   29

Definition at line 66 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_R_SHLDR   18
#define NI_R_TOE   32

Definition at line 69 of file NiJointsTool.h.

Referenced by jbxwl::setBVHJointName().

#define NI_R_WRIST   20
#define NI_SDK_AVATAR_TRAILER   0x2000

Definition at line 24 of file NiJointsTool.h.

#define NI_SDK_IS_TRACKING   0x0100

Definition at line 22 of file NiJointsTool.h.

#define NI_SDK_PROFILE_UPPER   0x1000

Definition at line 23 of file NiJointsTool.h.

#define NI_SKULL   6

Definition at line 38 of file NiJointsTool.h.

Referenced by jbxwl::setBVHJointName().

#define NI_SPECL_JOINT_NUM   4

Definition at line 13 of file NiJointsTool.h.

#define NI_TORSO   2

Definition at line 34 of file NiJointsTool.h.

Referenced by jbxwl::NiCorrectJointsRotation(), and jbxwl::setBVHJointName().

#define NI_TOTAL_JOINT_NUM   37
#define NI_WAIST   1

Definition at line 33 of file NiJointsTool.h.

#define NiMirrorJointNum (  )     NiSDKMirrorJointNum((j), NiSDK_None)

Definition at line 193 of file NiJointsTool.h.

Referenced by CNiFileTool::getJointsDataSeq().


Variable Documentation

jbxl::RBound<double> RBound_NI_CHEST
jbxl::RBound<double> RBound_NI_HEAD
jbxl::RBound<double> RBound_NI_L_ANKLE
jbxl::RBound<double> RBound_NI_L_COLLAR
jbxl::RBound<double> RBound_NI_L_ELBOW
jbxl::RBound<double> RBound_NI_L_FOOT
jbxl::RBound<double> RBound_NI_L_HAND
jbxl::RBound<double> RBound_NI_L_HIP
jbxl::RBound<double> RBound_NI_L_KNEE
jbxl::RBound<double> RBound_NI_L_SHLDR
jbxl::RBound<double> RBound_NI_L_WRIST
jbxl::RBound<double> RBound_NI_NECK
jbxl::RBound<double> RBound_NI_R_ANKLE
jbxl::RBound<double> RBound_NI_R_COLLAR
jbxl::RBound<double> RBound_NI_R_ELBOW
jbxl::RBound<double> RBound_NI_R_FOOT
jbxl::RBound<double> RBound_NI_R_HAND
jbxl::RBound<double> RBound_NI_R_HIP
jbxl::RBound<double> RBound_NI_R_KNEE
jbxl::RBound<double> RBound_NI_R_SHLDR
jbxl::RBound<double> RBound_NI_R_WRIST
jbxl::RBound<double> RBound_NI_TORSO

Generated on 15 Nov 2023 for JunkBox_Win_Lib by  doxygen 1.6.1