Exemplo n.º 1
0
 /// <summary>
 /// Updates the next frame depth map that's waiting for data with any state changes
 /// </summary>
 protected void UpdateNextFrameDepthMap()
 {
     if (this.DataBuffer == IntPtr.Zero)
     {
         // have to set our own buffer as the depth buffer
         this.nextFrameDepthMap = new DepthMap(this.DataFormat);
         KinectNative.freenect_set_depth_buffer(this.parentDevice.devicePointer, this.nextFrameDepthMap.DataPointer);
     }
     else
     {
         // already have a buffer from user
         this.nextFrameDepthMap = new DepthMap(this.DataFormat, this.DataBuffer);
     }
 }
Exemplo n.º 2
0
			/// <summary>
			/// constructor
			/// </summary>
			/// <param name="timestamp">
			/// A <see cref="DateTime"/>
			/// </param>
			/// <param name="depthMap">
			/// A <see cref="DepthMap"/>
			/// </param>
			public DataReceivedEventArgs(DateTime timestamp, DepthMap depthMap)
			{
				this.Timestamp = timestamp;
				this.DepthMap = depthMap;
			}
Exemplo n.º 3
0
		/// <summary>
		/// Updates the next frame depth map that's waiting for data with any state changes
		/// </summary>
		protected void UpdateNextFrameDepthMap()
		{
			if(this.DataBuffer == IntPtr.Zero)
			{
				// have to set our own buffer as the depth buffer
				this.nextFrameDepthMap = new DepthMap(this.DataFormat);
				KinectNative.freenect_set_depth_buffer(this.parentDevice.devicePointer, this.nextFrameDepthMap.DataPointer);
			}
			else	
			{
				// already have a buffer from user
				this.nextFrameDepthMap = new DepthMap(this.DataFormat, this.DataBuffer);
			}
		}
Exemplo n.º 4
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="timestamp">
 /// A <see cref="DateTime"/>
 /// </param>
 /// <param name="depthMap">
 /// A <see cref="DepthMap"/>
 /// </param>
 public DataReceivedEventArgs(DateTime timestamp, DepthMap depthMap)
 {
     this.Timestamp = timestamp;
     this.DepthMap  = depthMap;
 }