Package org.geoforge.worldwind.handler

Examples of org.geoforge.worldwind.handler.IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer


      if (super._lstObject==null || super._lstObject.isEmpty())
         return lstPositions;
     
      for (int i=0; i<super._lstObject.size(); i++)
      {
         IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) super._lstObject.get(i);
         PointPlacemark pntCur = (PointPlacemark) objCur;
        
         lstPositions.add(pntCur.getPosition());
      }
     
View Full Code Here


      double dblMinLon = 500;
      double dblMaxLon = -500;

      for (int i=0; i<super._lstObject.size(); i++)
      {
         IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) super._lstObject.get(i);
         PointPlacemark pntCur = (PointPlacemark) objCur;
         LatLon llnCur = pntCur.getPosition();
         //
         double[] dbls = llnCur.asDegreesArray();
View Full Code Here

      double dblMinLon = 500;
      double dblMaxLon = -500;

      for (int i = 0; i < super._lstObject.size(); i++)
      {
         IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) super._lstObject.get(i);
         PointPlacemark pntCur = (PointPlacemark) objCur;
         LatLon llnCur = pntCur.getPosition();
        
         double[] dbls = llnCur.asDegreesArray();
View Full Code Here

      double dblMinLon = 500;
      double dblMaxLon = -500;

      for (int i=0; i<super._lstObject.size(); i++)
      {
         IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) super._lstObject.get(i);

         Iterator<? extends LatLon> itr = ((SurfacePolyline) objCur).getLocations().iterator();

         if (!itr.hasNext())
         {
View Full Code Here

      double dblMinLon = 500;
      double dblMaxLon = -500;

      for (int i = 0; i < super._lstObject.size(); i++)
      {
         IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) super._lstObject.get(i);

         Iterator<? extends LatLon> itr = ((SurfacePolyline) objCur).getLocations().iterator();;

         if (!itr.hasNext())
         {
View Full Code Here

            Renderable rndCurChild = itrChildren.next();

            if (!(rndCurChild instanceof IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer))
               continue;

            IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objRndChildCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) rndCurChild;

            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_;

            this._cnv.zoomTo(
View Full Code Here

            Renderable rndCurChild = itrChildren.next();

            if (!(rndCurChild instanceof IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer))
               continue;

            IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objRndChildCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) rndCurChild;

            String strIdCurChildCur = objRndChildCur.getIdObjectGeoforgeWwdEarth();

            if (strIdCurChildCur.compareTo(strIdTarget) != 0)
               continue;
           
            // TODO
            // !!! NO NEED
            GfrRndSurfacePolylineWisYesMloAbs rnd = (GfrRndSurfacePolylineWisYesMloAbs) objRndChildCur;
           
            Iterator<? extends LatLon> itr = rnd.getLocations().iterator();
           
            LatLon llnCur = itr.next();
           
            if (llnCur == null)
               return true;
               
            // ---
           
            double dblZoom = objRndChildCur.getCharacteristicDimensionObjectGeoforgeRenderableLayer(); // TEMPO, should be related to neighbours 
            dblZoom /= 100d;
           
            if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
                dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;
           
View Full Code Here

            Renderable rndCurChild = itrChildren.next();

            if (!(rndCurChild instanceof IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer))
               continue;

            IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objRndChildCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) rndCurChild;

            String strIdCurChildCur = objRndChildCur.getIdObjectGeoforgeWwdEarth();

            if (strIdCurChildCur.compareTo(strIdTarget) != 0)
               continue;
           
           
            GfrRndSurfacePolylineWisYesMloAbs rnd = (GfrRndSurfacePolylineWisYesMloAbs) objRndChildCur;
           
            Iterator<? extends LatLon> itr = rnd.getLocations().iterator();
           
            Angle angLatitudeSource = posSource.getLatitude();
            Angle angLongitudeSource = posSource.getLongitude();
           
            // ---
           
            LatLon llnTargetCandidate = itr.next();
            boolean blnGotIt = false;
           
            while (itr.hasNext())
            {
               LatLon llnCur = itr.next();
              
               if (llnCur.getLatitude().compareTo(angLatitudeSource) != 0)
               {
                  llnTargetCandidate = llnCur;
                  continue;
               }
              
               if (llnCur.getLongitude().compareTo(angLongitudeSource) != 0)
               {
                  llnTargetCandidate = llnCur;
                  continue;
               }
              
               blnGotIt = true;
               break;
            }
           
            if (! blnGotIt)
               return true;
           
            if (llnTargetCandidate == null) // !!! should never appear
               return true;

               
            // ---
           
            double dblZoom = objRndChildCur.getCharacteristicDimensionObjectGeoforgeRenderableLayer(); // TEMPO, should be related to neighbours 
            dblZoom /= 100;
           
            if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
                dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;
           
