Properties:
Methods:
The ToolList class represents a list of Tool objects.
ToolList allToolsInFrame = frame.Tools;Public FunctionsPropertyint 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.