Package org.mt4j.input.inputProcessors.componentProcessors.arcballProcessor

Examples of org.mt4j.input.inputProcessors.componentProcessors.arcballProcessor.ArcballProcessor$ArcBallContext


      mesh.setDrawNormals(false);
    }
   
    //Register arcball gesture manipulation to the whole mesh-group
    meshGroup.setComposite(true); //-> Group gets picked instead of its children
    meshGroup.registerInputProcessor(new ArcballProcessor(mtApplication, biggestMesh));
    meshGroup.addGestureListener(ArcballProcessor.class, new IGestureEventListener(){
      //@Override
      public boolean processGestureEvent(MTGestureEvent ge) {
        ArcBallGestureEvent aEvt =  (ArcBallGestureEvent)ge;
        meshGroup.transform(aEvt.getTransformationMatrix());
View Full Code Here


    MTTextArea arcballOnly = new MTTextArea(mtApplication, font);
    arcballOnly.setFillColor(textAreaColor);
    arcballOnly.setStrokeColor(textAreaColor);
    arcballOnly.setText("Arcball rotate me!");
    this.clearAllGestures(arcballOnly);
    arcballOnly.registerInputProcessor(new ArcballProcessor(app, arcballOnly));
    arcballOnly.addGestureListener(ArcballProcessor.class, new DefaultArcballAction());
    this.getCanvas().addChild(arcballOnly);
    arcballOnly.setAnchor(PositionAnchor.UPPER_LEFT);
    arcballOnly.setPositionGlobal(new Vector3D(1*horizontalPad,3*verticalPad,0));
   
 
View Full Code Here

TOP

Related Classes of org.mt4j.input.inputProcessors.componentProcessors.arcballProcessor.ArcballProcessor$ArcBallContext

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.