C# Класс Kinect.KinectManager

KinectManager: establishes a connection with the Kinect and it keeps track of the number of users.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
isDefaultKM bool

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

Метод Описание
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

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

Метод Описание
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

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

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

public Awake ( ) : void
Результат void

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

Deletes all gestures for the specified user.
public ClearGestures ( Int64 UserId ) : void
UserId Int64 User ID
Результат void

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

Removes all currently detected users, allowing new user-detection process to start.
public ClearKinectUsers ( ) : void
Результат void

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

Deletes the gesture for the specified user.
public DeleteGesture ( Int64 UserId, KinectGestures gesture ) : bool
UserId Int64 User ID
gesture KinectGestures Gesture type
Результат bool

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

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
Результат void

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

Enables or displables the play mode.
public EnablePlayMode ( bool bEnabled ) : void
bEnabled bool If set to true enables the play mode.
Результат void

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

Gets the number of bodies, tracked by the sensor.
public GetBodyCount ( ) : int
Результат int

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

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.
Результат string

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

Gets the last body frame timestamp.
public GetBodyFrameTimestamp ( ) : long
Результат long

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

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
Результат int

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

Gets the height of the color image, returned by the sensor.
public GetColorImageHeight ( ) : int
Результат int

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

Gets the width of the color image, returned by the sensor.
public GetColorImageWidth ( ) : int
Результат int

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

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.
Результат ushort

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

Gets the height of the depth image, returned by the sensor.
public GetDepthImageHeight ( ) : int
Результат int

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

Gets the width of the depth image, returned by the sensor.
public GetDepthImageWidth ( ) : int
Результат int

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

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
Результат UnityEngine.Vector3

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

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
Результат int

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

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
Результат KinectGestures.Gestures

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

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
Результат float

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

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
Результат UnityEngine.Vector3

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

Gets the gestures count for the specified user.
public GetGesturesCount ( Int64 UserId ) : int
UserId Int64 User ID
Результат int

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

Gets the list of gestures for the specified user.
public GetGesturesList ( Int64 UserId ) : List
UserId Int64 User ID
Результат List

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

Gets the the number of body joints, tracked by the sensor.
public GetJointCount ( ) : int
Результат int

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

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
Результат UnityEngine.Vector3

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

Gets the index of the joint in the joint's array
public GetJointIndex ( KinectInterop joint ) : int
joint KinectInterop Joint.
Результат int

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

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
Результат UnityEngine.Vector3

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

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
Результат UnityEngine.Quaternion

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

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
Результат UnityEngine.Vector3

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

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
Результат UnityEngine.Vector3

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

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
Результат UnityEngine.Vector3

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

Gets the tracking state of the joint.
public GetJointTrackingState ( Int64 userId, int joint ) : KinectInterop.TrackingState
userId Int64 User ID
joint int Joint index
Результат KinectInterop.TrackingState

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

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
Результат bool

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

Gets the left hand state for the specified user.
public GetLeftHandState ( Int64 userId ) : KinectInterop.HandState
userId Int64 User ID
Результат KinectInterop.HandState

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

Gets the parent joint of the given joint.
public GetParentJoint ( KinectInterop joint ) : KinectInterop.JointType
joint KinectInterop Joint.
Результат KinectInterop.JointType

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

Gets the UserID of the primary user (the first or the closest one), or 0 if no user is detected.
public GetPrimaryUserID ( ) : Int64
Результат Int64

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

Gets the raw body index data, if ComputeUserMap is true.
public GetRawBodyIndexMap ( ) : byte[]
Результат byte[]

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

Gets the raw depth data, if ComputeUserMap is true.
public GetRawDepthMap ( ) : ushort[]
Результат ushort[]

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

Gets the raw infrared data, if ComputeInfraredMap is true.
public GetRawInfraredMap ( ) : ushort[]
Результат ushort[]

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

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
Результат bool

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

Gets the right hand state for the specified user.
public GetRightHandState ( Int64 userId ) : KinectInterop.HandState
userId Int64 User ID
Результат KinectInterop.HandState

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

Gets the selected depth-sensor platform.
public GetSensorPlatform ( ) : KinectInterop.DepthSensorPlatform
Результат KinectInterop.DepthSensorPlatform

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

