Esempio n. 1
0
 public void Read(BinaryReader reader)
 {
     ClippedEdges = (TFrameEdges)reader.ReadInt32();
     int jointCount = reader.ReadInt32();
     Joints = new TJoint[jointCount];
     for (int jx = 0; jx < jointCount; jx++)
     {
         Joints[jx] = new TJoint();
         Joints[jx].Read(reader);
     }
     Position = new TSkeletonPoint();
     Position.Read(reader);
     TrackingId = reader.ReadInt32();
     TrackingState = (TSkeletonTrackingState)reader.ReadInt32();
 }
Esempio n. 2
0
        public TSkeleton(Skeleton skeleton)
        {
            ClippedEdges = (TFrameEdges)skeleton.ClippedEdges;
            Joints       = new TJoint[skeleton.Joints.Count];
            int i = 0;

            foreach (var joint in skeleton.Joints)
            {
                Joints[i] = new TJoint((Joint)joint);
                i++;
            }
            Position      = new TSkeletonPoint(skeleton.Position);
            TrackingId    = skeleton.TrackingId;
            TrackingState = (TSkeletonTrackingState)skeleton.TrackingState;
        }
Esempio n. 3
0
        public void Read(BinaryReader reader)
        {
            ClippedEdges = (TFrameEdges)reader.ReadInt32();
            int jointCount = reader.ReadInt32();

            Joints = new TJoint[jointCount];
            for (int jx = 0; jx < jointCount; jx++)
            {
                Joints[jx] = new TJoint();
                Joints[jx].Read(reader);
            }
            Position = new TSkeletonPoint();
            Position.Read(reader);
            TrackingId    = reader.ReadInt32();
            TrackingState = (TSkeletonTrackingState)reader.ReadInt32();
        }