C# Class KinectMenu.MotionEngine

The engine that handles motion input from the Kinect
Mostra file Open project: NUIC/2-Kinects-1-Machine Class Usage Examples

Public Properties

Property Type Description
created HandCreated
movement HandMotion

Protected Properties

Property Type Description
smoothingParameters TransformSmoothParameters

Public Methods

Method Description
HandsTogether ( int scale ) : System.Boolean

Checks to see if the user's hands are together +/- the scale factor.

getInstance ( ) : MotionEngine
registerHandCreated ( HandCreated handler ) : void
registerHandMotion ( HandMotion handler ) : void
registerVideoCapture ( EventHandler handler ) : void
removeHandMotion ( HandMotion handler ) : void
removeVideoCapture ( EventHandler handler ) : void

Protected Methods

Method Description
fitToScreen ( Microsoft.Kinect.SkeletonPoint skp ) : Microsoft.Kinect.SkeletonPoint

Private Methods

Method Description
InitializeMotionDetection ( ) : void

Called by the constructor. Sets up the Kinect controls.

InitializeRuntime ( ) : void
MotionEngine ( ) : System
SkeletonFrameReady ( Microsoft.Kinect.Skeleton firstPerson ) : void

Method Details

HandsTogether() public method

Checks to see if the user's hands are together +/- the scale factor.
public HandsTogether ( int scale ) : System.Boolean
scale int The scale factor
return System.Boolean

fitToScreen() protected static method

protected static fitToScreen ( Microsoft.Kinect.SkeletonPoint skp ) : Microsoft.Kinect.SkeletonPoint
skp Microsoft.Kinect.SkeletonPoint
return Microsoft.Kinect.SkeletonPoint

getInstance() public static method

public static getInstance ( ) : MotionEngine
return MotionEngine

registerHandCreated() public method

public registerHandCreated ( HandCreated handler ) : void
handler HandCreated
return void

registerHandMotion() public method

public registerHandMotion ( HandMotion handler ) : void
handler HandMotion
return void

registerVideoCapture() public method

public registerVideoCapture ( EventHandler handler ) : void
handler EventHandler
return void

removeHandMotion() public method

public removeHandMotion ( HandMotion handler ) : void
handler HandMotion
return void

removeVideoCapture() public method

public removeVideoCapture ( EventHandler handler ) : void
handler EventHandler
return void

Property Details

created public_oe static_oe property

public static HandCreated created
return HandCreated

movement public_oe static_oe property

public static HandMotion movement
return HandMotion

smoothingParameters protected_oe property

protected TransformSmoothParameters smoothingParameters
return TransformSmoothParameters