C# 클래스 Kinect.FacetrackingManager

Facetracking manager is the component that deals with head and face tracking.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: BrainProject/UnityTemp 1 사용 예제들

공개 메소드들

메소드 설명
GetAnimUnit ( KinectInterop faceAnimKey ) : float

Gets the animation unit value at given index, or 0 if the index is invalid.

GetFaceColorRect ( long userId ) : Rect

Gets the tracked face rectangle of the specified user in color image coordinates, or zero-rect if the user's face is not tracked.

GetFaceModelTriangleIndices ( bool bMirroredModel ) : int[]

Gets the face model triangle indices, if a face model is available; null otherwise.

GetFaceModelVertex ( int index ) : Vector3

Gets the face model vertex, if a face model is available and the index is in range; Vector3.zero otherwise.

GetFaceModelVertexCount ( ) : int

Gets the count of face model vertices.

GetFaceModelVertices ( ) : Vector3[]

Gets all face model vertices, if a face model is available; null otherwise.

GetFaceTrackingID ( ) : long

Gets the current user ID, or 0 if no user is currently tracked.

GetHeadPosition ( bool bMirroredMovement ) : Vector3

Gets the head position of the currently tracked user.

GetHeadPosition ( long userId, bool bMirroredMovement ) : Vector3

Gets the head position of the specified user.

GetHeadRotation ( bool bMirroredMovement ) : Quaternion

Gets the head rotation of the currently tracked user.

GetHeadRotation ( long userId, bool bMirroredMovement ) : Quaternion

Gets the head rotation of the specified user.

GetShapeUnit ( KinectInterop faceShapeKey ) : float

Gets the shape unit value at given index, or 0 if the index is invalid.

GetUserAnimUnits ( long userId, float>.Dictionary &dictAnimUnits ) : bool

Gets all animation units for the specified user.

GetUserFaceVertices ( long userId, Vector3 &avVertices ) : bool

Gets all face model vertices for the specified user.

GetUserShapeUnits ( long userId, float>.Dictionary &dictShapeUnits ) : bool

Gets all animation units for the specified user.

IsFaceTrackingInitialized ( ) : bool

Determines the facetracking system was successfully initialized, false otherwise.

IsGotAU ( ) : bool

Determines whether there are valid anim units.

IsGotSU ( ) : bool

Determines whether there are valid shape units.

IsTrackingFace ( ) : bool

Determines whether this the sensor is currently tracking a face.

IsTrackingFace ( long userId ) : bool

Determines whether the sensor is currently tracking the face of the specified user.

OnDestroy ( ) : void
OnGUI ( ) : void
Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
CreateFaceModelMesh ( ) : void
UpdateFaceModelMesh ( ) : void

메소드 상세

GetAnimUnit() 공개 메소드

Gets the animation unit value at given index, or 0 if the index is invalid.
public GetAnimUnit ( KinectInterop faceAnimKey ) : float
faceAnimKey KinectInterop Face animation unit.
리턴 float

GetFaceColorRect() 공개 메소드

Gets the tracked face rectangle of the specified user in color image coordinates, or zero-rect if the user's face is not tracked.
public GetFaceColorRect ( long userId ) : Rect
userId long User ID
리턴 UnityEngine.Rect

GetFaceModelTriangleIndices() 공개 메소드

Gets the face model triangle indices, if a face model is available; null otherwise.
public GetFaceModelTriangleIndices ( bool bMirroredModel ) : int[]
bMirroredModel bool If set to true gets mirorred model indices.
리턴 int[]

GetFaceModelVertex() 공개 메소드

Gets the face model vertex, if a face model is available and the index is in range; Vector3.zero otherwise.
public GetFaceModelVertex ( int index ) : Vector3
index int Vertex index, or Vector3.zero
리턴 Vector3

GetFaceModelVertexCount() 공개 메소드

Gets the count of face model vertices.
public GetFaceModelVertexCount ( ) : int
리턴 int

GetFaceModelVertices() 공개 메소드

Gets all face model vertices, if a face model is available; null otherwise.
public GetFaceModelVertices ( ) : Vector3[]
리턴 Vector3[]

GetFaceTrackingID() 공개 메소드

Gets the current user ID, or 0 if no user is currently tracked.
public GetFaceTrackingID ( ) : long
리턴 long

GetHeadPosition() 공개 메소드

Gets the head position of the currently tracked user.
public GetHeadPosition ( bool bMirroredMovement ) : Vector3
bMirroredMovement bool If set to true returns mirorred head position.
리턴 Vector3

GetHeadPosition() 공개 메소드

Gets the head position of the specified user.
public GetHeadPosition ( long userId, bool bMirroredMovement ) : Vector3
userId long User ID
bMirroredMovement bool If set to true returns mirorred head position.
리턴 Vector3

GetHeadRotation() 공개 메소드

Gets the head rotation of the currently tracked user.
public GetHeadRotation ( bool bMirroredMovement ) : Quaternion
bMirroredMovement bool If set to true returns mirorred head rotation.
리턴 UnityEngine.Quaternion

GetHeadRotation() 공개 메소드

Gets the head rotation of the specified user.
public GetHeadRotation ( long userId, bool bMirroredMovement ) : Quaternion
userId long User ID
bMirroredMovement bool If set to true returns mirorred head rotation.
리턴 UnityEngine.Quaternion

GetShapeUnit() 공개 메소드

Gets the shape unit value at given index, or 0 if the index is invalid.
public GetShapeUnit ( KinectInterop faceShapeKey ) : float
faceShapeKey KinectInterop Face shape unit.
리턴 float

GetUserAnimUnits() 공개 메소드

Gets all animation units for the specified user.
public GetUserAnimUnits ( long userId, float>.Dictionary &dictAnimUnits ) : bool
userId long User ID
dictAnimUnits float>.Dictionary Animation units dictionary, to get the results.
리턴 bool

GetUserFaceVertices() 공개 메소드

Gets all face model vertices for the specified user.
public GetUserFaceVertices ( long userId, Vector3 &avVertices ) : bool
userId long User ID
avVertices Vector3 Reference to array of vertices, to get the result.
리턴 bool

GetUserShapeUnits() 공개 메소드

Gets all animation units for the specified user.
public GetUserShapeUnits ( long userId, float>.Dictionary &dictShapeUnits ) : bool
userId long User ID
dictShapeUnits float>.Dictionary Shape units dictionary, to get the results.
리턴 bool

IsFaceTrackingInitialized() 공개 메소드

Determines the facetracking system was successfully initialized, false otherwise.
public IsFaceTrackingInitialized ( ) : bool
리턴 bool

IsGotAU() 공개 메소드

Determines whether there are valid anim units.
public IsGotAU ( ) : bool
리턴 bool

IsGotSU() 공개 메소드

Determines whether there are valid shape units.
public IsGotSU ( ) : bool
리턴 bool

IsTrackingFace() 공개 메소드

Determines whether this the sensor is currently tracking a face.
public IsTrackingFace ( ) : bool
리턴 bool

IsTrackingFace() 공개 메소드

Determines whether the sensor is currently tracking the face of the specified user.
public IsTrackingFace ( long userId ) : bool
userId long User ID
리턴 bool

OnDestroy() 공개 메소드

public OnDestroy ( ) : void
리턴 void

OnGUI() 공개 메소드

public OnGUI ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void