示例#1
0
 private void IntegrateSkeleton(KinectSkeleton skeleton, int number)
 {
     if (number >= 0)
     {
         filteredSkeletons[number].IntegrateSkeleton(skeleton);
     }
     else
     {
         FilteredSkeleton tempSkel = new FilteredSkeleton();
         tempSkel.IntegrateSkeleton(skeleton);
         filteredSkeletons.Add(tempSkel);
     }
 }
示例#2
0
 public void Add(FilteredSkeleton skeleton)
 {
     lock (lockObj)
     {
         if (refCount == 0)
         {
             mainList.Add(skeleton);
         }
         else
         {
             addCache.Add(skeleton);
         }
     }
 }