Package gov.nasa.worldwindx.examples.util

Examples of gov.nasa.worldwindx.examples.util.DirectedPath


            pathPositions.add(Position.fromDegrees(49.11190305133165, -122.7345541413842, 100));
            pathPositions.add(Position.fromDegrees(49.11101764617014, -122.7455553490629, 10));
            pathPositions.add(Position.fromDegrees(49.11509767012883, -122.7459193678911, 10));
            pathPositions.add(Position.fromDegrees(49.11467371318521, -122.7563706291131, 10));*/

            Path path = new DirectedPath(pathPositions);

            //SurfacePolyline path = new SurfacePolyline();
           
            // To ensure that the arrowheads resize smoothly, refresh each time the path is drawn.
            path.setAttributes(attrs);
            path.setVisible(true);
           
            path.setAltitudeMode(WorldWind.CLAMP_TO_GROUND);
           
            path.setFollowTerrain(true);
            /*path.setAltitudeMode(WorldWind.RELATIVE_TO_GROUND);*/
           
            path.setPathType(AVKey.GREAT_CIRCLE);
            layer.addRenderable(path);

            // Add the layer to the model.
            insertBeforeCompass(getWwd(), layer);

View Full Code Here

TOP

Related Classes of gov.nasa.worldwindx.examples.util.DirectedPath

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.