C# Class Kinect.KinectManager

KinectManager: establishes a connection with the Kinect and it keeps track of the number of users.
Show file Open project: BrainProject/UnityTemp Class Usage Examples

Public Properties

Property Type Description
isDefaultKM bool

Public Methods

Method Description
Awake ( ) : void
ClearGestures ( Int64 UserId ) : void

Deletes all gestures for the specified user.

ClearKinectUsers ( ) : void

Removes all currently detected users, allowing new user-detection process to start.

DeleteGesture ( Int64 UserId, KinectGestures gesture ) : bool

Deletes the gesture for the specified user.

DetectGesture ( Int64 UserId, KinectGestures gesture ) : void

Adds a gesture to the list of detected gestures for the specified user.

EnablePlayMode ( bool bEnabled ) : void

Enables or displables the play mode.

GetBodyCount ( ) : int

Gets the number of bodies, tracked by the sensor.

GetBodyFrameData ( long &liRelTime, float &fUnityTime ) : string

Gets the body frame as one csv line, or returns empty string if there is no new body frame.

GetBodyFrameTimestamp ( ) : long

Gets the last body frame timestamp.

GetBodyIndexByUserId ( Int64 userId ) : int

Gets the body index by the specified user ID, or -1 if the user ID does not exist.

GetColorImageHeight ( ) : int

Gets the height of the color image, returned by the sensor.

GetColorImageWidth ( ) : int

Gets the width of the color image, returned by the sensor.

GetDepthForPixel ( int x, int y ) : ushort

Gets the depth value for the specified pixel, if ComputeUserMap is true.

GetDepthImageHeight ( ) : int

Gets the height of the depth image, returned by the sensor.

GetDepthImageWidth ( ) : int

Gets the width of the depth image, returned by the sensor.

GetDirectionBetweenJoints ( Int64 userId, int firstJoint, int secondJoint, bool flipX, bool flipZ ) : Vector3

Gets the direction between the given joints of the specified user.

GetDisplayedBodyIndex ( ) : int

Gets the body index [0-5], if there is single body selected to be displayed on the user map, or -1 if all bodies are displayed.

GetGestureAtIndex ( Int64 UserId, int i ) : KinectGestures.Gestures

Gets the gesture at the specified index for the given user.

GetGestureProgress ( Int64 UserId, KinectGestures gesture ) : float

Gets the progress (in range [0, 1]) of the given gesture for the specified user.

GetGestureScreenPos ( Int64 UserId, KinectGestures gesture ) : Vector3

Gets the normalized screen position of the given gesture for the specified user.

GetGesturesCount ( Int64 UserId ) : int

Gets the gestures count for the specified user.

GetGesturesList ( Int64 UserId ) : List

Gets the list of gestures for the specified user.

GetJointCount ( ) : int

Gets the the number of body joints, tracked by the sensor.

GetJointDirection ( Int64 userId, int joint, bool flipX, bool flipZ ) : Vector3

Gets the joint direction of the specified user, relative to its parent joint.

GetJointIndex ( KinectInterop joint ) : int

Gets the index of the joint in the joint's array

GetJointKinectPosition ( Int64 userId, int joint ) : Vector3

Gets the joint position of the specified user, in Kinect coordinate system, in meters.

GetJointOrientation ( Int64 userId, int joint, bool flip ) : Quaternion

Gets the joint orientation of the specified user.

GetJointPosColorOverlay ( Int64 userId, int joint, Camera camera, Rect imageRect ) : Vector3

Gets the 3d overlay position of the given joint over the color-image.

GetJointPosDepthOverlay ( Int64 userId, int joint, Camera camera, Rect imageRect ) : Vector3

Gets the 3d overlay position of the given joint over the depth-image.

GetJointPosition ( Int64 userId, int joint ) : Vector3

Gets the joint position of the specified user, in meters.

GetJointTrackingState ( Int64 userId, int joint ) : KinectInterop.TrackingState

Gets the tracking state of the joint.

GetLeftHandInteractionBox ( Int64 userId, Vector3 &leftBotBack, Vector3 &rightTopFront, bool bValidBox ) : bool

Gets the left hand interaction box for the specified user.

GetLeftHandState ( Int64 userId ) : KinectInterop.HandState

Gets the left hand state for the specified user.

GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType

Gets the parent joint of the given joint.

GetPrimaryUserID ( ) : Int64

Gets the UserID of the primary user (the first or the closest one), or 0 if no user is detected.

