Examples of OrbitBehavior


Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

    //Add some light to the scene.
    addLight(simpUniv);


    //The following three lines enable navigation through the scene using the mouse.
    OrbitBehavior ob = new OrbitBehavior(myCanvas3D);
    ob.setSchedulingBounds(new BoundingSphere(new Point3d(0.0,0.0,0.0),Double.MAX_VALUE));
    simpUniv.getViewingPlatform().setViewPlatformBehavior(ob);


    //Show the canvas/window.
    setTitle("Sphere with different tesselations");
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

    //Add some light to the scene.
    addLight(simpUniv);


    //The following three lines enable navigation through the scene using the mouse.
    OrbitBehavior ob = new OrbitBehavior(myCanvas3D);
    ob.setSchedulingBounds(new BoundingSphere(new Point3d(0.0,0.0,0.0),Double.MAX_VALUE));
    simpUniv.getViewingPlatform().setViewPlatformBehavior(ob);


    //Show the canvas/window.
    setTitle("A moving light source");
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

    //Add some light to the scene.
    addLight(simpUniv);


    //The following three lines enable navigation through the scene using the mouse.
    OrbitBehavior ob = new OrbitBehavior(myCanvas3D);
    ob.setSchedulingBounds(new BoundingSphere(new Point3d(0.0,0.0,0.0),Double.MAX_VALUE));
    simpUniv.getViewingPlatform().setViewPlatformBehavior(ob);


    //Show the canvas/window.
    setTitle("Objects as wire frame models");
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

    //Add some light to the scene.
    addLight(simpUniv);


    //The following three lines enable navigation through the scene using the mouse.
    OrbitBehavior ob = new OrbitBehavior(myCanvas3D);
    ob.setSchedulingBounds(new BoundingSphere(new Point3d(0.0,0.0,0.0),Double.MAX_VALUE));
    simpUniv.getViewingPlatform().setViewPlatformBehavior(ob);


    //Show the canvas/window.
    setTitle("A simple animation");
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

    //Add some light to the scene.
    addLight(simpUniv);


    //The following three lines enable navigation through the scene using the mouse.
    OrbitBehavior ob = new OrbitBehavior(myCanvas3D);
    ob.setSchedulingBounds(new BoundingSphere(new Point3d(0.0,0.0,0.0),Double.MAX_VALUE));
    simpUniv.getViewingPlatform().setViewPlatformBehavior(ob);


    //Show the canvas/window.
    setTitle("Sphere rendered with constant shading in different tesselations");
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

        //view.setMinimumFrameCycleTime(long minimumTime);

        ViewingPlatform viewingPlatform = universe.getViewingPlatform();
        viewingPlatform.setNominalViewingTransform();

        orbit = new OrbitBehavior(canvas, OrbitBehavior.REVERSE_ALL^OrbitBehavior.STOP_ZOOM);
        BoundingSphere bounds = INFINITE_BOUNDS;
        orbit.setMinRadius(0);
        orbit.setSchedulingBounds(bounds);
        setOrbitCenter(new Point3d(0, 0, 0));
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

    this.branchgroup.addChild(pointLight5);
    this.branchgroup.addChild(pointLight6);
    this.branchgroup.addChild(pointLight7);
    this.branchgroup.addChild(pointLight8);

    final OrbitBehavior orbit = new OrbitBehavior(this,
        OrbitBehavior.REVERSE_ALL); // OrbitBehavior liegt in dem Paket
                                    // com.sun.j3d.utils.behaviors.vp
    orbit.setSchedulingBounds(new BoundingSphere(new Point3d(0, 0, 0), 999));
    this.universe.getViewingPlatform().setViewPlatformBehavior(orbit);
    // ... an das Universum h�ngen
    this.universe.addBranchGraph(this.branchgroup);
  }
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

    /**
     * Allos User to move and rotate around the viewpoint
     * @param c Canvas3D object
     */
    private void orbitControls(Canvas3D c) {
      OrbitBehavior orbit =
        new OrbitBehavior(c, OrbitBehavior.REVERSE_ALL);
      orbit.setSchedulingBounds(bounds);

      ViewingPlatform vp = universe.getViewingPlatform();
      vp.setViewPlatformBehavior(orbit);  
    }
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

        //view.setMinimumFrameCycleTime(long minimumTime);

        ViewingPlatform viewingPlatform = universe.getViewingPlatform();
        viewingPlatform.setNominalViewingTransform();

        orbit = new OrbitBehavior(canvas, OrbitBehavior.REVERSE_ALL^OrbitBehavior.STOP_ZOOM);
        BoundingSphere bounds = INFINITE_BOUNDS;
        orbit.setMinRadius(0);
        orbit.setSchedulingBounds(bounds);
        setOrbitCenter(new Point3d(0, 0, 0));
View Full Code Here

Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

    universe.addBranchGraph(scene);
   
        ViewingPlatform viewingPlatform = universe.getViewingPlatform();
        viewingPlatform.setNominalViewingTransform();
        // add orbit behavior to ViewingPlatform
        OrbitBehavior   orbit = new OrbitBehavior(canvas, OrbitBehavior.REVERSE_ALL |
                OrbitBehavior.STOP_ZOOM);
        orbit.setSchedulingBounds(boundingSphere);
        viewingPlatform.setViewPlatformBehavior(orbit);

       
       
    return universe;
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.