Package org.mt4j.components

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


    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());
        return false;
      }
    });
   
    meshGroup.registerInputProcessor(new ScaleProcessor(mtApplication));
View Full Code Here


    }
   
    if (aEvt.getId() == ArcBallGestureEvent.GESTURE_UPDATED){
      if (target instanceof MTComponent){
        MTComponent comp = (MTComponent)target;
        comp.transform(aEvt.getTransformationMatrix());
      }
    }
    return false;
  }
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.