GetRawBodyIndexMap ( ) : byte[]

Gets the raw body index data, if ComputeUserMap is true.

GetRawDepthMap ( ) : ushort[]

Gets the raw depth data, if ComputeUserMap is true.

GetRawInfraredMap ( ) : ushort[]

Gets the raw infrared data, if ComputeInfraredMap is true.

GetRightHandInteractionBox ( Int64 userId, Vector3 &leftBotBack, Vector3 &rightTopFront, bool bValidBox ) : bool

Gets the right hand interaction box for the specified user.

GetRightHandState ( Int64 userId ) : KinectInterop.HandState

Gets the right hand state for the specified user.

GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform

Gets the selected depth-sensor platform.

GetTrackedBodyIndices ( ) : List

Gets the list of tracked body indices.

GetUserIdByIndex ( int i ) : Int64

Gets the user ID by the specified user index.

GetUserIndexById ( Int64 userId ) : int

Gets the user index by the specified user ID.

GetUserOrientation ( Int64 userId, bool flip ) : Quaternion

Gets the user orientation.

GetUserPosition ( Int64 userId ) : Vector3

Gets the user position, relative to the sensor, in meters.

GetUsersClrTex ( ) : Texture2D

Gets the color image texture,if ComputeColorMap is true

GetUsersCount ( ) : int

Gets the number of currently detected users.

GetUsersLblTex ( ) : Texture2D

Gets the users' histogram texture, if ComputeUserMap is true

IsGestureCancelled ( Int64 UserId, KinectGestures gesture ) : bool

Determines whether the given gesture for the specified user is canceled.

IsGestureComplete ( Int64 UserId, KinectGestures gesture, bool bResetOnComplete ) : bool

Determines whether the given gesture for the specified user is complete.

IsInitialized ( ) : bool

Determines if the sensor and KinectManager-component are initialized and ready to use.

IsJointTracked ( Int64 userId, int joint ) : bool

Determines whether the given joint of the specified user is being tracked.

IsKinectInitialized ( ) : bool

Determines if the sensor and KinectManager-component are initialized and ready to use.

IsLeftHandConfidenceHigh ( Int64 userId ) : bool

Determines whether the left hand confidence is high for the specified user.

IsPlayModeEnabled ( ) : bool

Determines whether the play mode is enabled or not.

IsRightHandConfidenceHigh ( Int64 userId ) : bool

Determines whether the right hand confidence is high for the specified user.

IsTrackedUsersLimited ( ) : bool

Determines whether the tracked users are limited by their number or distance or not.

IsTrackingGesture ( Int64 UserId, KinectGestures gesture ) : bool

Determines whether the given gesture is in the list of gestures for the specified user.

IsUserDetected ( ) : bool

Determines whether at least one user is currently detected by the sensor

IsUserTracked ( Int64 userId ) : bool

Determines whether the user with the specified userId is in the list of tracked users or not.

IsUserTurnedAround ( Int64 userId ) : bool

Determines whether the given user is turned around or not.

LateUpdate ( ) : void
MapColorFrameToDepthCoords ( Vector2 &avDepthCoords ) : bool

Maps the color frame to depth coordinates.

MapDepthFrameToColorCoords ( Vector2 &avColorCoords ) : bool

Maps the depth frame to color coordinates.

MapDepthPointToColorCoords ( Vector2 posPoint, ushort depthValue ) : Vector2

Returns the color-map coordinates of a depth point.

MapDepthPointToSpaceCoords ( Vector2 posPoint, ushort depthValue, bool bWorldCoords ) : Vector3

Returns the space coordinates of a depth-map point, or Vector3.zero if the sensor is not initialized

MapSpacePointToDepthCoords ( Vector3 posPoint ) : Vector2

Returns the depth-map coordinates of a space point, or Vector2.zero if Kinect is not initialized

OnDestroy ( ) : void
OnGUI ( ) : void
ResetFilters ( ) : void

Resets the Kinect data filters.

ResetGesture ( Int64 UserId, KinectGestures gesture ) : bool

Resets the gesture state for the given gesture of the specified user.

ResetPlayerGestures ( Int64 UserId ) : void

Resets the gesture states for all gestures of the specified user.

SetBodyFrameData ( string sLine ) : bool

Sets the body frame from the given csv line.

SetDisplayedBodyIndex ( int iBodyIndex ) : bool

Sets the body index [0-5], if a single body must be displayed on the user map, or -1 if all bodies must be displayed.

SetPrimaryUserID ( Int64 userId ) : bool

