Package gov.nasa.worldwind.geom

Examples of gov.nasa.worldwind.geom.Position


            {
                // There is a picked object with a position
                if (event.getTopObject().getClass().equals(pickedObjClass))
                {
                    // This object class we handle and we have an orbit view
                    Position targetPos = event.getTopPickedObject().getPosition();
                    View view = this.wwd.getView();
                        // Use a PanToIterator to iterate view to target position
                    if(view != null)
                    {
                            // The elevation component of 'targetPos' here is not the surface elevation,
                            // so we ignore it when specifying the view center position.
                        view.goTo(new Position(targetPos, 0),
                            targetPos.getElevation() + this.elevationOffset);
                    }
                }
            }
        }
    }
View Full Code Here


        {
           return altPos;
        }
       
       
        Position posBeg = altPos.get(0);
        Position posEndCur = altPos.get(1);
       
       
        while(Math.abs(dblDistance - _DBL_DISTANCE_MAX_ALLOWED_) >= GfrDouble.DBL_EPSILON_THREE_DIGITS)
        {
  
         double weight= _DBL_DISTANCE_MAX_ALLOWED_ /dblDistance;
          
            posEndCur = Position.interpolateGreatCircle(weight, posBeg, posEndCur);
           
            dblDistance =
                 GfrUtilDmsOperation.s_getDistanceFromDeg(
                 posBeg.getLatitude().getDegrees(),
                 posBeg.getLongitude().getDegrees(),
                 posEndCur.getLatitude().getDegrees(),
                 posEndCur.getLongitude().getDegrees());
        }
       
        altPos.set(1, posEndCur);
        
View Full Code Here

         headerRow.add(GfrIoSheetColNamTlosPointLatLonAbs.STR_LONGITUDE);
         headerRow.add(GfrIoSheetColNamTlosPointLatLonAbs.STR_LATITUDE);

         // ---
         String strName = GfrWrpBasSynObjNameTloEclPnt.getInstance().getName(strIdSource);
         Position pos = GfrWrpBasSynObjNameTloEclPnt.getInstance().getGeometry(strIdSource);

         double[] dblsLatLon = pos.asDegreesArray();
         double dblLon = dblsLatLon[1];
         double dblLat = dblsLatLon[0];

         List<String> firstRow = new ArrayList<String>();
         firstRow.add(strName);
View Full Code Here

         String strIdViewer = actEvent.getIdViewer();

         if (strIdViewer.compareTo(this._strIdViewer_) == 0)
         {
            String strIdTarget = actEvent.getIdTarget();
            Position posSource = actEvent.getPositionSource();

            super._zoomToPreviousPositionLineWiseOpen(strIdTarget, posSource);
         }

         return;
      }



      if (objEvt instanceof GfrEvtMdlDspActCtrZoomLineWiseOpenNextViewer)
      {
         GfrEvtMdlDspActCtrZoomLineWiseOpenNextViewer actEvent = (GfrEvtMdlDspActCtrZoomLineWiseOpenNextViewer) objEvt;

         String strIdViewer = actEvent.getIdViewer();

         if (strIdViewer.compareTo(this._strIdViewer_) == 0)
         {
            String strIdTarget = actEvent.getIdTarget();
            Position posSource = actEvent.getPositionSource();

            super._zoomToNextPositionLineWiseOpen(strIdTarget, posSource);
         }

         return;
View Full Code Here

      for (String strIdCur : strsIdTloAll)
      {
         if (GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
            continue;

         Position posCur = GfrWrpBasSynObjNameTloEclPlc.getInstance().getGeometry(strIdCur);

         if (!GfrAcrSpcAppPrsPrjSelOgcEclAbs._s_sectorContainsPosition(llnMin, llnMax, posCur))
            continue;

View Full Code Here

      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         Position posCur = GfrWrpBasSynObjNameTloEclPlc.getInstance().getGeometry(strIdCur);

         if (GfrAcrSpcAppPrsPrjSelOgcEclAbs._s_sectorContainsPosition(llnMin, llnMax, posCur))
         {
            if (GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
               continue;
View Full Code Here

      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         Position posCur = GfrWrpBasSynObjNameTloEclPlc.getInstance().getGeometry(strIdCur);

         if (GfrAcrSpcAppPrsPrjSelOgcEclAbs._s_sectorContainsPosition(llnMin, llnMax, posCur))
         {
            if (!GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
               continue;
View Full Code Here

      for (String strIdCur : strsIdTloAll)
      {
         if (!GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
            continue;

         Position posCur = GfrWrpBasSynObjNameTloEclPlc.getInstance().getGeometry(strIdCur);

         if (!GfrAcrSpcAppPrsPrjSelOgcEclAbs._s_sectorContainsPosition(llnMin, llnMax, posCur))
            continue;

View Full Code Here

      for (String strIdCur : strsIdTloAll)
      {
         if (GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
            continue;

         Position posCur = GfrWrpBasSynObjNameTloEclPnt.getInstance().getGeometry(strIdCur);

         if (!GfrAcrSpcAppPrsPrjSelOgcEclAbs._s_sectorContainsPosition(llnMin, llnMax, posCur))
            continue;

View Full Code Here

      LatLon llnMin = alt.get(0);
      LatLon llnMax = alt.get(1);

      for (String strIdCur : strsIdTloAll)
      {
         Position posCur = GfrWrpBasSynObjNameTloEclPnt.getInstance().getGeometry(strIdCur);

         if (GfrAcrSpcAppPrsPrjSelOgcEclAbs._s_sectorContainsPosition(llnMin, llnMax, posCur))
         {
            if (GfrWrpObjSttSngSelTlo.getInstance().isEnabled(strIdCur))
               continue;
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.