TrackedQuadΒΆ
Properties:
Methods:
Note: This class is an experimental API for internal use only.
It may be removed without warning.
Represents a quad-like object tracked by the Leap Motion sensors.
Only one quad can be tracked. Once a supported quad is tracked, the state of that quad will be updated for each frame of Leap Motion tracking data.
A TrackedQuad object represents the state of the quad at one moment in time. Get a new object from subsequent frames to get the latest state information.
Public Functions
- Since
- 2.2.6
Propertybool Equals(TrackedQuad arg0)Compares quad objects for equality.
- Since
- 2.2.6
TrackedQuad()Constructs a new TrackedQuad object.
Do not use. Get valid TrackedQuads from a Controller or Frame object.
Leap.Controller controller = new Controller(); Leap.TrackedQuad quad = controller.TrackedQuad;Leap.Controller controller = new Controller(); Leap.Frame frame = controller.Frame(); Leap.TrackedQuad quad = frame.TrackedQuad;
- Since
- 2.2.6
float Height
The physical height of the quad display area in millimeters.
Leap.TrackedQuad quad = frame.TrackedQuad; float displayHeight = quad.Height;
- Since
- 2.2.6
ImageList Images
The images from which the state of this TrackedQuad was derived.
These are the same image objects that you can get from the Controller or Frame object from which you got this TrackedQuad.
Leap.TrackedQuad quad = frame.TrackedQuad; Leap.Image leftImage = quad.Images[0]; Leap.Image rightImage = quad.Images[1];
- Since
- 2.2.6
TrackedQuad Invalid
An invalid object.
- Since
- 2.2.6
bool IsValid
Reports whether this is a valid object.
Leap.TrackedQuad quad = frame.TrackedQuad; if(quad.IsValid){ // Use the quad data... }
- Since
- 2.2.6
MaskList Masks
The list of masks for the current set of images.
A mask is a bitmap indicating which pixels in the image contain fingers or part of the hand in front of the quad.
The mask at index 0 corresponds to the left image; that with index 1, to the right image.
Leap.TrackedQuad quad = frame.TrackedQuad; Leap.Mask leftMask = quad.Masks[0]; Leap.Mask rightMask = quad.Masks[1];
- Since
- 2.2.6
Matrix Orientation
The orientation of the quad within the Leap Motion frame of reference.
Leap.TrackedQuad quad = frame.TrackedQuad; Leap.Matrix quadOrientation = quad.Orientation;
- Since
- 2.2.6
Vector Position
The position of the center of the quad display area within the Leap Motion frame of reference.
In millimeters.
Leap.TrackedQuad quad = frame.TrackedQuad; Leap.Vector quadPosition = quad.Position;
- Since
- 2.2.6
int ResolutionX
The horizontal resolution of the quad display area in pixels.
This value is set in a configuration file. It is not determined dynamically.
Leap.TrackedQuad quad = frame.TrackedQuad; int horizontalResolution = quad.ResolutionX;
- Since
- 2.2.6
int ResolutionY
The vertical resolution of the quad display area in pixels.
This value is set in a configuration file. It is not determined dynamically.
Leap.TrackedQuad quad = frame.TrackedQuad; int verticalResolution = quad.ResolutionY;
- Since
- 2.2.6
bool Visible
Reports whether the quad is currently detected within the Leap Motion field of view.
Leap.TrackedQuad quad = frame.TrackedQuad; if (quad.Visible) { Leap.Vector position = quad.Position; Leap.Matrix orientation = quad.Orientation; } else { //Get position and orientation from quad, if available }
- Since
- 2.2.6
float Width
The physical width of the quad display area in millimeters.
Leap.TrackedQuad quad = frame.TrackedQuad; float displayWidth = quad.Width;
- Since
- 2.2.6