Package gov.nasa.worldwind.render

Examples of gov.nasa.worldwind.render.SurfaceIcon


                }
            }
        });
        // Re-calculate the coverage perimiter every 30 seconds
        coverageCalculatorThread.start();
        icon = new SurfaceIcon(getClass().getResource("/assets/icons/ais/antenna.png"), LatLon.fromDegrees(getLocation().getLatitude(), getLocation().getLongitude()));
        TargetLayer.getInstance().addRenderable(icon);
    }
View Full Code Here


        AircraftLayer.getInstance().addRenderable(visibleTrail);
    }

    public void updatePosition(final Position currentPos) {
        if (this.currentPos == null) {
            icon = new SurfaceIcon(getClass().getResource("/assets/icons/adsb/aircraft.png"), currentPos);
            planeModel = new PlaneModel(100.0, 50.0, Color.YELLOW);
            planeModel.setPosition(currentPos);
            planeModel.setHeading(Angle.fromDegrees(track));
            label = new GlobeAnnotation(callSign, currentPos);
View Full Code Here

//            safetyBubble.setHeading(course);
//        }
        Position pos = getPosition();
        String txt = generateLabelText();
        if (visibleTarget == null) {
            visibleTarget = new SurfaceIcon(getIconURL(), LatLon.fromDegrees(pos.getLatitude(), pos.getLongitude()));
            TargetLayer.getInstance().addRenderable(visibleTarget);
            label = new GlobeAnnotation(txt, new gov.nasa.worldwind.geom.Position(LatLon.fromDegrees(pos.getLatitude(), pos.getLongitude()), 0.1));
            TargetTextLayer.getInstance().addAnnotation(label);
        } else {
            visibleTarget.setImageSource(getIconURL());
View Full Code Here

TOP

Related Classes of gov.nasa.worldwind.render.SurfaceIcon

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.