Package gov.nasa.worldwind.geom

Examples of gov.nasa.worldwind.geom.Position


      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


      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

            if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SCT.name()) == 0)
            {
               // TODO: optimize pos.elevation
               List<Position> poss = GfrWrpBasSynObjNameTloEclSct.getInstance().getGeometry(strIdTarget);
               Position pos = GfrGetCentrePointFromListOfCoordinates.doJob(poss);
               double dblZoom = GfrGetCaracteristicDimensionFromListOfCoordinates.doJob(poss);
               _windowViewerInternalTopsWwdEarthHandler(pos, dblZoom);

               return;
            }

            if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_ARE.name()) == 0)
            {
               // TODO: optimize pos.elevation
               List<Position> poss = GfrWrpBasSynObjNameTloEclAre.getInstance().getGeometry(strIdTarget);
               Position pos = GfrGetCentrePointFromListOfCoordinates.doJob(poss);
               double dblZoom = GfrGetCaracteristicDimensionFromListOfCoordinates.doJob(poss);
               _windowViewerInternalTopsWwdEarthHandler(pos, dblZoom);

               return;
            }

            if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PTH.name()) == 0)
            {
               List<Position> poss = GfrWrpBasSynObjNameTloEclPth.getInstance().getGeometry(strIdTarget);
               Position pos = GfrGetCentrePointFromListOfCoordinates.doJob(poss);
               double dblZoom = GfrGetCaracteristicDimensionFromListOfCoordinates.doJob(poss);
               _windowViewerInternalTopsWwdEarthHandler(pos, dblZoom);

               return;
            }


            if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_SEG_WISE_YES.name()) == 0)
            {
               List<Position> poss = GfrWrpBasSynObjNameTloEclSegWiseYes.getInstance().getPositions(strIdTarget);

               Position pos = GfrGetCentrePointFromListOfCoordinates.doJob(poss);
               double dblZoom = GfrGetCaracteristicDimensionFromListOfCoordinates.doJob(poss);
               _windowViewerInternalTopsWwdEarthHandler(pos, dblZoom);
               return;
            }


            if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PNT.name()) == 0)
            {
               Position pos = GfrWrpBasSynObjNameTloEclPnt.getInstance().getGeometry(strIdTarget);
               double dblZoom = GfrDouble.DBL_NDV;
               _windowViewerInternalTopsWwdEarthHandler(pos, dblZoom);
               return;
            }

            if (strValueKindObject.compareTo(GfrEnuValuesKindObjectTloSpcPrjOgcEcl.VALUE_TLO_ECL_PLC.name()) == 0)
            {
               Position pos = GfrWrpBasSynObjNameTloEclPlc.getInstance().getGeometry(strIdTarget);
               double dblZoom = GfrDouble.DBL_NDV;
               _windowViewerInternalTopsWwdEarthHandler(pos, dblZoom);
               return;
            }
         }




         if (mim instanceof GfrMimTrsAlrIdNewWinZoomTloWwdEarthAlwaysNoPossSpn)
         {
            // TODO: optimize pos.elevation
            List<Position> poss = GfrWrpBasSynObjNameTloEclSpn.getInstance().getGeometry(strIdTarget);
            Position pos = GfrGetCentrePointFromListOfCoordinates.doJob(poss);
            double dblZoom = GfrGetCaracteristicDimensionFromListOfCoordinates.doJob(poss);
            _windowViewerInternalTopsWwdEarthHandler(pos, dblZoom);

            return;
         }
View Full Code Here

        _loadCanvas_()
    }
   
    protected void _zoomTo(PointOfInterest poi)
    {
        Position pos = new Position(poi.getLatlon(), 0);
         
        this._cnv.zoomTo(
            pos,
            _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_, //dblZoom,
            true // tempo code, alti location should be rewritten according to convex hull
View Full Code Here

      if (objEvt instanceof GfrEvtMdlDspActCtrIdZoomLineWiseOpenPrev)
      {
         GfrEvtMdlDspActCtrIdZoomLineWiseOpenPrev actEvent = (GfrEvtMdlDspActCtrIdZoomLineWiseOpenPrev) objEvt;
        
         String strIdTarget = actEvent.getIdTarget();
         Position posSource = actEvent.getPositionSource();
        
         _zoomToPreviousPositionLineWiseOpen(strIdTarget, posSource);
        
         return;
      }
     
      if (objEvt instanceof GfrEvtMdlDspActCtrIdZoomLineWiseOpenNext)
      {
         GfrEvtMdlDspActCtrIdZoomLineWiseOpenNext actEvent = (GfrEvtMdlDspActCtrIdZoomLineWiseOpenNext) objEvt;
        
         String strIdTarget = actEvent.getIdTarget();
         Position posSource = actEvent.getPositionSource();
        
         _zoomToNextPositionLineWiseOpen(strIdTarget, posSource);
        
         return;
      }
View Full Code Here

            String strIdCurChildCur = objRndChildCur.getIdObjectGeoforgeWwdEarth();

            if (strIdCurChildCur.compareTo(strIdTarget) != 0)
               continue;

            Position posCenter = objRndChildCur.getPositionBarycentricObjectGeoforgeWwdEarth();
           
            double dblZoom = objRndChildCur.getCharacteristicDimensionObjectGeoforgeRenderableLayer();
           
            if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
                dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;
View Full Code Here

         String strIdCur = lyrGfrCur.getIdObjectGeoforgeWwdEarth();

         if (strIdCur.compareTo(strIdTarget) != 0)
            continue;

         Position posCenter = lyrGfrCur.getPositionBarycentricObjectGeoforgeWwdEarth();
        
         if (posCenter == null) // ie. empty pointSet, empty mly, no latLon ssm
         {
            return true;
         }
View Full Code Here

           
            if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
                dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;
           
           
            Position posCenter = new Position(llnCur, dblZoom);

            this._cnv.zoomTo(
                     posCenter,
                     dblZoom,
                     true // tempo code, alti location should be rewritten according to convex hull
View Full Code Here

            dblZoom /= 100;
           
            if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
                dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;
           
            Position posCenter = new Position(llnTargetCandidate, dblZoom);

            this._cnv.zoomTo(
                     posCenter,
                     dblZoom,
                     true // tempo code, alti location should be rewritten according to convex hull
View Full Code Here

            dblZoom /= 100d;
           
            if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
                dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;
           
            Position posCenter = new Position(llnTarget, dblZoom);

            this._cnv.zoomTo(
                     posCenter,
                     dblZoom,
                     true // tempo code, alti location should be rewritten according to convex hull
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.