Package gov.nasa.worldwind.geom

Examples of gov.nasa.worldwind.geom.Position


       String strNameTarget = super.generateUniqueNameCopy(strNameSource);
       
       // ---
       String strDescShortSource = GfrWrpBasSynObjNameTloEclPlc.getInstance().getDescription(strIdTloSource);
       String strUrlSource = GfrWrpBasSynObjNameTloEclPlc.getInstance().getUrlTlo(strIdTloSource);
       Position posSource  = GfrWrpBasSynObjNameTloEclPlc.getInstance().getGeometry(strIdTloSource);
       Point2D.Double p2dSource = new Point2D.Double(posSource.longitude.degrees, posSource.latitude.degrees);
      
       String strIdTloTarget = super._save(GfrWrpUsrSpcDspPrtAppWork.getInstance().getPathAbsoluteDbDataChild(GfrIoBasNameDatPrjEcl.STR_FILE), strNameTarget, strDescShortSource, strUrlSource, p2dSource);
      
       // display
View Full Code Here


          List<Point2D.Double> lstP2d = (List<Point2D.Double>) evt.getGeometry();
          List<Position> lstPosition = new ArrayList<Position>();
         
          for (Point2D.Double p2dCur: lstP2d)
          {
             Position posCur = Position.fromDegrees(p2dCur.y, p2dCur.x);
             lstPosition.add(posCur);
          }
         
          super.setPositions(lstPosition);
          this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
View Full Code Here

        {
            Vec4[] lookAtPoints = this.computeViewLookAtForScene(this.wwd.getView());
            if (lookAtPoints == null || lookAtPoints.length != 3)
                return;

            Position centerPos = this.wwd.getModel().getGlobe().computePositionFromPoint(lookAtPoints[1]);
            double zoom = lookAtPoints[0].distanceTo3(lookAtPoints[1]);

            this.wwd.getView().stopAnimations();
            this.wwd.getView().goTo(centerPos, zoom);
        }
View Full Code Here

                this.view.setZoom(this.zoom);
                this.stop();
            }
            else
            {
                Position newCenterPos = Position.interpolateGreatCircle(interpolant, this.view.getCenterPosition(),
                    this.centerPosition);
                double newZoom = WWMath.mix(interpolant, this.view.getZoom(), this.zoom);
                this.view.setCenterPosition(newCenterPos);
                this.view.setZoom(newZoom);
            }
View Full Code Here

         return;
     
      Point2D.Double p2d = (Point2D.Double) evt.getGeometry();
     
      List<Position> lstPosition = new ArrayList<Position>();
      Position pos = Position.fromDegrees(p2d.y, p2d.x);
      lstPosition.add(pos);
      super.setLocations(lstPosition);
   }
View Full Code Here

      double Y = 0;
      double Z = 0;

      for (int i=0; i<poss.size(); i++)
      {
         Position posCur = poss.get(i);
        
         double lat = posCur.latitude.degrees * Math.PI / 180;
         double lon = posCur.longitude.degrees * Math.PI / 180;
        
       
View Full Code Here

         System.err.println("Uncaught instanceof glbDefault: " + glbDefault.getClass().toString());
         System.exit(1);
      }
      // end bantchao

      Position targetPos = Position.fromDegrees(lat, lon, 0);
      view.addPanToAnimator(
              // The elevation component of 'targetPos' here is not the surface elevation,
              // so we ignore it when specifying the view center position.
              new Position(targetPos, 0),
              Angle.ZERO,
              Angle.ZERO,//pitch
              elevation);//zoom

      /*
 
View Full Code Here

         return;


      WorldWindowGLCanvas cnv = (WorldWindowGLCanvas) evtMouse.getSource();

      Position curPos = cnv.getCurrentPosition();

      if (curPos == null)
         return;
     
      System.out.println("latitude=" + curPos.latitude.getDegrees() + ", longitude=" + curPos.longitude.getDegrees());
View Full Code Here

    {
        super();
       
        this._strId_ = strId;
       
        Position posMin = lstPosition.get(0);
        Position posMax = lstPosition.get(1);
        Sector sec = Sector.boundingSector(posMin, posMax);
        super.setSector(sec);
       
       
       
View Full Code Here

          GfrEvtMdlIdDatChangedGeometry evt = (GfrEvtMdlIdDatChangedGeometry) objEvt;
          List<Point2D.Double> lstP2d = (List<Point2D.Double>) evt.getGeometry();
          Point2D.Double p2dMin = lstP2d.get(0);
          Point2D.Double p2dMax = lstP2d.get(1);

          Position posMin = Position.fromDegrees(p2dMin.y, p2dMin.x);
          Position posMax = Position.fromDegrees(p2dMax.y, p2dMax.x);
          Sector sec = Sector.boundingSector(posMin, posMax);
          super.setSector(sec);
          this.firePropertyChange(GfrShouldRedrawRnd.STR, null, null);
          return;
       }
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.geom.Position

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.