C# Класс control.Controller

Controller class is an adaptor to use the kinect device gesture detection as keyboard and mouse.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Controller ( int pointingHand ) : System

constructor of the controller class

getPointer ( ) : Vector2

return vector2 containing the value indcating the angle between the z axies and the pointing hand.

getShoulderDiff ( ) : float

return the difference btween z coord. of the left and the right shoulders.

getShoulderLeft ( ) : bool

return the z coord. of the left shoulder.

getShoulderRight ( ) : bool

return the z coord. of the right shoulder.

isActive ( int gesture ) : System.Boolean

return boolean indicating the state of the gesture.

Приватные методы

Метод Описание
initiGestureManager ( ) : void

initilize gesture that will be used.

updateContollerState ( ) : void

update controller state.

Описание методов

Controller() публичный Метод

constructor of the controller class
public Controller ( int pointingHand ) : System
pointingHand int to indicate the pointing hand (left/right)
Результат System

getPointer() публичный Метод

return vector2 containing the value indcating the angle between the z axies and the pointing hand.
public getPointer ( ) : Vector2
Результат Vector2

getShoulderDiff() публичный Метод

return the difference btween z coord. of the left and the right shoulders.
public getShoulderDiff ( ) : float
Результат float

getShoulderLeft() публичный Метод

return the z coord. of the left shoulder.
public getShoulderLeft ( ) : bool
Результат bool

getShoulderRight() публичный Метод

return the z coord. of the right shoulder.
public getShoulderRight ( ) : bool
Результат bool

isActive() публичный Метод

return boolean indicating the state of the gesture.
public isActive ( int gesture ) : System.Boolean
gesture int the number coresspond to a specific gesture
Результат System.Boolean