C# Class Com.Enterprisecoding.RobosapienKinect.Viewers.KinectSkeleton

This control is used to render a player's skeleton. If the ClipToBounds is set to "false", it will be allowed to overdraw it's bounds.
Inheritance: System.Windows.Controls.Control
Datei anzeigen Open project: fatihboy/Robosapien Class Usage Examples

Public Properties

Property Type Description
ShowBonesProperty System.Windows.DependencyProperty
ShowCenterProperty System.Windows.DependencyProperty
ShowClippedEdgesProperty System.Windows.DependencyProperty
ShowJointsProperty System.Windows.DependencyProperty

Public Methods

Method Description
RefreshSkeleton ( Microsoft.Kinect.Skeleton skeleton, JointMapping>.Dictionary mappings, Point center, double scaleFactor ) : void

This method should be called every skeleton frame. It will force the properties to update and trigger the control to render.

Reset ( ) : void

Protected Methods

Method Description
ArrangeOverride ( Size arrangeBounds ) : Size
MeasureOverride ( Size constraint ) : Size
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

Private Methods

Method Description
DrawBone ( System.Windows.Media.DrawingContext drawingContext, JointType jointType1, JointType jointType2 ) : void
DrawBonesAndJoints ( System.Windows.Media.DrawingContext drawingContext ) : void
RenderClippedEdges ( System.Windows.Media.DrawingContext drawingContext ) : void

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size arrangeBounds ) : Size
arrangeBounds System.Windows.Size
return System.Windows.Size

MeasureOverride() protected method

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
return System.Windows.Size

OnRender() protected method

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
return void

RefreshSkeleton() public method

This method should be called every skeleton frame. It will force the properties to update and trigger the control to render.
public RefreshSkeleton ( Microsoft.Kinect.Skeleton skeleton, JointMapping>.Dictionary mappings, Point center, double scaleFactor ) : void
skeleton Microsoft.Kinect.Skeleton This is the current frame's skeleton data.
mappings JointMapping>.Dictionary This is a list of pre-mapped joints. See KinectSkeletonViewerer.xaml.cs
center System.Windows.Point This is a pre-mapped point to the skeleton's center position.
scaleFactor double /// 1 will render the bones and joints at a good size for a 640x480 image. /// The method would expect 0.5 to render a 320x240 scaled image. ///
return void

Reset() public method

public Reset ( ) : void
return void

Property Details

ShowBonesProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowBonesProperty
return System.Windows.DependencyProperty

ShowCenterProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowCenterProperty
return System.Windows.DependencyProperty

ShowClippedEdgesProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowClippedEdgesProperty
return System.Windows.DependencyProperty

ShowJointsProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowJointsProperty
return System.Windows.DependencyProperty