Свойство | Type | Description | |
---|---|---|---|
_handLeft | double | ||
_handTop | double | ||
_selectedButton | System.Windows.Controls.Button | ||
buttons | List | ||
inAction | System.Boolean | ||
kinectLeft | Coding4Fun.Kinect.Wpf.Controls.HoverButton | ||
kinectLeft1 | Coding4Fun.Kinect.Wpf.Controls.HoverButton | ||
kinectRight | Coding4Fun.Kinect.Wpf.Controls.HoverButton | ||
kinectRight1 | Coding4Fun.Kinect.Wpf.Controls.HoverButton | ||
liveVideo | Image |
Méthode | Description | |
---|---|---|
IsCursorOverObject ( |
Checks to see if the kinect cursor is over an object.
|
|
IsHandsTogetherOnAButton ( |
Checks to see if both hands are together in a clapping motion over a button.
|
|
KinectPage ( ) : System | ||
OnButtonLocationChanged ( Hands movingHand, int x, int y ) : void |
The main method for handling motion. Checks for clapping or hover events.
|
|
SpeechRecognized ( object sender, SpeechRecognizedEventArgs args ) : void |
The main method for speech recognition. If an utterance is recognised by the SpeechEngine, this handler is called with the command. The handler checks the button names for the matching button and calls its Click event.
|
|
SpeechRejected ( object sender, SpeechRecognitionRejectedEventArgs args ) : void |
The main method for speech rejection. Used to notify the user of a rejected speech utterance.
|
Méthode | Description | |
---|---|---|
InitializeButtons ( ) : void |
Override this method. Allows the kinect page to "know" about any selectable buttons on the Page.
|
|
InitializeKinectHandIcons ( ) : void |
Override this method. Attaches the kinect hand icons to the user's hands.
|
|
InitializeVideoImage ( ) : void |
Override this method. Allows the kinect page to update the video image of the person moving.
|
Méthode | Description | |
---|---|---|
MainWindow_Loaded ( object sender, |
A callback method for when the page is loaded. Set's up the buttons and live image for the current page. Initializes the motion and speech controls as well.
|
|
MainWindow_Unloaded ( object sender, |
A callback method for when the page is unloaded. Remove's event handlers from the speech and motion modules. Reset's all of the referrences.
|
|
runtime_VideoFrameReady ( object sender, ColorImageFrameReadyEventArgs e ) : void |
protected InitializeKinectHandIcons ( ) : void | ||
Résultat | void |
public static IsCursorOverObject ( |
||
hand | The Kinect cursor | |
buttons | List | The list of buttons to check against |
Résultat | bool |
public static IsHandsTogetherOnAButton ( |
||
hand | The first hand | |
otherHand | The second hand | |
buttons | List | The list of buttons to check against |
Résultat | bool |
public static OnButtonLocationChanged ( Hands movingHand, int x, int y ) : void | ||
movingHand | Hands | The hand that is currently moving |
x | int | The moving hand's current x position |
y | int | The moving hand's current y position |
Résultat | void |
public SpeechRecognized ( object sender, SpeechRecognizedEventArgs args ) : void | ||
sender | object | |
args | SpeechRecognizedEventArgs | |
Résultat | void |
public SpeechRejected ( object sender, SpeechRecognitionRejectedEventArgs args ) : void | ||
sender | object | |
args | SpeechRecognitionRejectedEventArgs | |
Résultat | void |
protected static Button,System.Windows.Controls _selectedButton | ||
Résultat | System.Windows.Controls.Button |
protected static HoverButton,Coding4Fun.Kinect.Wpf.Controls kinectLeft | ||
Résultat | Coding4Fun.Kinect.Wpf.Controls.HoverButton |
protected static HoverButton,Coding4Fun.Kinect.Wpf.Controls kinectLeft1 | ||
Résultat | Coding4Fun.Kinect.Wpf.Controls.HoverButton |
protected static HoverButton,Coding4Fun.Kinect.Wpf.Controls kinectRight | ||
Résultat | Coding4Fun.Kinect.Wpf.Controls.HoverButton |
protected static HoverButton,Coding4Fun.Kinect.Wpf.Controls kinectRight1 | ||
Résultat | Coding4Fun.Kinect.Wpf.Controls.HoverButton |