예제 #1
0
        public PointF ConvertHandCoordinatesToDepth(Point3D depth)
        {
            float pX, pY;

            NiTE.throwIfError(ConvertHandCoordinatesToDepth((float)depth.X, (float)depth.Y, (float)depth.Z, out pX, out pY));
            return(new PointF(pX, pY));
        }
예제 #2
0
        public HandTrackerFrameRef readFrame()
        {
            IntPtr fHandle;

            NiTE.throwIfError(HandTracker_readFrame(this.Handle, out fHandle));
            return(new HandTrackerFrameRef(fHandle));
        }
예제 #3
0
        public PointF ConvertDepthCoordinatesToJoint(Point3D depth)
        {
            float pX, pY;

            NiTE.throwIfError(ConvertDepthCoordinatesToJoint((int)depth.X, (int)depth.Y, (int)depth.Z, out pX, out pY));
            return(new PointF(pX, pY));
        }
예제 #4
0
        public static HandTracker Create(Device device = null)
        {
            IntPtr deviceHandle = IntPtr.Zero;

            if (device != null && device.isValid)
            {
                deviceHandle = device.Handle;
            }
            IntPtr handle;

            NiTE.throwIfError(HandTracker_create(out handle, deviceHandle));
            HandTracker ut = new HandTracker(handle);

            ut.handler_events = HandTracker_RegisterListener(handle, ut.internal_listener);
            return(ut);
        }