Examples of scaleGlobal()


Examples of org.mt4j.components.MTComponent.scaleGlobal()

    meshGroup.registerInputProcessor(new ScaleProcessor(mtApplication));
    meshGroup.addGestureListener(ScaleProcessor.class, new IGestureEventListener(){
      //@Override
      public boolean processGestureEvent(MTGestureEvent ge) {
        ScaleEvent se = (ScaleEvent)ge;
        meshGroup.scaleGlobal(se.getScaleFactorX(), se.getScaleFactorY(), se.getScaleFactorX(), biggestMesh.getCenterPointGlobal());
        return false;
      }
    });
   
    meshGroup.registerInputProcessor(new RotateProcessor(mtApplication));
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTRectangle.scaleGlobal()

      //@Override
      public boolean processGestureEvent(MTGestureEvent ge) {
        ScaleEvent se = (ScaleEvent)ge;
       
        //Scale window background normally
        windowBackGround.scaleGlobal(se.getScaleFactorX(), se.getScaleFactorY(), se.getScaleFactorZ(), se.getScalingPoint());
       
        //Scale vertices of the window
        AbstractShape target = (AbstractShape)ge.getTargetComponent();
        Vertex[] verts = target.getGeometryInfo().getVertices();
        Vector3D newScalingPoint = target.globalToLocal(se.getScalingPoint());
View Full Code Here

Examples of org.mt4j.components.visibleComponents.widgets.MTSceneWindow.scaleGlobal()

              ((AbstractScene) scene).setTransition(new BlendTransition(app, 300))
            }
           
            final MTSceneWindow sceneWindow = new MTSceneWindow(scene, 100,50, app);
            sceneWindow.setFillColor(new MTColor(50,50,50,200));
            sceneWindow.scaleGlobal(0.5f, 0.5f, 0.5f, sceneWindow.getCenterPointGlobal());
            sceneWindow.addGestureListener(DragProcessor.class, new InertiaDragAction());
            getCanvas().addChild(sceneWindow);
          }else{
            //No FBO available -> change to the new scene fullscreen directly
           
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.