Examples of MTCamera


Examples of org.mt4j.util.camera.MTCamera

        }
   
    //Show our touches
    this.registerGlobalInputProcessor(new CursorTracer(mtApplication, this));
   
    defaultCenterCam = new MTCamera(p);
   
    //Container for the foto tags on the map
    tagContainer = new MTComponent(p);
   
    //Container for the Fotos
View Full Code Here

Examples of org.mt4j.util.camera.MTCamera

  public FlickrScene(MTApplication mtAppl, String name) {
    super(mtAppl, name);
    this.app = mtAppl;
   
    //Set a zoom limit
    final MTCamera camManager = new MTCamera(mtAppl);
    this.setSceneCam(camManager);
    this.getSceneCam().setZoomMinDistance(80);
   
//    this.setClearColor(new MTColor(135, 206, 250, 255));
    this.setClearColor(new MTColor(70, 70, 72, 255));
   
    //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());

    this.getCanvas().registerInputProcessor(new ZoomProcessor(app));
    this.getCanvas().addGestureListener(ZoomProcessor.class, new DefaultZoomAction());
   
    pictureLayer = new MTComponent(app);
   
    MTComponent topLayer = new MTComponent(app, "top layer group", new MTCamera(app));
   
    //Load from file system
//    PImage keyboardImg = app.loadImage(System.getProperty("user.dir")+File.separator + "examples"+  File.separator +"advanced"+ File.separator+ File.separator + "flickrMT"+ File.separator +  File.separator + "data"+ File.separator
////    + "keyb2.png");
//    + "keyb128.png");
View Full Code Here

Examples of org.mt4j.util.camera.MTCamera

   */
  public AbstractScene(MTApplication mtApplication, String name) {
    super();
    this.name = name;
    this.mtApplication = mtApplication;
    this.sceneCam = new MTCamera(mtApplication);
    this.sceneCam.update();
    this.sceneCam.setZoomMinDistance(60);
    this.mainCanvas = new MTCanvas(mtApplication, name + " - Main Canvas", sceneCam);
   
//    preDrawActions = new LinkedList<IPreDrawAction>();
View Full Code Here

Examples of org.mt4j.util.camera.MTCamera

    applet.registerPost(this);

    applet.registerDispose(this);
   
    defaultCenterCam = new MTCamera(applet);
   
    currentScene = null;
  }
View Full Code Here

Examples of org.mt4j.util.camera.MTCamera

   *
   * @param app the app
   * @param name the name
   */
  public MTOverlayContainer(MTApplication app, String name) {
    super(app, name, new MTCamera(app));
    this.app = app;
   
    this.setDepthBufferDisabled(true);

    //Send overlay group to front again if it isnt - check each frame if its on front!
View Full Code Here

Examples of org.mt4j.util.camera.MTCamera

  public TapAndHoldVisualizer(MTApplication app, MTComponent parent) {
    super();
    this.app = app;
    this.parent = parent;
   
    cam = new MTCamera(app);
   
    e = new HoldEllipse(app, new Vector3D(0, 0), 35, 35, 50);
    e.setPickable(false);
    e.unregisterAllInputProcessors();
    e.setStrokeColor(new MTColor(240,50,50,200));
View Full Code Here

Examples of org.mt4j.util.camera.MTCamera

    rightSide.registerInputProcessor(new DragProcessor(app));
    rightSide.addGestureListener(DragProcessor.class, new GameFieldHalfDragListener(redCircle));
    physicsContainer.addChild(0, rightSide);
   
    //Display Score UI
    MTComponent uiLayer = new MTComponent(mtApplication, new MTCamera(mtApplication));
    uiLayer.setDepthBufferDisabled(true);
    getCanvas().addChild(uiLayer);
    IFont font = FontManager.getInstance().createFont(mtApplication, "arial", 50, new MTColor(255,255,255), new MTColor(0,0,0));
   
    t1 = new MTTextArea(mtApplication, font);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.