Changeset 25250 in osm for applications/editors/josm/plugins/videomapping
- Timestamp:
- 2011-02-07T16:11:48+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/videomapping
- Files:
-
- 1 added
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/videomapping/.classpath
r23442 r25250 7 7 <classpathentry kind="lib" path="lib/jna.jar"/> 8 8 <classpathentry kind="lib" path="lib/log4j.jar"/> 9 <classpathentry kind="lib" path="lib/vlcj-1.1. 2.jar"/>9 <classpathentry kind="lib" path="lib/vlcj-1.1.5.1.jar"/> 10 10 <classpathentry combineaccessrules="false" kind="src" path="/core"/> 11 11 <classpathentry kind="output" path="bin"/> -
applications/editors/josm/plugins/videomapping/build.xml
r25199 r25250 47 47 <property name="ant.build.javac.target" value="1.5"/> 48 48 <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/> 49 <property name="vlcj" value="lib/vlcj-1.1. 2.jar"/>49 <property name="vlcj" value="lib/vlcj-1.1.5.1.jar"/> 50 50 <property name="jna" value="lib/jna.jar"/> 51 51 <property name="log4j" value="lib/log4j.jar"/> -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/GpsPlayer.java
r23988 r25250 113 113 Main.map.mapView.repaint(); //seperate modell and view logic... 114 114 } 115 //go to the position at the timecode e.g.g "14:00:01";115 //go to the position e.g. "14.4.2010 14:00:01"; 116 116 public void jump(Date GPSAbsTime) 117 117 { 118 Date zero=start.getTime(); 118 Date zero=start.getTime();//TODO better Time wayfinding 119 119 Date starttime = new Date(zero.getHours(),zero.getMinutes(),zero.getSeconds()); 120 120 long diff=GPSAbsTime.getTime()-starttime.getTime(); 121 goTo(getWaypoint(diff)); //TODO replace Time by Date? 122 } 121 goTo(getWaypoint(diff)); 122 } 123 124 //jumps to a specific time since the beginning 125 public void jump(long relTime) { 126 int pos = Math.round(relTime/1000);//TODO assumes the time is constant 127 goTo(pos); 128 if (autoCenter) Main.map.mapView.zoomTo(curr.getCoor()); 129 } 130 123 131 124 132 //gets only points on the line of the GPS track (between waypoints) nearby the point m … … 322 330 323 331 324 //jumps to a specific time 325 public void jump(long relTime) { 326 int pos = Math.round(relTime/1000);//TODO assumes the time is constant 327 goTo(pos); 328 if (autoCenter) Main.map.mapView.zoomTo(curr.getCoor()); 329 } 330 332 331 333 //toggles walking along the track 332 334 /* public void play(){ -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java
r23988 r25250 4 4 import java.text.SimpleDateFormat; 5 5 import java.util.Collections; 6 import java.util.Date; 6 7 import java.util.LinkedList; 7 8 import java.util.List; … … 260 261 //jump if we know position 261 262 if(wp.attr.containsKey("synced")) 262 { 263 if(gpsVP!=null) gpsVP.jumpToGPSTime(gps.getRelativeTime()); //call videoplayers to set right position 263 { 264 if(gpsVP!=null) gpsVP.jumpToGPSTime(new Date(gps.getRelativeTime())); //call videoplayers to set right position 264 265 } 265 266 } -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/VideoMappingPlugin.java
r23953 r25250 203 203 if (t!=null) 204 204 { 205 player.jumpToGPSTime(t .getTime());205 player.jumpToGPSTime(t); 206 206 } 207 207 } -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/GPSVideoPlayer.java
r23667 r25250 130 130 } 131 131 132 /* 132 133 public void play(long gpsstart) 133 134 { … … 137 138 //gps.play(); 138 139 } 140 */ 139 141 140 142 public void play() … … 149 151 150 152 151 //jumps in video to the corresponding Video time (external triggered)152 public void jumpToGPSTime( long gpsT)153 //jumps in video to the corresponding GPS time(xx:yy:zz) not date (external triggered) 154 public void jumpToGPSTime(java.util.Date date) 153 155 { 154 156 if(!synced) 155 157 { 156 158 //when not synced we can just move the icon to the right position 157 gps.jump( new Time(gpsT));159 gps.jump(date); 158 160 Main.map.mapView.repaint(); 159 161 } 160 video.jump(getVideoTime( gpsT));162 video.jump(getVideoTime(date.getTime())); 161 163 } 162 164 -
applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/video/SimpleVideoPlayer.java
r23954 r25250 503 503 } 504 504 505 public void backward(MediaPlayer arg0) { 506 // TODO Auto-generated method stub 507 508 } 509 510 public void buffering(MediaPlayer arg0) { 511 // TODO Auto-generated method stub 512 513 } 514 515 public void forward(MediaPlayer arg0) { 516 // TODO Auto-generated method stub 517 518 } 519 520 public void opening(MediaPlayer arg0) { 521 // TODO Auto-generated method stub 522 523 } 524 525 public void pausableChanged(MediaPlayer arg0, int arg1) { 526 // TODO Auto-generated method stub 527 528 } 529 530 public void seekableChanged(MediaPlayer arg0, int arg1) { 531 // TODO Auto-generated method stub 532 533 } 534 535 public void snapshotTaken(MediaPlayer arg0, String arg1) { 536 // TODO Auto-generated method stub 537 538 } 539 540 public void titleChanged(MediaPlayer arg0, int arg1) { 541 // TODO Auto-generated method stub 542 543 } 544 505 545 506 546
Note:
See TracChangeset
for help on using the changeset viewer.