Share via


CursorModel Class

Maintains the data and state for a Kinect cursor.

Syntax

public ref class CursorModel sealed : IClosable
public sealed class CursorModel : IDisposable
var cursorModel = Microsoft.Kinect.Toolkit.Input.CursorModel;

Members

CursorModel has the following members.

Constructors

Name Description
CursorModel Creates a new instance of the CursorModel class.

Properties

Name Description
ClampedPressExtent Gets the extent of a clamped press gesture.
CurrentBackgroundFrame Gets the current frame of the background sprite animation.
CurrentForegroundFrame Gets the current frame of the foreground sprite animation.
CursorSpriteSheetDefinition Gets an object that defines the format of the sprite sheet associated with the cursor.
CursorState Gets a value indicating the current state of the cursor.
HandType Gets a value indicating the type of the hand associated with the cursor.
HoldProgress Gets a value indicating the progress of a hold gesture.
IsAnimationComplete Gets a value indicating if the cursor animation is complete.
PointerId Gets the identifier of the KinectPointerPoint Class associated with the cursor.
Position Gets the current position of the cursor.
PressExtent Gets the extent of a press gesture.

Methods

Name Description
Close Disposes of the object and associated resources.
StartTimeBasedAnimation Starts the cursor's time-based sprite animation.
Tick Increments the current frames of cursor's sprite animation.
Update Updates the position and state of the cursor.

Requirements

Namespace: Microsoft.Kinect.Toolkit.Input

Assembly: (in )

See also

Reference

Microsoft.Kinect.Toolkit.Input Namespace