Package com.sun.j3d.utils.behaviors.mouse

Examples of com.sun.j3d.utils.behaviors.mouse.MouseTranslate


/*     */   }
/*     */
/*     */   public PickTranslateBehavior(BranchGroup root, Canvas3D canvas, Bounds bounds, int pickMode)
/*     */   {
/*  96 */     super(canvas, root, bounds);
/*  97 */     this.translate = new MouseTranslate(1);
/*  98 */     this.translate.setTransformGroup(this.currGrp);
/*  99 */     this.currGrp.addChild(this.translate);
/* 100 */     this.translate.setSchedulingBounds(bounds);
/* 101 */     setSchedulingBounds(bounds);
/* 102 */     this.pickMode = pickMode;
View Full Code Here


        root.addChild(navigator);

        // MouseRotate mouseRotateNavigator =
        // createMouseRotateNavigator(viewTransform);
        // scene.addChild(mouseRotateNavigator);
        MouseTranslate mouseTranslateNavigator = createMouseTranslateNavigator(viewTransform);
        root.addChild(mouseTranslateNavigator);
        MouseZoom mouseZoomNavigator = createMouseZoomNavigator(viewTransform);
        root.addChild(mouseZoomNavigator);
    }
View Full Code Here

     * mouseRotateNavigator.setSchedulingBounds(new BoundingSphere(PointHelper.zeroPoint, 1000.0));
     * mouseRotateNavigator.setFactor(0.003); return mouseRotateNavigator; }
     */

    private MouseTranslate createMouseTranslateNavigator(TransformGroup viewTransform) {
        MouseTranslate mouseTranslateNavigator = new MouseTranslate(MouseBehavior.INVERT_INPUT);
        mouseTranslateNavigator.setTransformGroup(viewTransform);
        mouseTranslateNavigator.setSchedulingBounds(new BoundingSphere(new Point3d(0, 0, 0), 1000.0));
        return mouseTranslateNavigator;
    }
View Full Code Here

TOP

Related Classes of com.sun.j3d.utils.behaviors.mouse.MouseTranslate

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.