Package com.leapmotion.leap

Examples of com.leapmotion.leap.Frame


   * @return
   */
  public ArrayList<Tool> getToolList() {
    ArrayList<Tool> tools = new ArrayList<Tool>();

    Frame frame = getFrame();
    if (frame.hands().isEmpty() == false) {
      for (Hand hand : frame.hands()) {
        tools.addAll(getToolList(hand));
      }
    }

    return tools;
View Full Code Here


   * @param p PApplet the processing applet
   * @param leap LeapMotionP5 an instance of the LeapMotionP5 class
   */
  public LeapMotionListener(LeapMotionP5 leap) {
    this.leap = leap;
    this.leap.currentFrame = new Frame();
    this.leap.lastFrames = new LinkedList<Frame>();
    this.leap.lastFramesInclProperTimestamps = new ConcurrentSkipListMap<Date, Frame>();
    this.leap.oldFrames = new CopyOnWriteArrayList<Frame>();
    this.leap.oldControllers = new LinkedList<Controller>();

View Full Code Here

   * this is called about 100-120 times a second delevering a new frame with information from the
   * leap tracking everything in its viewport. This is where most of the data which is accessible in
   * processing is coming from
   */
  public void onFrame(Controller controller) {
    Frame frame = controller.frame();
    this.leap.currentFrame = frame;

    processGestures(controller);

    // adding frames the list. making sure that only the newest frames are saved in order
View Full Code Here

TOP

Related Classes of com.leapmotion.leap.Frame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.