Package gov.nasa.worldwind.view.orbit

Examples of gov.nasa.worldwind.view.orbit.FlatOrbitView


      if (!blnFlat)
      {
         // Switch to round globe
         super.wwd.getModel().setGlobe(_glbGlobeRound);
         // Switch to orbit view and update with current position
         FlatOrbitView flatOrbitView = (FlatOrbitView) super.wwd.getView();


         BasicOrbitView orbitView = new BasicOrbitView();
         orbitView.setCenterPosition(flatOrbitView.getCenterPosition());
         orbitView.setZoom(flatOrbitView.getZoom());
         orbitView.setHeading(flatOrbitView.getHeading());
         orbitView.setPitch(flatOrbitView.getPitch());
         super.wwd.setView(orbitView);

      }
      else
      {
         if (this._glbGlobeFlat == null)
         {
            _createGlobeFlat();
         }


         // Switch to flat globe
         super.wwd.getModel().setGlobe(this._glbGlobeFlat);

         // Switch to flat view and update with current position
         BasicOrbitView orbitView = (BasicOrbitView) super.wwd.getView();
         FlatOrbitView flatOrbitView = new FlatOrbitView();
         flatOrbitView.setCenterPosition(orbitView.getCenterPosition());
         flatOrbitView.setZoom(orbitView.getZoom());
         flatOrbitView.setHeading(orbitView.getHeading());
         flatOrbitView.setPitch(orbitView.getPitch());
         super.wwd.setView(flatOrbitView);

      }

      // Change sky layer
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.view.orbit.FlatOrbitView

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.