Package com.leapmotion.leap

Examples of com.leapmotion.leap.Pointable


    this.lastDetectedPointable = new HashMap<Integer, Pointable>();
    this.lastDetectedHand = new HashMap<Integer, Hand>();
    this.lastDetectedTool = new HashMap<Integer, Tool>();

    this.lastDetectedFinger.put(0, new Finger());
    this.lastDetectedPointable.put(0, new Pointable());
    this.lastDetectedHand.put(0, new Hand());
    this.lastDetectedTool.put(0, new Tool());

    // this is neccessary because the velocity of all objects has an offset.
    this.velocityOffsetTestFinger = new Finger();
View Full Code Here


   *
   * @param pointableNr the number of the pointable
   * @return
   */
  public Pointable getPointable(int pointableNr) {
    Pointable returnPointable = null;
    if (!getPointableList().isEmpty()) {
      this.lastDetectedPointable.put(pointableNr, getPointableList().get(pointableNr));
    }
    // returnPointable = lastDetectedPointable.get(pointableNr);
    int downCounter = 0;
View Full Code Here

   * @param id the if of the pointbale
   * @param frame the frame where to look for the pointable
   * @return
   */
  public Pointable getPointableById(int id, Frame frame) {
    Pointable returnPointable = null;
    for (Pointable pointable : getPointableList(frame)) {
      if (pointable.id() == id) {
        returnPointable = pointable;
      }
    }
View Full Code Here

TOP

Related Classes of com.leapmotion.leap.Pointable

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.