ToolListΒΆ

Properties:

Methods:

class Leap::ToolList

The ToolList class represents a list of Tool objects.

ToolList allToolsInFrame = frame.Tools;

Public Functions

ToolList Append(ToolList other)

Appends the members of the specified ToolList to this ToolList.

Parameters

ToolList()

Constructs an empty list of tools.

Property

int Count

Returns the number of tools in this list.

if (frame.Tools.Count > 0) {
    //Process tools
}

Return
The number of tools in this list.

Tool Frontmost

The member of the list that is farthest to the front within the standard Leap Motion frame of reference (i.e has the smallest Z coordinate).

Tool frontmostTool = frame.Tools.Frontmost;

Return
The frontmost tool, or invalid if list is empty.

bool IsEmpty

Reports whether the list is empty.

if (!frame.Tools.IsEmpty) {
    //Process this frame's tools
}

Return
True, if the list has no members.

Tool Leftmost

The member of the list that is farthest to the left within the standard Leap Motion frame of reference (i.e has the smallest X coordinate).

Tool leftmostTool = frame.Tools.Leftmost;

Return
The leftmost tool, or invalid if list is empty.

Tool Rightmost

The member of the list that is farthest to the right within the standard Leap Motion frame of reference (i.e has the largest X coordinate).

Tool rightmostTool = frame.Tools.Rightmost;

Return
The rightmost tool, or invalid if list is empty.