View Full Code Here

            Renderable rndCurChild = itrChildren.next();

            if (!(rndCurChild instanceof IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer))
               continue;

            IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objRndChildCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) rndCurChild;

            String strIdCurChildCur = objRndChildCur.getIdObjectGeoforgeWwdEarth();

            if (strIdCurChildCur.compareTo(strIdTarget) != 0)
               continue;
           
           
            GfrRndSurfacePolylineWisYesMloAbs rnd = (GfrRndSurfacePolylineWisYesMloAbs) objRndChildCur;
           
            Iterator<? extends LatLon> itr = rnd.getLocations().iterator();
           
            Angle angLatitudeSource = posSource.getLatitude();
            Angle angLongitudeSource = posSource.getLongitude();
           
            // ---
           
            LatLon llnSourceCandidate = null;
           
            while (itr.hasNext())
            {
               LatLon llnCur = itr.next();
              
               if (llnCur.getLatitude().compareTo(angLatitudeSource) != 0)
                  continue;
              
               if (llnCur.getLongitude().compareTo(angLongitudeSource) != 0)
                  continue;
              
               llnSourceCandidate = llnCur;
               break;
            }
           
            if (llnSourceCandidate == null)
               return true;
           
            if (! itr.hasNext())
               return true;
           
            LatLon llnTarget = itr.next();

               
            // ---
           
            double dblZoom = objRndChildCur.getCharacteristicDimensionObjectGeoforgeRenderableLayer(); // TEMPO, should be related to neighbours 
            dblZoom /= 100d;
           
            if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
                dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;
           
View Full Code Here

            Renderable rndCurChild = itrChildren.next();

            if (!(rndCurChild instanceof IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer))
               continue;

            IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer objRndChildCur = (IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer) rndCurChild;

            String strIdCurChildCur = objRndChildCur.getIdObjectGeoforgeWwdEarth();

            if (strIdCurChildCur.compareTo(strIdTarget) != 0)
               continue;
       
            // !!! NO NEED
            GfrRndSurfacePolylineWisYesMloAbs rnd = (GfrRndSurfacePolylineWisYesMloAbs) objRndChildCur;
           
            Iterator<? extends LatLon> itr = rnd.getLocations().iterator();
           
            // NOT OPTIMIZED !!!
           
           
            LatLon llnCur = null;
           
            while (itr.hasNext())
            {
               llnCur = itr.next();
            }
           
            if (llnCur == null)
               return true;
               
            // ---
           
            double dblZoom = objRndChildCur.getCharacteristicDimensionObjectGeoforgeRenderableLayer(); // TEMPO, should be related to neighbours 
            dblZoom /= 100;
           
            if (dblZoom < _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_)
                dblZoom = _DBL_MINIMUM_ZOOM_4_MS_VIRTUAL_EARTH_AERIAL_;
           
View Full Code Here

TOP

Related Classes of org.geoforge.worldwind.handler.IGfrHandlerWwdEarthObjectGeoforgeRenderableLayer

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.