Commit graph

29618 commits

Author SHA1 Message Date
Andrew Davie
8e7026c537 mid-work backup 2016-03-30 22:25:52 +11:00
GaidamakUA
ae0b798b28 Fix sized 2016-03-30 12:33:21 +03:00
GaidamakUA
7d4b4f4c48 Change color for configure screen. 2016-03-30 11:53:34 +03:00
GaidamakUA
5d335f5dab Renaming methods. 2016-03-30 11:36:48 +03:00
GaidamakUA
4b695ba06c Fixed introduced crash. 2016-03-30 11:30:47 +03:00
GaidamakUA
7c4161cf1b Fixed icon ignoring tint. 2016-03-30 11:22:17 +03:00
GaidamakUA
7202f69bd9 Refactoring. Removed getImage from contextMenuAdapter. 2016-03-30 11:12:34 +03:00
GaidamakUA
64735bd505 Refactoring. Menu items now has color. 2016-03-30 11:00:30 +03:00
Andrew Davie
64d481e47d Fixed a bug in the rainbow/altitude & speed renderer
Fixed the '1st pass' flag check for the draw loop. Previously was trying to draw at negative infinity
  - this *may* have been the reason this routine appeared to occaionally crash the emulator
Modified the draw so it only draws lines which are partially or completely on-screen
This routine is now optimal as far as minimising draw goes
  - first cull based on limits of entire track
  - second cull on per-segment basis based on screen visibility
2016-03-30 16:09:47 +11:00
Andrew Davie
5d4ab73620 Edge cases handled gracefully for low point-count arrays
Sitations with low point-counts may have been problematic. Now, 0, 1 and 2 point arrays are explicitly handled.
Added a copy constructor to WptPt to allow copies to be made, rather than returning original array.
Cases where no data is returned always returns a zero-sized array rather than a null array.
2016-03-30 15:14:24 +11:00
vshcherb
e3dabb1ada Merge pull request #2384 from yurkiss/test_turn_lanes_1
U-turn image fix
2016-03-29 20:42:25 +02:00
y.ridkous@gmail.com
7fea3ee5ce Update LanesDrawable 2016-03-29 21:37:43 +03:00
Yuriy Ridkous
09e33431f4 Merge pull request #6 from osmandapp/master
update
2016-03-29 21:30:32 +03:00
Andrew Davie
7b4daba1eb Optimisation for zooming/resampling to improve visuals
Just occurred to me that when zooming out (away) then the culled line we have is suitable for display. Previously when
zooming in or out, the culled line was discarded and the original line was drawn. That was to prevent you seeing really
low-resolution stuff while you wait for the asynchroous line cull to finish (can be in the order of several seconds).
However, with this modification, that is now only done when you are zooming in. This improves dramatically the "busy"
look when too much stuff is drawn for the given resolution.  Anyway, simple fix but great effect.  :P
2016-03-30 03:12:53 +11:00
Alexey Kulish
b431724a1a Fix location permission crash (NavigationService) 2016-03-29 18:48:56 +03:00
Andrew Davie
1fedd78e23 Removed all the renderers, except for the plain-vanilla one.
This gives a simple GPX track that is drawn with asynchronous point reduction to improve the speed of display.
Also, the simple region-based culling gets rid of entire tracks from the draw pipeline for further sppedups.
2016-03-30 02:15:26 +11:00
Andrew Davie
63ff22b6ab "Trivial" area bounds for segments for super-quick culling during draw.
Reworked all the renderers to be much more object oriented.
Got the sample arrow and conveyor renderers working
Tracked down a few bugs - particularly one still there - TrkSegment with 0 points!
This in my opinion should never happen - it's coming in from "outside" to my code.
2016-03-30 01:47:04 +11:00
sonora
5fa6036c3e Fix wrong string assignment 2016-03-29 16:42:17 +02:00
Dmitriy Prodchenko
cc241f7251 New icons for Configure Map screen. 2016-03-29 17:23:33 +03:00
GaidamakUA
60073c4ff3 Rewritten working ContextMenu. GpxUiHelper, ConfigureMapMenu. 2016-03-29 16:59:03 +03:00
GaidamakUA
c124ddf21b Rewritten working ContextMenu. Need to be removed completely. Little fixes for AvailableIndexesFragment. 2016-03-29 16:29:45 +03:00
GaidamakUA
bd3ca97411 Rewritten working ContextMenu. Need to be removed completely. Little fixes for AvailableGPXFragment. 2016-03-29 15:57:56 +03:00
GaidamakUA
f04df5b622 Remove unnecessary field. 2016-03-29 15:57:56 +03:00
Weblate
acb853a619 Merge remote-tracking branch 'origin/master' 2016-03-29 14:07:42 +02:00
Roberto GEB
4d4b05b810 Translated using Weblate (Spanish)
Currently translated at 99.6% (2461 of 2469 strings)
2016-03-29 14:07:42 +02:00
GaidamakUA
39f48e30a6 Configure screen: Menus are working. 2016-03-29 15:07:22 +03:00
GaidamakUA
5fdcc6b341 Refactoring 2016-03-29 15:07:22 +03:00
Weblate
4e88cae12b Merge remote-tracking branch 'origin/master' 2016-03-28 21:00:28 +02:00
Roberto GEB
ff6558ed90 Translated using Weblate (Spanish)
Currently translated at 99.6% (2461 of 2469 strings)
2016-03-28 21:00:27 +02:00
8c6311e901274f6baef2068792c8ab
14a5153b09 Translated using Weblate (Norwegian Bokmål)
Currently translated at 73.4% (1435 of 1954 strings)
2016-03-28 21:00:19 +02:00
xmd5a
984dda798e Update turn lanes test json 2016-03-28 21:59:51 +03:00
Andrew Davie
c8a245d031 Honoured isCancelled() for the async renderer, and return correct status
This should speed up things a bit by killing background tasks earlier
2016-03-29 04:57:52 +11:00
Andrew Davie
93587fe210 Very clean OO-type classes for the renderers and asynchronous resamplers. 2016-03-29 03:58:16 +11:00
Yuriy Ridkous
aca4b95f13 Merge pull request #5 from osmandapp/master
update
2016-03-28 17:04:59 +03:00
Victor Shcherb
db54e27454 Update turn types tertiary 2016-03-28 15:51:52 +02:00
Victor Shcherb
a580d65604 Fix compilation 2016-03-28 15:44:54 +02:00
Victor Shcherb
f8c459146b Fix compilation 2016-03-28 15:42:44 +02:00
Victor Shcherb
0f86f53b5e Fix turn lanes 2016-03-28 15:10:47 +02:00
Victor Shcherb
d8a2b60436 Add map icons 2016-03-28 14:54:31 +02:00
Weblate
7a29807aea Merge remote-tracking branch 'origin/master' 2016-03-28 14:53:44 +02:00
Ldm Public
d590250dd0 Translated using Weblate (French)
Currently translated at 99.8% (1952 of 1954 strings)
2016-03-28 14:53:33 +02:00
vshcherb
900d56d1ed Merge pull request #2375 from yurkiss/test_turn_lanes_1
Update LanesDrawable
2016-03-28 14:53:26 +02:00
Andrew Davie
109ca692f1 New GPX track rendering and animation/overlay package.
WHAT THIS PROVIDES:

