C# Class CCT.NUI.Visual.WpfHandLayer

Inheritance: UIElement, IWpfLayer
Show file Open project: an83/KinectTouch2

Public Methods

Method Description
Activate ( System.Windows.Controls.Canvas canvas ) : void
Dispose ( ) : void
WpfHandLayer ( IHandDataSource dataSource ) : System

Protected Methods

Method Description
DrawCenter ( HandData hand, System.Windows.Media.DrawingContext drawingContext ) : void
DrawFingerPoints ( HandData cluster, System.Windows.Media.DrawingContext drawingContext ) : void
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
PaintContour ( HandData hand, System.Windows.Media.DrawingContext drawingContext ) : void
PaintCovexHull ( HandData cluster, System.Windows.Media.DrawingContext drawingContext ) : void

Private Methods

Method Description
DrawHand ( HandData hand, System.Windows.Media.DrawingContext drawingContext ) : void
DrawLines ( System.Windows.Media.DrawingContext drawingContext, System.Windows.Media.Pen pen, System points ) : void
PaintFingerPoint ( FingerPoint point, System.Windows.Media.DrawingContext drawingContext ) : void
dataSource_NewDataAvailable ( HandCollection hands ) : void

Method Details

Activate() public method

public Activate ( System.Windows.Controls.Canvas canvas ) : void
canvas System.Windows.Controls.Canvas
return void

Dispose() public method

public Dispose ( ) : void
return void

DrawCenter() protected method

protected DrawCenter ( HandData hand, System.Windows.Media.DrawingContext drawingContext ) : void
hand CCT.NUI.HandTracking.HandData
drawingContext System.Windows.Media.DrawingContext
return void

DrawFingerPoints() protected method

protected DrawFingerPoints ( HandData cluster, System.Windows.Media.DrawingContext drawingContext ) : void
cluster CCT.NUI.HandTracking.HandData
drawingContext System.Windows.Media.DrawingContext
return void

OnRender() protected method

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

PaintContour() protected method

protected PaintContour ( HandData hand, System.Windows.Media.DrawingContext drawingContext ) : void
hand CCT.NUI.HandTracking.HandData
drawingContext System.Windows.Media.DrawingContext
return void

PaintCovexHull() protected method

protected PaintCovexHull ( HandData cluster, System.Windows.Media.DrawingContext drawingContext ) : void
cluster CCT.NUI.HandTracking.HandData
drawingContext System.Windows.Media.DrawingContext
return void

WpfHandLayer() public method

public WpfHandLayer ( IHandDataSource dataSource ) : System
dataSource IHandDataSource
return System