Changeset 36463 in osm
- Timestamp:
- 2025-11-06T16:11:22+01:00 (7 weeks ago)
- Location:
- applications/editors/josm/plugins/photoadjust
- Files:
-
- 2 edited
-
build.xml (modified) (1 diff)
-
src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustWorker.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/build.xml
r36334 r36463 26 26 <!-- ** include targets that all plugins have in common ** --> 27 27 <import file="../build-common.xml"/> 28 <!-- ** internationalization ** --> 29 <import file="i18n/build-i18n.xml"/> 30 31 <target name="pot" description="Extract translatable strings from source." depends="gettext-init"> 32 <mkdir dir="${plugin.po.dir}"/> 33 <gettext-extract keysFile="${ant.project.name}.pot" poDirectory="${plugin.po.dir}" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"> 34 <fileset dir="${plugin.src.dir}" includes="**/*.java"/> 35 </gettext-extract> 36 <echo file="${plugin.po.dir}/${ant.project.name}.pot" append="true"> 37 #. Plugin ${ant.project.name} 38 #: build.xml:1 39 msgid "${plugin.description}" 40 msgstr "" 41 </echo> 42 </target> 43 44 <!-- 28 <!-- 45 29 ********************************************************** 46 ** javadoc - create the plugin documentation30 ** compile - complies the source tree 47 31 ********************************************************** 48 32 --> 49 <target name="javadoc" description="generate documentation"> 50 <javadoc destdir="${plugin.javadoc.dir}" 51 sourcepath="${plugin.src.dir}" 52 windowtitle="${ant.project.name}" 53 linksource="true" 54 private="true"> 55 <classpath> 56 <pathelement location="${josm}"/> 57 </classpath> 58 <!-- Paths are relative to javadoc destdir (${plugin.javadoc.dir}). --> 59 <link href="../../../core/javadoc/"/> 60 <link href="https://josm.openstreetmap.de/doc/"/> 61 <link href="https://docs.oracle.com//javase/8/docs/api/"/> 62 </javadoc> 63 </target> 64 65 <target name="additional-manifest"> 66 <antcall target="mftrans"/> 67 </target> 33 68 34 </project> -
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustWorker.java
r36333 r36463 16 16 import org.openstreetmap.josm.gui.layer.geoimage.ImageEntry; 17 17 import org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog; 18 import org.openstreetmap.josm.gui.util.imagery.Vector3D; 19 import org.openstreetmap.josm.tools.Utils; 18 20 19 21 /** … … 240 242 } 241 243 final LatLon mouseLL = MainApplication.getMap().mapView.getLatLon(evt.getX(), evt.getY()); 244 Vector3D viewerVector = ImageViewerDialog.getInstance().getRotation(photo); 245 double viewerAngle = viewerVector != null ? Utils.toDegrees(viewerVector.getPolarAngle()) : 0d; 242 246 // The projection doesn't matter here. 243 double direction = photoLL.bearing(mouseLL) * 360.0 / 2.0 / Math.PI; 247 double direction = photoLL.bearing(mouseLL) * 360.0 / 2.0 / Math.PI - viewerAngle; 244 248 if (direction < 0.0) { 245 249 direction += 360.0;
Note:
See TracChangeset
for help on using the changeset viewer.
