C# Class Kinect.KinectManager

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

Méthodes publiques

Свойство Type Description
isDefaultKM bool

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Awake ( ) : void
Résultat void

ClearGestures() public méthode

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

ClearKinectUsers() public méthode

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

DeleteGesture() public méthode

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

DetectGesture() public méthode

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
Résultat void

EnablePlayMode() public méthode

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

GetBodyCount() public méthode

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

GetBodyFrameData() public méthode

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.
Résultat string

GetBodyFrameTimestamp() public méthode

Gets the last body frame timestamp.
public GetBodyFrameTimestamp ( ) : long
Résultat long

GetBodyIndexByUserId() public méthode

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
Résultat int

GetColorImageHeight() public méthode

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

GetColorImageWidth() public méthode

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

GetDepthForPixel() public méthode

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.
Résultat ushort

GetDepthImageHeight() public méthode

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

GetDepthImageWidth() public méthode

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

GetDirectionBetweenJoints() public méthode

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
Résultat UnityEngine.Vector3

GetDisplayedBodyIndex() public méthode

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
Résultat int

GetGestureAtIndex() public méthode

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
Résultat KinectGestures.Gestures

GetGestureProgress() public méthode

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
Résultat float

GetGestureScreenPos() public méthode

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
Résultat UnityEngine.Vector3

GetGesturesCount() public méthode

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

GetGesturesList() public méthode

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

GetJointCount() public méthode

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

GetJointDirection() public méthode

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
Résultat UnityEngine.Vector3

GetJointIndex() public méthode

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

GetJointKinectPosition() public méthode

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
Résultat UnityEngine.Vector3

GetJointOrientation() public méthode

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
Résultat UnityEngine.Quaternion

GetJointPosColorOverlay() public méthode

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
Résultat UnityEngine.Vector3

GetJointPosDepthOverlay() public méthode

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
Résultat UnityEngine.Vector3

GetJointPosition() public méthode

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
Résultat UnityEngine.Vector3

GetJointTrackingState() public méthode

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

GetLeftHandInteractionBox() public méthode

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
Résultat bool

GetLeftHandState() public méthode

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

GetParentJoint() public méthode

Gets the parent joint of the given joint.
public GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop Joint.
Résultat KinectInterop.JointType

GetPrimaryUserID() public méthode

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

GetRawBodyIndexMap() public méthode

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

GetRawDepthMap() public méthode

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

GetRawInfraredMap() public méthode

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

GetRightHandInteractionBox() public méthode

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
Résultat bool

GetRightHandState() public méthode

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

GetSensorPlatform() public méthode

Gets the selected depth-sensor platform.
public GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform
Résultat KinectInterop.DepthSensorPlatform

GetTrackedBodyIndices() public méthode

Gets the list of tracked body indices.
public GetTrackedBodyIndices ( ) : List
Résultat List

GetUserIdByIndex() public méthode

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

GetUserIndexById() public méthode

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

GetUserOrientation() public méthode

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.
Résultat UnityEngine.Quaternion

GetUserPosition() public méthode

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

GetUsersClrTex() public méthode

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

GetUsersCount() public méthode

Gets the number of currently detected users.
public GetUsersCount ( ) : int
Résultat int

GetUsersLblTex() public méthode

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

IsGestureCancelled() public méthode

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
Résultat bool

IsGestureComplete() public méthode

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.
Résultat bool

IsInitialized() public méthode

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

IsJointTracked() public méthode

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
Résultat bool

IsKinectInitialized() public static méthode

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

IsLeftHandConfidenceHigh() public méthode

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

IsPlayModeEnabled() public méthode

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

IsRightHandConfidenceHigh() public méthode

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

IsTrackedUsersLimited() public méthode

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

IsTrackingGesture() public méthode

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
Résultat bool

IsUserDetected() public méthode

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

IsUserTracked() public méthode

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.
Résultat bool

IsUserTurnedAround() public méthode

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

LateUpdate() public méthode

public LateUpdate ( ) : void
Résultat void

MapColorFrameToDepthCoords() public méthode

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

MapDepthFrameToColorCoords() public méthode

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

MapDepthPointToColorCoords() public méthode

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
Résultat UnityEngine.Vector2

MapDepthPointToSpaceCoords() public méthode

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.
Résultat UnityEngine.Vector3

MapSpacePointToDepthCoords() public méthode

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
Résultat UnityEngine.Vector2

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

ResetFilters() public méthode

Resets the Kinect data filters.
public ResetFilters ( ) : void
Résultat void

ResetGesture() public méthode

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
Résultat bool

ResetPlayerGestures() public méthode

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

SetBodyFrameData() public méthode

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

SetDisplayedBodyIndex() public méthode

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.
Résultat bool

SetPrimaryUserID() public méthode

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

StartKinect() public méthode

public StartKinect ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

UpdateColorMap() public méthode

public UpdateColorMap ( ) : void
Résultat void

UpdateInfraredMap() public méthode

public UpdateInfraredMap ( ) : void
Résultat void

UpdateUserHistogramImage() public méthode

public UpdateUserHistogramImage ( ) : void
Résultat void

UpdateUserMap() public méthode

public UpdateUserMap ( ) : void
Résultat void

Property Details

isDefaultKM public_oe property

public bool isDefaultKM
Résultat bool