C# Класс 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.
Наследование: System.Windows.Controls.Control
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ShowBonesProperty System.Windows.DependencyProperty
ShowCenterProperty System.Windows.DependencyProperty
ShowClippedEdgesProperty System.Windows.DependencyProperty
ShowJointsProperty System.Windows.DependencyProperty

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

Метод Описание
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

Защищенные методы

Метод Описание
ArrangeOverride ( Size arrangeBounds ) : Size
MeasureOverride ( Size constraint ) : Size
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

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

Метод Описание
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

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

ArrangeOverride() защищенный Метод

protected ArrangeOverride ( Size arrangeBounds ) : Size
arrangeBounds System.Windows.Size
Результат System.Windows.Size

MeasureOverride() защищенный Метод

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
Результат System.Windows.Size

OnRender() защищенный Метод

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
Результат void

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

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. ///
Результат void

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

public Reset ( ) : void
Результат void

Описание свойств

ShowBonesProperty публичное статическое свойство

public static DependencyProperty,System.Windows ShowBonesProperty
Результат System.Windows.DependencyProperty

ShowCenterProperty публичное статическое свойство

public static DependencyProperty,System.Windows ShowCenterProperty
Результат System.Windows.DependencyProperty

ShowClippedEdgesProperty публичное статическое свойство

public static DependencyProperty,System.Windows ShowClippedEdgesProperty
Результат System.Windows.DependencyProperty

ShowJointsProperty публичное статическое свойство

public static DependencyProperty,System.Windows ShowJointsProperty
Результат System.Windows.DependencyProperty