Search in sources :

Example 1 with IRL

use of spacegraph.util.geo.IRL in project narchy by automenta.

the class OSMTest method main.

public static void main(String[] args) {
    // https://wiki.openstreetmap.org/wiki/API_v0.6
    // http://api.openstreetmap.org/api/0.6/changeset/#id/comment
    // /api/0.6/map?bbox=min_lon,min_lat,max_lon,max_lat (W,S,E,N)
    IRL i = new IRL(User.the());
    i.load(-80.65, 28.58, -80.60, 28.63);
    SpaceGraphPhys3D sg = new SpaceGraphPhys3D(new OsmSpace(i.osm));
    sg.show(800, 800);
    sg.addWindowListener(new WindowAdapter() {

        @Override
        public void windowDestroyed(WindowEvent e) {
            super.windowDestroyed(e);
            System.exit(0);
        }
    });
    sg.add(new SubOrtho(WidgetTest.widgetDemo()).posWindow(0, 0, 0.3f, 1f));
}
Also used : IRL(spacegraph.util.geo.IRL) OsmSpace(spacegraph.space3d.widget.OsmSpace) WindowEvent(com.jogamp.newt.event.WindowEvent) WindowAdapter(com.jogamp.newt.event.WindowAdapter) SubOrtho(spacegraph.space2d.hud.SubOrtho) SpaceGraphPhys3D(spacegraph.space3d.SpaceGraphPhys3D)

Aggregations

WindowAdapter (com.jogamp.newt.event.WindowAdapter)1 WindowEvent (com.jogamp.newt.event.WindowEvent)1 SubOrtho (spacegraph.space2d.hud.SubOrtho)1 SpaceGraphPhys3D (spacegraph.space3d.SpaceGraphPhys3D)1 OsmSpace (spacegraph.space3d.widget.OsmSpace)1 IRL (spacegraph.util.geo.IRL)1