C# Класс Microsoft.Samples.Kinect.RecordAndPlaybackBasics.KinectBodyView

Visualizes the Kinect Body stream for display in the UI
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Disposes the BodyFrameReader

KinectBodyView ( Microsoft.Kinect.KinectSensor kinectSensor ) : System

Initializes a new instance of the KinectBodyView class

UpdateBodyFrame ( Body bodies ) : void

Updates the body array with new information from the sensor Should be called whenever a new BodyFrameArrivedEvent occurs

Приватные методы

Метод Описание
DrawBody ( Joint>.IReadOnlyDictionary joints, Point>.IDictionary jointPoints, System.Windows.Media.DrawingContext drawingContext, System.Windows.Media.Pen drawingPen ) : void

Draws a body

DrawBone ( Joint>.IReadOnlyDictionary joints, Point>.IDictionary jointPoints, JointType jointType0, JointType jointType1, System.Windows.Media.DrawingContext drawingContext, System.Windows.Media.Pen drawingPen ) : void

Draws one bone of a body (joint to joint)

DrawHand ( HandState handState, Point handPosition, System.Windows.Media.DrawingContext drawingContext ) : void

Draws a hand symbol if the hand is tracked: red circle = closed, green circle = opened; blue circle = lasso

Reader_BodyFrameArrived ( object sender, BodyFrameArrivedEventArgs e ) : void

Handles the body frame data arriving from the sensor and updates the associated gesture detector object for each body

Описание методов

Dispose() публичный Метод

Disposes the BodyFrameReader
public Dispose ( ) : void
Результат void

KinectBodyView() публичный Метод

Initializes a new instance of the KinectBodyView class
public KinectBodyView ( Microsoft.Kinect.KinectSensor kinectSensor ) : System
kinectSensor Microsoft.Kinect.KinectSensor Active instance of the KinectSensor
Результат System

UpdateBodyFrame() публичный Метод

Updates the body array with new information from the sensor Should be called whenever a new BodyFrameArrivedEvent occurs
public UpdateBodyFrame ( Body bodies ) : void
bodies Body Array of bodies to update
Результат void