A generic rendering/draw of GPX tracks that allows multiple 'renders' to be included as a part of the draw of any
TrkSegment. These 'renders' include the basic track drawing, but also other options such as dashed lines,
rainbow-coloured altitude indication, speed indication, arrows to point direction, animating 'lines' showing
direction of movement, and dots/text showing 1km (or any other) distances along tracks.  It's very extendable
and incredibly cheap in terms of procesisng speed.

For a view of some of these operating on this version of the code, see https://youtu.be/aRGCNLmBAlk

Additionally, all of the above have automatic asynchronous track resampling - either via line culling of
Ramer-Douglas-Peucer (implemented for the base track draw at different zooms), or an actual resampler that
takes a distance and steps off and creates a new track with points spaced exactly that distance apart along
the original track. The asynchronous resampling/culling willl automatically enable the new (optimal) track
display when the background task has completed.

This is completely up to date with the master branch as of an hour or so ago!

Two modified files
 - GPXUtilities
   Added some fields to WptPt to enable distance measurement on tracks and colouring for altitude/speed
 - GPXLayer
   Installed the new track rendering with examples (commented/out)

Two new files
 - AsynchronousResampler.java
    Implements line resampling and culling asynchrnonously for all line drawing
 - Renderable.java
    Set of classes for drawing different kinds of gpx 'renders'
     - normal with automatic Ramer-Douglas-Peucer line culling
     - conveyor-belt type animation of segments on a path
     - altitude colouring of a path
     - speed colouring of a path
     - distance based waypoint/marker drawing
2016-03-28 23:40:30 +11:00
GaidamakUA
fb7215d80c Non clickable categories in list. 2016-03-28 15:15:40 +03:00
Weblate
62fac13d26 Merge remote-tracking branch 'origin/master' 2016-03-28 12:12:49 +02:00
Hinagiku Zeppeki
a874a518ed Translated using Weblate (Japanese)
Currently translated at 99.9% (1953 of 1954 strings)
2016-03-28 12:12:39 +02:00
GaidamakUA
3be10f89b6 More refactoring. 2016-03-28 13:12:27 +03:00
GaidamakUA
5f9352b404 More refactoring. 2016-03-28 13:12:27 +03:00
y.ridkous@gmail.com
1203631e34 Update LanesDrawable 2016-03-28 00:06:41 +03:00
Weblate
ce2f2eceee Merge remote-tracking branch 'origin/master' 2016-03-27 22:54:15 +02:00