Exemplo n.º 1
0
		public SkeletonScene(KinectDevice device)
		{
			FDevice = device;
			if (FDevice == null)
				return;

			FDevice.SkeletonEnabled = true;
			FSkeletons = new Skeleton[FDevice.Sensor.SkeletonStream.FrameSkeletonArrayLength];

			FDevice.Sensor.SkeletonFrameReady += new EventHandler<SkeletonFrameReadyEventArgs>(Sensor_SkeletonFrameReady);
		}
Exemplo n.º 2
0
        public SkeletonScene(KinectDevice device)
        {
            FDevice = device;
            if (FDevice == null)
            {
                return;
            }

            FDevice.SkeletonEnabled = true;
            FSkeletons = new Skeleton[FDevice.Sensor.SkeletonStream.FrameSkeletonArrayLength];

            FDevice.Sensor.SkeletonFrameReady += new EventHandler <SkeletonFrameReadyEventArgs>(Sensor_SkeletonFrameReady);
        }
Exemplo n.º 3
0
		void Refresh()
		{
			var sensors = KinectSensor.KinectSensors;
			int count = sensors.Count;

			FSensors.SliceCount = count;
			FID.SliceCount = count;

			for (int i = 0; i < sensors.Count; i++) {
				var sensor = sensors[i];
				FSensors[i] = new KinectDevice(sensor);
				FID[i] = sensor.UniqueKinectId;
			}
		}
Exemplo n.º 4
0
        void Refresh()
        {
            var sensors = KinectSensor.KinectSensors;
            int count   = sensors.Count;

            FSensors.SliceCount = count;
            FID.SliceCount      = count;

            for (int i = 0; i < sensors.Count; i++)
            {
                var sensor = sensors[i];
                FSensors[i] = new KinectDevice(sensor);
                FID[i]      = sensor.UniqueKinectId;
            }
        }