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
Afficher le fichier Open project: fatihboy/Robosapien Class Usage Examples

Méthodes publiques

Свойство Type Description
ShowBonesProperty System.Windows.DependencyProperty
ShowCenterProperty System.Windows.DependencyProperty
ShowClippedEdgesProperty System.Windows.DependencyProperty
ShowJointsProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

protected ArrangeOverride ( Size arrangeBounds ) : Size
arrangeBounds System.Windows.Size
Résultat System.Windows.Size

MeasureOverride() protected méthode

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
Résultat System.Windows.Size

OnRender() protected méthode

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
Résultat void

RefreshSkeleton() public méthode

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. ///
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

Property Details

ShowBonesProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowBonesProperty
Résultat System.Windows.DependencyProperty

ShowCenterProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowCenterProperty
Résultat System.Windows.DependencyProperty

ShowClippedEdgesProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowClippedEdgesProperty
Résultat System.Windows.DependencyProperty

ShowJointsProperty public_oe static_oe property

public static DependencyProperty,System.Windows ShowJointsProperty
Résultat System.Windows.DependencyProperty