C# 클래스 Kinect.KinectManager

KinectManager: establishes a connection with the Kinect and it keeps track of the number of users.
파일 보기 프로젝트 열기: BrainProject/UnityTemp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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