C# Class Microsoft.Samples.Kinect.SkeletonBasics.MainWindow

Interaction logic for MainWindow.xaml
Mostrar archivo Open project: Zillode/OSCeleton-KinectSDK Class Usage Examples

Public Methods

Method Description
CheckForShortcut ( ) : void
MainWindow ( ) : System

Initializes a new instance of the MainWindow class.

Private Methods

Method Description
CheckBoxSeatedModeChanged ( object sender, System e ) : void

Handles the checking or unchecking of the seated mode combo box

CheckBoxShowSkeletonChanged ( object sender, System e ) : void

Handles the checking or unchecking of the seated mode combo box

CheckBoxSpeechCommandsChanged ( object sender, System e ) : void
CloseCSVFile ( ) : void
CreateSpeechRecognizer ( KinectSensor sensor ) : void
DrawBone ( KinectSensor sensor, Skeleton skeleton, DrawingContext drawingContext, JointType jointType0, JointType jointType1 ) : void

Draws a bone line between two joints

DrawBonesAndJoints ( KinectSensor sensor, Skeleton skeleton, DrawingContext drawingContext ) : void

Draws a skeleton's bones and joints

EnqueueFaceAnimationMessage ( int sensorId, int user, float>.EnumIndexableCollection c, double time ) : void
EnqueueFacePoseMessage ( int sensorId, int user, float x, float y, float z, float rotationX, float rotationY, float rotationZ, double time ) : void
EnqueueFaceTracking ( KinectSensor sensor, int user, Skeleton s ) : void
EnqueueSkeleton ( int sensorId, int user, Skeleton s ) : void
GetErrorText ( Exception ex ) : string
ImgClickSwitchKinect ( object sender, System e ) : void
KinectSensorsStatusChanged ( object sender, StatusChangedEventArgs e ) : void
OpenNewCSVFile ( ) : void
RenderClippedEdges ( Skeleton skeleton, DrawingContext drawingContext ) : void

Draws indicators to show which edges are clipping skeleton data

SendTrackingInformation ( ) : void
SensorAllFramesReady ( object sender, AllFramesReadyEventArgs e ) : void

Event handler for Kinect sensor's SkeletonFrameReady event

SensorFrameHelper ( KinectSensor sensor, Boolean allFrames ) : void
SensorSkeletonFrameReady ( object sender, SkeletonFrameReadyEventArgs e ) : void

Event handler for Kinect sensor's SkeletonFrameReady event

SetFrames ( KinectSensor sensor ) : void
SetStatusbarText ( string txt ) : void
SetStatusbarText ( string txt, Color color ) : void
SkeletonPointToScreen ( KinectSensor sensor, SkeletonPoint skelpoint ) : Point

Maps a SkeletonPoint to lie within our render space and converts to Point

SpeechRecognized ( object sender, SpeechRecognizedEventArgs e ) : void
StartKinect ( KinectSensor sensor ) : void
StopKinect ( KinectSensor sensor ) : void
StopSpeechRecognizer ( KinectSensor sensor ) : void
StringToBool ( String msg ) : bool
WindowClosing ( object sender, System e ) : void

Execute shutdown tasks

WindowLoaded ( object sender, System e ) : void

Execute startup tasks

Window_KeyUp ( object sender, System e ) : void
cbxDisplay_SelectionChanged ( object sender, System e ) : void
getUnixEpochTime ( ) : double
getUnixEpochTimeLong ( ) : long

Method Details

CheckForShortcut() public method

public CheckForShortcut ( ) : void
return void

MainWindow() public method

Initializes a new instance of the MainWindow class.
public MainWindow ( ) : System
return System