public static void main(String[] args) { // Set the initial configurations of your NASA World Wind App // Altitute, logitude and latitute, and window caption. Configuration.setValue(AVKey.INITIAL_LATITUDE, 54); Configuration.setValue(AVKey.INITIAL_LONGITUDE, 13); Configuration.setValue(AVKey.INITIAL_ALTITUDE, 190e4); ApplicationTemplate.start("NASA World Wind Tutorial - Simple Polygons", AppFrame.class); }
public static void main(String[] args) { // MeasureRenderTime.enable(true); // MeasureRenderTime.setMesureGpu(true); Configuration.insertConfigurationDocument("si/xlab/gaea/examples/gaea-example-config.xml"); appFrame = (GaeaAppFrame) ApplicationTemplate.start("Gaea+ Open Source Example Application", GaeaAppFrame.class); insertBeforeCompass(appFrame.getWwd(), RenderToTextureLayer.getInstance()); appFrame.getWwd().addSelectListener(new FeatureSelectListener(appFrame.getWwd())); makeMenu(appFrame); }
public ShapefilesLayerTest() { wwd = new WorldWindowGLCanvas(); wwd.setPreferredSize(new java.awt.Dimension(1000, 800)); this.getContentPane().add(wwd, java.awt.BorderLayout.CENTER); wwd.setModel(new BasicModel()); shapefile = new ShapefilesLayer(); layers = shapefile.makeShapefileLayers(FILE_PATH); for (Layer l : layers) { ApplicationTemplate.insertBeforePlacenames(wwd, l); } wwd.redraw(); }
public static void main(String[] args) { ApplicationTemplate.start("World Wind Imagery Import", ImportImagery.AppFrame.class); }