Sets the primary user ID, in order to change the active user.

StartKinect ( ) : void
Update ( ) : void
UpdateColorMap ( ) : void
UpdateInfraredMap ( ) : void
UpdateUserHistogramImage ( ) : void
UpdateUserMap ( ) : void

Private Methods

Method Description
CalculateJointOrients ( KinectInterop &bodyData ) : void
CalibrateUser ( Int64 userId, int bodyIndex ) : void
CheckForCalibrationPose ( Int64 UserId, int bodyIndex, KinectGestures calibrationGesture ) : bool
CheckForGestures ( Int64 UserId ) : void
DrawSkeleton ( Texture2D aTexture, KinectInterop &bodyData ) : void
GetGestureIndex ( KinectGestures gesture, List &gesturesData ) : int
GetSensorData ( ) : KinectInterop.SensorData

Gets the sensor data structure (this structure should not be modified and must be used only internally).

GetUserBodyData ( Int64 userId ) : KinectInterop.BodyData

Gets the user body data (for internal purposes only).

IsConflictingGestureInProgress ( KinectGestures gestureData, List &gesturesData ) : bool
ProcessBodyFrameData ( ) : void
ProcessBodySpecialData ( KinectInterop &bodyData ) : void
RemoveUser ( Int64 userId ) : void
SwitchJointsData ( KinectInterop &bodyData, int jointL, int jointR ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

ClearGestures() public method

Deletes all gestures for the specified user.
public ClearGestures ( Int64 UserId ) : void
UserId Int64 User ID
return void

ClearKinectUsers() public method

Removes all currently detected users, allowing new user-detection process to start.
public ClearKinectUsers ( ) : void
return void

DeleteGesture() public method

Deletes the gesture for the specified user.
public DeleteGesture ( Int64 UserId, KinectGestures gesture ) : bool
UserId Int64 User ID
gesture KinectGestures Gesture type
return bool

DetectGesture() public method

Adds a gesture to the list of detected gestures for the specified user.
public DetectGesture ( Int64 UserId, KinectGestures gesture ) : void
UserId Int64 User ID
gesture KinectGestures Gesture type
return void

EnablePlayMode() public method

Enables or displables the play mode.
public EnablePlayMode ( bool bEnabled ) : void
bEnabled bool If set to true enables the play mode.
return void

GetBodyCount() public method

Gets the number of bodies, tracked by the sensor.
public GetBodyCount ( ) : int
return int

GetBodyFrameData() public method

Gets the body frame as one csv line, or returns empty string if there is no new body frame.
public GetBodyFrameData ( long &liRelTime, float &fUnityTime ) : string
liRelTime long Reference to variable, used to compare frame times.
fUnityTime float Reference to variable, used to save the current Unity time.
return string

GetBodyFrameTimestamp() public method

Gets the last body frame timestamp.
public GetBodyFrameTimestamp ( ) : long
return long

GetBodyIndexByUserId() public method

Gets the body index by the specified user ID, or -1 if the user ID does not exist.
public GetBodyIndexByUserId ( Int64 userId ) : int
userId Int64 User ID
return int

GetColorImageHeight() public method

Gets the height of the color image, returned by the sensor.
public GetColorImageHeight ( ) : int
return int

GetColorImageWidth() public method

Gets the width of the color image, returned by the sensor.
public GetColorImageWidth ( ) : int
return int

GetDepthForPixel() public method

Gets the depth value for the specified pixel, if ComputeUserMap is true.
public GetDepthForPixel ( int x, int y ) : ushort
x int The X coordinate of the pixel.
y int The Y coordinate of the pixel.
return ushort

GetDepthImageHeight() public method

Gets the height of the depth image, returned by the sensor.
public GetDepthImageHeight ( ) : int
return int

GetDepthImageWidth() public method

Gets the width of the depth image, returned by the sensor.
public GetDepthImageWidth ( ) : int
return int

GetDirectionBetweenJoints() public method

Gets the direction between the given joints of the specified user.
public GetDirectionBetweenJoints ( Int64 userId, int firstJoint, int secondJoint, bool flipX, bool flipZ ) : Vector3
userId Int64 User ID
firstJoint int First joint index
secondJoint int Second joint index
flipX bool If set to true flips the X-coordinate
flipZ bool If set to true flips the Z-coordinate
return UnityEngine.Vector3

GetDisplayedBodyIndex() public method

Gets the body index [0-5], if there is single body selected to be displayed on the user map, or -1 if all bodies are displayed.
public GetDisplayedBodyIndex ( ) : int
return int

GetGestureAtIndex() public method

Gets the gesture at the specified index for the given user.
public GetGestureAtIndex ( Int64 UserId, int i ) : KinectGestures.Gestures
UserId Int64 User ID
i int Index
return KinectGestures.Gestures

GetGestureProgress() public method

Gets the progress (in range [0, 1]) of the given gesture for the specified user.
public GetGestureProgress ( Int64 UserId, KinectGestures gesture ) : float
UserId Int64 User ID
gesture KinectGestures Gesture type
return float

GetGestureScreenPos() public method

Gets the normalized screen position of the given gesture for the specified user.
public GetGestureScreenPos ( Int64 UserId, KinectGestures gesture ) : Vector3
UserId Int64 User ID
gesture KinectGestures Gesture type
return UnityEngine.Vector3

GetGesturesCount() public method

Gets the gestures count for the specified user.
public GetGesturesCount ( Int64 UserId ) : int
UserId Int64 User ID
return int

GetGesturesList() public method

Gets the list of gestures for the specified user.
public GetGesturesList ( Int64 UserId ) : List
UserId Int64 User ID
return List

GetJointCount() public method

Gets the the number of body joints, tracked by the sensor.
public GetJointCount ( ) : int
return int

GetJointDirection() public method

Gets the joint direction of the specified user, relative to its parent joint.
public GetJointDirection ( Int64 userId, int joint, bool flipX, bool flipZ ) : Vector3
userId Int64 User ID
joint int Joint index
flipX bool If set to true flips the X-coordinate
flipZ bool If set to true flips the Z-coordinate
return UnityEngine.Vector3

GetJointIndex() public method

Gets the index of the joint in the joint's array
public GetJointIndex ( KinectInterop joint ) : int
joint KinectInterop Joint.
return int

GetJointKinectPosition() public method

Gets the joint position of the specified user, in Kinect coordinate system, in meters.
public GetJointKinectPosition ( Int64 userId, int joint ) : Vector3
userId Int64 User ID
joint int Joint index
return UnityEngine.Vector3

GetJointOrientation() public method

Gets the joint orientation of the specified user.
public GetJointOrientation ( Int64 userId, int joint, bool flip ) : Quaternion
userId Int64 User ID
joint int Joint index
flip bool If set to true, this means non-mirrored rotation
return UnityEngine.Quaternion

GetJointPosColorOverlay() public method

Gets the 3d overlay position of the given joint over the color-image.
public GetJointPosColorOverlay ( Int64 userId, int joint, Camera camera, Rect imageRect ) : Vector3
userId Int64 User ID
joint int Joint index
camera UnityEngine.Camera Camera used to visualize the 3d overlay position
imageRect UnityEngine.Rect Color image rectangle on the screen
return UnityEngine.Vector3

GetJointPosDepthOverlay() public method

Gets the 3d overlay position of the given joint over the depth-image.
public GetJointPosDepthOverlay ( Int64 userId, int joint, Camera camera, Rect imageRect ) : Vector3
userId Int64 User ID
joint int Joint index
camera UnityEngine.Camera Camera used to visualize the 3d overlay position
imageRect UnityEngine.Rect Depth image rectangle on the screen
return UnityEngine.Vector3

GetJointPosition() public method

Gets the joint position of the specified user, in meters.
public GetJointPosition ( Int64 userId, int joint ) : Vector3
userId Int64 User ID
joint int Joint index
return UnityEngine.Vector3

GetJointTrackingState() public method

Gets the tracking state of the joint.
public GetJointTrackingState ( Int64 userId, int joint ) : KinectInterop.TrackingState
userId Int64 User ID
joint int Joint index
return KinectInterop.TrackingState

GetLeftHandInteractionBox() public method

Gets the left hand interaction box for the specified user.
public GetLeftHandInteractionBox ( Int64 userId, Vector3 &leftBotBack, Vector3 &rightTopFront, bool bValidBox ) : bool
userId Int64 User ID
leftBotBack UnityEngine.Vector3 Vector containing the left, bottom and back coordinates, in meters
rightTopFront UnityEngine.Vector3 Vector containing the right, top and front coordinates, in meters
bValidBox bool If set to true, the previously set coordinates are valid
return bool

GetLeftHandState() public method

Gets the left hand state for the specified user.
public GetLeftHandState ( Int64 userId ) : KinectInterop.HandState
userId Int64 User ID
return KinectInterop.HandState

GetParentJoint() public method

Gets the parent joint of the given joint.
public GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop Joint.
return KinectInterop.JointType

GetPrimaryUserID() public method

Gets the UserID of the primary user (the first or the closest one), or 0 if no user is detected.
public GetPrimaryUserID ( ) : Int64
return Int64

GetRawBodyIndexMap() public method

Gets the raw body index data, if ComputeUserMap is true.
public GetRawBodyIndexMap ( ) : byte[]
return byte[]

GetRawDepthMap() public method

Gets the raw depth data, if ComputeUserMap is true.
public GetRawDepthMap ( ) : ushort[]
return ushort[]

GetRawInfraredMap() public method

Gets the raw infrared data, if ComputeInfraredMap is true.
public GetRawInfraredMap ( ) : ushort[]
return ushort[]

GetRightHandInteractionBox() public method

Gets the right hand interaction box for the specified user.
public GetRightHandInteractionBox ( Int64 userId, Vector3 &leftBotBack, Vector3 &rightTopFront, bool bValidBox ) : bool
userId Int64 User ID
leftBotBack UnityEngine.Vector3 Vector containing the left, bottom and back coordinates, in meters
rightTopFront UnityEngine.Vector3 ector containing the right, top and front coordinates, in meters
bValidBox bool If set to true, the previously set coordinates are valid
return bool

GetRightHandState() public method

Gets the right hand state for the specified user.
public GetRightHandState ( Int64 userId ) : KinectInterop.HandState
userId Int64 User ID
return KinectInterop.HandState

GetSensorPlatform() public method

Gets the selected depth-sensor platform.
public GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform
return KinectInterop.DepthSensorPlatform

GetTrackedBodyIndices() public method

Gets the list of tracked body indices.
public GetTrackedBodyIndices ( ) : List
return List

GetUserIdByIndex() public method

Gets the user ID by the specified user index.
public GetUserIdByIndex ( int i ) : Int64
i int The user index.
return Int64

GetUserIndexById() public method

Gets the user index by the specified user ID.
public GetUserIndexById ( Int64 userId ) : int
userId Int64 User ID
return int

GetUserOrientation() public method

Gets the user orientation.
public GetUserOrientation ( Int64 userId, bool flip ) : Quaternion
userId Int64 User ID
flip bool If set to true, this means non-mirrored rotation.
return UnityEngine.Quaternion

GetUserPosition() public method

Gets the user position, relative to the sensor, in meters.
public GetUserPosition ( Int64 userId ) : Vector3
userId Int64 User ID
return UnityEngine.Vector3

GetUsersClrTex() public method

Gets the color image texture,if ComputeColorMap is true
public GetUsersClrTex ( ) : Texture2D
return UnityEngine.Texture2D

GetUsersCount() public method

Gets the number of currently detected users.
public GetUsersCount ( ) : int
return int

GetUsersLblTex() public method

Gets the users' histogram texture, if ComputeUserMap is true
public GetUsersLblTex ( ) : Texture2D
return UnityEngine.Texture2D

IsGestureCancelled() public method

Determines whether the given gesture for the specified user is canceled.
public IsGestureCancelled ( Int64 UserId, KinectGestures gesture ) : bool
UserId Int64 User ID
gesture KinectGestures Gesture type
return bool

IsGestureComplete() public method

Determines whether the given gesture for the specified user is complete.
public IsGestureComplete ( Int64 UserId, KinectGestures gesture, bool bResetOnComplete ) : bool
UserId Int64 User ID
gesture KinectGestures Gesture type
bResetOnComplete bool If set to true, resets the gesture state.
return bool

IsInitialized() public method

Determines if the sensor and KinectManager-component are initialized and ready to use.
public IsInitialized ( ) : bool
return bool

IsJointTracked() public method

Determines whether the given joint of the specified user is being tracked.
public IsJointTracked ( Int64 userId, int joint ) : bool
userId Int64 User ID
joint int Joint index
return bool

IsKinectInitialized() public static method

Determines if the sensor and KinectManager-component are initialized and ready to use.
public static IsKinectInitialized ( ) : bool
return bool

IsLeftHandConfidenceHigh() public method

Determines whether the left hand confidence is high for the specified user.
public IsLeftHandConfidenceHigh ( Int64 userId ) : bool
userId Int64 User ID
return bool

IsPlayModeEnabled() public method

Determines whether the play mode is enabled or not.
public IsPlayModeEnabled ( ) : bool
return bool

IsRightHandConfidenceHigh() public method

Determines whether the right hand confidence is high for the specified user.
public IsRightHandConfidenceHigh ( Int64 userId ) : bool
userId Int64 User ID
return bool

IsTrackedUsersLimited() public method

Determines whether the tracked users are limited by their number or distance or not.
public IsTrackedUsersLimited ( ) : bool
return bool

IsTrackingGesture() public method

Determines whether the given gesture is in the list of gestures for the specified user.
public IsTrackingGesture ( Int64 UserId, KinectGestures gesture ) : bool
UserId Int64 User ID
gesture KinectGestures Gesture type
return bool

IsUserDetected() public method

Determines whether at least one user is currently detected by the sensor
public IsUserDetected ( ) : bool
return bool

IsUserTracked() public method

Determines whether the user with the specified userId is in the list of tracked users or not.
public IsUserTracked ( Int64 userId ) : bool
userId Int64 User identifier.
return bool

IsUserTurnedAround() public method

Determines whether the given user is turned around or not.
public IsUserTurnedAround ( Int64 userId ) : bool
userId Int64 User ID
return bool

LateUpdate() public method

public LateUpdate ( ) : void
return void

MapColorFrameToDepthCoords() public method

Maps the color frame to depth coordinates.
public MapColorFrameToDepthCoords ( Vector2 &avDepthCoords ) : bool
avDepthCoords UnityEngine.Vector2 Buffer for color-to-depth coordinates.
return bool

MapDepthFrameToColorCoords() public method

Maps the depth frame to color coordinates.
public MapDepthFrameToColorCoords ( Vector2 &avColorCoords ) : bool
avColorCoords UnityEngine.Vector2 Buffer for depth-to-color coordinates.
return bool

MapDepthPointToColorCoords() public method

Returns the color-map coordinates of a depth point.
public MapDepthPointToColorCoords ( Vector2 posPoint, ushort depthValue ) : Vector2
posPoint UnityEngine.Vector2 Depth point coordinates
depthValue ushort Depth value
return UnityEngine.Vector2

MapDepthPointToSpaceCoords() public method

Returns the space coordinates of a depth-map point, or Vector3.zero if the sensor is not initialized
public MapDepthPointToSpaceCoords ( Vector2 posPoint, ushort depthValue, bool bWorldCoords ) : Vector3
posPoint UnityEngine.Vector2 Depth point coordinates
depthValue ushort Depth value
bWorldCoords bool If set to true, applies the sensor height and angle to the space coordinates.
return UnityEngine.Vector3

MapSpacePointToDepthCoords() public method

Returns the depth-map coordinates of a space point, or Vector2.zero if Kinect is not initialized
public MapSpacePointToDepthCoords ( Vector3 posPoint ) : Vector2
posPoint UnityEngine.Vector3 Space point coordinates
return UnityEngine.Vector2

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

ResetFilters() public method

Resets the Kinect data filters.
public ResetFilters ( ) : void
return void

ResetGesture() public method

Resets the gesture state for the given gesture of the specified user.
public ResetGesture ( Int64 UserId, KinectGestures gesture ) : bool
UserId Int64 User ID
gesture KinectGestures Gesture type
return bool

ResetPlayerGestures() public method

Resets the gesture states for all gestures of the specified user.
public ResetPlayerGestures ( Int64 UserId ) : void
UserId Int64 User ID
return void

SetBodyFrameData() public method

Sets the body frame from the given csv line.
public SetBodyFrameData ( string sLine ) : bool
sLine string The body frame as csv line.
return bool

SetDisplayedBodyIndex() public method

Sets the body index [0-5], if a single body must be displayed on the user map, or -1 if all bodies must be displayed.
public SetDisplayedBodyIndex ( int iBodyIndex ) : bool
iBodyIndex int The single body index, or -1 if all bodies must be displayed.
return bool

SetPrimaryUserID() public method

Sets the primary user ID, in order to change the active user.
public SetPrimaryUserID ( Int64 userId ) : bool
userId Int64 User ID
return bool

StartKinect() public method

public StartKinect ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateColorMap() public method

public UpdateColorMap ( ) : void
return void

UpdateInfraredMap() public method

public UpdateInfraredMap ( ) : void
return void

UpdateUserHistogramImage() public method

public UpdateUserHistogramImage ( ) : void
return void

UpdateUserMap() public method

public UpdateUserMap ( ) : void
return void

Property Details

isDefaultKM public property

public bool isDefaultKM
return bool