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
파일 보기 프로젝트 열기: fatihboy/Robosapien 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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