Gets the list of tracked body indices.
public GetTrackedBodyIndices ( ) : List
Результат List

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

Gets the user ID by the specified user index.
public GetUserIdByIndex ( int i ) : Int64
i int The user index.
Результат Int64

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

Gets the user index by the specified user ID.
public GetUserIndexById ( Int64 userId ) : int
userId Int64 User ID
Результат int

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

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.
Результат UnityEngine.Quaternion

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

Gets the user position, relative to the sensor, in meters.
public GetUserPosition ( Int64 userId ) : Vector3
userId Int64 User ID
Результат UnityEngine.Vector3

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

Gets the color image texture,if ComputeColorMap is true
public GetUsersClrTex ( ) : Texture2D
Результат UnityEngine.Texture2D

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

Gets the number of currently detected users.
public GetUsersCount ( ) : int
Результат int

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

Gets the users' histogram texture, if ComputeUserMap is true
public GetUsersLblTex ( ) : Texture2D
Результат UnityEngine.Texture2D

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

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
Результат bool

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

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.
Результат bool

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

Determines if the sensor and KinectManager-component are initialized and ready to use.
public IsInitialized ( ) : bool
Результат bool

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

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
Результат bool

IsKinectInitialized() публичный статический Метод

Determines if the sensor and KinectManager-component are initialized and ready to use.
public static IsKinectInitialized ( ) : bool
Результат bool

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

Determines whether the left hand confidence is high for the specified user.
public IsLeftHandConfidenceHigh ( Int64 userId ) : bool
userId Int64 User ID
Результат bool

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

Determines whether the play mode is enabled or not.
public IsPlayModeEnabled ( ) : bool
Результат bool

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

Determines whether the right hand confidence is high for the specified user.
public IsRightHandConfidenceHigh ( Int64 userId ) : bool
userId Int64 User ID
Результат bool

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

Determines whether the tracked users are limited by their number or distance or not.
public IsTrackedUsersLimited ( ) : bool
Результат bool

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

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
Результат bool

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

Determines whether at least one user is currently detected by the sensor
public IsUserDetected ( ) : bool
Результат bool

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

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.
Результат bool

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

Determines whether the given user is turned around or not.
public IsUserTurnedAround ( Int64 userId ) : bool
userId Int64 User ID
Результат bool

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

public LateUpdate ( ) : void
Результат void

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

Maps the color frame to depth coordinates.
public MapColorFrameToDepthCoords ( Vector2 &avDepthCoords ) : bool
avDepthCoords UnityEngine.Vector2 Buffer for color-to-depth coordinates.
Результат bool

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

Maps the depth frame to color coordinates.
public MapDepthFrameToColorCoords ( Vector2 &avColorCoords ) : bool
avColorCoords UnityEngine.Vector2 Buffer for depth-to-color coordinates.
Результат bool

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

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
Результат UnityEngine.Vector2

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

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.
Результат UnityEngine.Vector3

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

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
Результат UnityEngine.Vector2

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

public OnDestroy ( ) : void
Результат void

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

public OnGUI ( ) : void
Результат void

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

Resets the Kinect data filters.
public ResetFilters ( ) : void
Результат void

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

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
Результат bool

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

Resets the gesture states for all gestures of the specified user.
public ResetPlayerGestures ( Int64 UserId ) : void
UserId Int64 User ID
Результат void

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

Sets the body frame from the given csv line.
public SetBodyFrameData ( string sLine ) : bool
sLine string The body frame as csv line.
Результат bool

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

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.
Результат bool

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

Sets the primary user ID, in order to change the active user.
public SetPrimaryUserID ( Int64 userId ) : bool
userId Int64 User ID
Результат bool

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

public StartKinect ( ) : void
Результат void

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

public Update ( ) : void
Результат void

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

public UpdateColorMap ( ) : void
Результат void

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

public UpdateInfraredMap ( ) : void
Результат void

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

public UpdateUserHistogramImage ( ) : void
Результат void

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

public UpdateUserMap ( ) : void
Результат void

Описание свойств

isDefaultKM публичное свойство

public bool isDefaultKM
Результат bool