ToolListΒΆ
Properties:
Methods:
class Leap::ToolList
The ToolList class represents a list of Tool objects.
Get a ToolList object by calling Frame::tools().
ToolList allToolsInFrame = frame.Tools;Public Functions
- Since
- 1.0
Propertyint Count
Returns the number of tools in this list.
if (frame.Tools.Count > 0) { //Process tools }
- Return
- The number of tools in this list.
- Since
- 1.0
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.
- Since
- 1.0
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.
- Since
- 1.0
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.
- Since
- 1.0
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.
- Since
- 1.0