Package org.mt4j.input.inputProcessors.componentProcessors.lassoProcessor

Examples of org.mt4j.input.inputProcessors.componentProcessors.lassoProcessor.LassoProcessor


   
    //Show touches
    this.registerGlobalInputProcessor(new CursorTracer(mtAppl, this));
   
    //Add multitouch gestures to the canvas background
    lassoProcessor  = new LassoProcessor(app, this.getCanvas(), this.getSceneCam());
    this.getCanvas().registerInputProcessor(lassoProcessor);
    this.getCanvas().addGestureListener(LassoProcessor.class, new DefaultLassoAction(app, this.getCanvas().getClusterManager(), this.getCanvas()));
   
    this.getCanvas().registerInputProcessor(new PanProcessorTwoFingers(app));
    this.getCanvas().addGestureListener(PanProcessorTwoFingers.class, new DefaultPanAction());
View Full Code Here


    this.getCanvas().addChild(lassoUs3);
    lassoUs3.setAnchor(PositionAnchor.UPPER_LEFT);
    lassoUs3.setPositionGlobal(new Vector3D(1f*horizontalPad,10*verticalPad,0));
   
    //Create the lasso processor and add the components which can be lassoed
    LassoProcessor lassoProcessor = new LassoProcessor(app, getCanvas(), getSceneCam());
    lassoProcessor.addClusterable(lassoUs1);
    lassoProcessor.addClusterable(lassoUs2);
    lassoProcessor.addClusterable(lassoUs3);
    getCanvas().registerInputProcessor(lassoProcessor);
    getCanvas().addGestureListener(LassoProcessor.class, new DefaultLassoAction(app, getCanvas().getClusterManager(), getCanvas()));
   
  }
View Full Code Here

TOP

Related Classes of org.mt4j.input.inputProcessors.componentProcessors.lassoProcessor.LassoProcessor

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.