C# Class SoD_Sensor.SkeletonRenderer2

显示文件 Open project: ase-lab/SoD_Sensor_v2 Class Usage Examples

Public Methods

Method Description
SkeletonRenderer2 ( Image Image, Microsoft.Kinect.KinectSensor sensor ) : Microsoft.Kinect
renderBodyFrame ( BodyFrameArrivedEventArgs e, SoD_Sensor assocation ) : void

Private Methods

Method Description
DrawBody ( Joint>.IReadOnlyDictionary joints, Point>.IDictionary jointPoints, System.Windows.Media.DrawingContext drawingContext ) : void

Draws a body

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

Draws one bone of a body (joint to joint)

DrawClippedEdges ( Body body, System.Windows.Media.DrawingContext drawingContext ) : void

Draws indicators to show which edges are clipping body data

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_FrameArrived ( BodyFrameArrivedEventArgs e, SoD_Sensor assocation ) : void

Handles the body frame data arriving from the sensor

Method Details

SkeletonRenderer2() public method

public SkeletonRenderer2 ( Image Image, Microsoft.Kinect.KinectSensor sensor ) : Microsoft.Kinect
Image Image
sensor Microsoft.Kinect.KinectSensor
return Microsoft.Kinect

renderBodyFrame() public method

public renderBodyFrame ( BodyFrameArrivedEventArgs e, SoD_Sensor assocation ) : void
e BodyFrameArrivedEventArgs
assocation SoD_Sensor
return void