Examples of attachCamera()


Examples of org.mt4j.components.clusters.Cluster.attachCamera()

        //Create new selection only if at least more than 1 is selected
        if (selectedComps.length > 1){
          //Create new Cluster
          Cluster cluster = new Cluster(pa, dse.getSelectionPoly());
          //Attach a cam to the cluster because it doesent have the canvas as a parent as it is now..
          cluster.attachCamera(selectedComps[0].getViewingCamera());
         
          //Add gestures //TODO what about the isRotatable/dragable settings of the childs?
          //TODO What if we want to click a item of the cluster only? ->Maybe cluster should
          //delegate other gestures to the components..
//          cluster.assignGestureClassAndAction(DragGestureAnalyzer.class,    new DefaultDragAction());
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTEllipse.attachCamera()

     
      MTEllipse fingerCircle = new MTEllipse(mtApp, new Vector3D(mouseInfo.x, mouseInfo.y), currentEllipseWidth, currentEllipseWidth, 10);
      fingerCircle.setPickable(false);
     
//      fingerCircle.setCustomAndGlobalCam(currentScene.getSceneCam(), defaultCenterCam);
      fingerCircle.attachCamera(defaultCenterCam);
     
      //fingerCircle.setFillColor(50, 225, 230, 200);
//      fingerCircle.setNoFill(true);
      fingerCircle.setFillColor(new MTColor(255,50,50, 190));
//      fingerCircle.setFillColor(Tools3D.getRandom(140, 255),Tools3D.getRandom(110, 255),Tools3D.getRandom(135, 255), 150);
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.