#include "StdAfx.h" #include "KinectSMemory.h" #include "Rotation.h" #include "anm_data.h" CKinectSMemory::CKinectSMemory(void) { animationUUID = ""; indexHandle = NULL; ptrAnimIndex = NULL; for (int i=0; i* posVect, Quaternion* rotQuat) { // mPelvis(0) double* shm = ptrMapData[0]; if (shm!=NULL) { shm[1] = posVect[0].x; shm[2] = posVect[0].y; shm[3] = posVect[0].z; shm[4] = rotQuat[0].x; shm[5] = rotQuat[0].y; shm[6] = rotQuat[0].z; shm[7] = rotQuat[0].s; } for (int i=1; i=0) { shm = ptrMapData[n]; if (shm!=NULL) { shm[4] = rotQuat[i].x; shm[5] = rotQuat[i].y; shm[6] = rotQuat[i].z; shm[7] = rotQuat[i].s; } } } } void CKinectSMemory::clearLocalAnimationData(void) { for (int i=0; i=0 && n=0 && n