Changeset 29964 in osm for applications/editors/josm/plugins/ElevationProfile
- Timestamp:
- 2013-09-26T02:31:46+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile
- Files:
-
- 6 added
- 2 deleted
- 8 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ColorMap.java
r29921 r29964 1 /** 2 * This program is free software: you can redistribute it and/or modify it under 3 * the terms of the GNU General Public License as published by the 4 * Free Software Foundation, either version 3 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 8 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * See the GNU General Public License for more details. 10 * 11 * You should have received a copy of the GNU General Public License along with this program. 12 * If not, see <http://www.gnu.org/licenses/>. 13 */ 1 14 package org.openstreetmap.josm.plugins.elevation; 2 15 -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationProfilePlugin.java
r29961 r29964 57 57 58 58 // TODO: Disable this view as long as it is not stable 59 MainMenu.add(Main.main.menu. viewMenu, action, false, 0);59 MainMenu.add(Main.main.menu.imagerySubMenu, action, false, 0); 60 60 } catch (Exception e1) { 61 61 System.err.println("Init of ElevationProfilePlugin failed: " + e1); -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/HgtReader.java
r29955 r29964 1 /** 2 * This program is free software: you can redistribute it and/or modify it under 3 * the terms of the GNU General Public License as published by the 4 * Free Software Foundation, either version 3 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 8 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * See the GNU General Public License for more details. 10 * 11 * You should have received a copy of the GNU General Public License along with this program. 12 * If not, see <http://www.gnu.org/licenses/>. 13 */ 1 14 package org.openstreetmap.josm.plugins.elevation; 2 15 … … 16 29 17 30 /** 18 * Class HgtReader reads data from SRTM HGT files. Currently this the routines are restricted to a resolution of 3 arc seconds. 31 * Class HgtReader reads data from SRTM HGT files. Currently this class is restricted to a resolution of 3 arc seconds. 32 * 33 * SRTM data files are available at the <a href="http://dds.cr.usgs.gov/srtm/version2_1/SRTM3">NASA SRTM site</a> 19 34 * @author Oliver Wieland <oliver.wieland@online.de> 20 35 */ -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/IEleRenderingListener.java
r29907 r29964 1 /** 2 * This program is free software: you can redistribute it and/or modify it under 3 * the terms of the GNU General Public License as published by the 4 * Free Software Foundation, either version 3 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 8 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * See the GNU General Public License for more details. 10 * 11 * You should have received a copy of the GNU General Public License along with this program. 12 * If not, see <http://www.gnu.org/licenses/>. 13 */ 1 14 package org.openstreetmap.josm.plugins.elevation; 15 16 import org.openstreetmap.josm.plugins.elevation.grid.EleVertex; 2 17 3 18 public interface IEleRenderingListener { -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/IVertexRenderer.java
r29921 r29964 1 /** 2 * This program is free software: you can redistribute it and/or modify it under 3 * the terms of the GNU General Public License as published by the 4 * Free Software Foundation, either version 3 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 8 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * See the GNU General Public License for more details. 10 * 11 * You should have received a copy of the GNU General Public License along with this program. 12 * If not, see <http://www.gnu.org/licenses/>. 13 */ 1 14 package org.openstreetmap.josm.plugins.elevation; 2 15 3 16 import java.awt.Color; 17 18 import org.openstreetmap.josm.plugins.elevation.grid.EleVertex; 4 19 5 20 /** -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/actions/AddElevationLayerAction.java
r29907 r29964 1 /** 2 * This program is free software: you can redistribute it and/or modify it under 3 * the terms of the GNU General Public License as published by the 4 * Free Software Foundation, either version 3 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 8 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * See the GNU General Public License for more details. 10 * 11 * You should have received a copy of the GNU General Public License along with this program. 12 * If not, see <http://www.gnu.org/licenses/>. 13 */ 1 14 package org.openstreetmap.josm.plugins.elevation.actions; 2 15 … … 7 20 import org.openstreetmap.josm.Main; 8 21 import org.openstreetmap.josm.actions.JosmAction; 9 import org.openstreetmap.josm.plugins.elevation.ColoredElevationLayer; 22 import org.openstreetmap.josm.gui.layer.Layer; 23 import org.openstreetmap.josm.plugins.elevation.grid.ElevationGridLayer; 10 24 11 25 public class AddElevationLayerAction extends JosmAction { … … 15 29 */ 16 30 private static final long serialVersionUID = -745642875640041385L; 17 private ColoredElevationLayer currentLayer;31 private Layer currentLayer; 18 32 19 33 public AddElevationLayerAction() { 20 super(tr("Elevation Map Layer"), "elevation", tr("Shows elevationlayer"), null, true);34 super(tr("Elevation Grid Layer"), "elevation", tr("Shows elevation grid layer"), null, true); 21 35 } 22 36 … … 24 38 public void actionPerformed(ActionEvent arg0) { 25 39 if (currentLayer == null) { 26 currentLayer = new ColoredElevationLayer(tr("Elevation Map")); // TODO: Better name40 currentLayer = new ElevationGridLayer(tr("Elevation Grid")); // TODO: Better name 27 41 Main.main.addLayer(currentLayer); 28 42 } -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationModel.java
r29962 r29964 274 274 String trackName = (String) trackOrRoute.get("name"); 275 275 276 // no name given, build artificial one277 276 if (trackName == null) { 278 277 trackName = (String) trackOrRoute.get(GpxData.META_NAME); 279 278 if (trackName == null) { 279 // no name given, build artificial one 280 280 trackName = name + "." + trackCounter; 281 281 } -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleCoordinate.java
r29961 r29964 1 package org.openstreetmap.josm.plugins.elevation; 1 /** 2 * This program is free software: you can redistribute it and/or modify it under 3 * the terms of the GNU General Public License as published by the 4 * Free Software Foundation, either version 3 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 8 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * See the GNU General Public License for more details. 10 * 11 * You should have received a copy of the GNU General Public License along with this program. 12 * If not, see <http://www.gnu.org/licenses/>. 13 */ 14 package org.openstreetmap.josm.plugins.elevation.grid; 2 15 3 16 import org.openstreetmap.josm.data.coor.LatLon; -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java
r29961 r29964 1 package org.openstreetmap.josm.plugins.elevation; 1 /** 2 * This program is free software: you can redistribute it and/or modify it under 3 * the terms of the GNU General Public License as published by the 4 * Free Software Foundation, either version 3 of the License, or 5 * (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 8 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 * See the GNU General Public License for more details. 10 * 11 * You should have received a copy of the GNU General Public License along with this program. 12 * If not, see <http://www.gnu.org/licenses/>. 13 */ 14 package org.openstreetmap.josm.plugins.elevation.grid; 2 15 3 16 import java.util.ArrayList; … … 6 19 7 20 import org.openstreetmap.josm.data.coor.LatLon; 21 import org.openstreetmap.josm.plugins.elevation.ElevationHelper; 8 22 9 23 public class EleVertex { -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/SimpleVertexRenderer.java
r29961 r29964 13 13 */ 14 14 15 package org.openstreetmap.josm.plugins.elevation ;15 package org.openstreetmap.josm.plugins.elevation.grid; 16 16 17 17 import java.awt.Color; 18 19 import org.openstreetmap.josm.plugins.elevation.ColorMap; 20 import org.openstreetmap.josm.plugins.elevation.IVertexRenderer; 18 21 19 22 /** -
applications/editors/josm/plugins/ElevationProfile/test/org/openstreetmap/josm/plugins/elevation/tests/EleVertexTest.java
r29921 r29964 7 7 8 8 import org.openstreetmap.josm.Main; 9 import org.openstreetmap.josm.data.Bounds;10 9 import org.openstreetmap.josm.data.Preferences; 11 10 import org.openstreetmap.josm.data.coor.LatLon; 12 11 import org.openstreetmap.josm.plugins.elevation.ColorMap; 13 import org.openstreetmap.josm.plugins.elevation.EleCoordinate; 14 import org.openstreetmap.josm.plugins.elevation.EleVertex; 15 import org.openstreetmap.josm.plugins.elevation.GridRenderer; 12 import org.openstreetmap.josm.plugins.elevation.grid.EleCoordinate; 13 import org.openstreetmap.josm.plugins.elevation.grid.EleVertex; 16 14 17 15 public class EleVertexTest extends TestCase { … … 77 75 } 78 76 } 79 77 /* 80 78 public void testRenderer() { 81 79 … … 87 85 88 86 er.run(); 89 } 87 }*/ 90 88 91 89 public void testColorMap() {
Note:
See TracChangeset
for help on using the changeset viewer.