1 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Make the renderers deal correctly with raw vs. python level |
4 |
|
representation of shape geometries |
5 |
|
|
6 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer): |
7 |
|
Return a flag useraw in addition to the callable and the parameter |
8 |
|
to indicate whether the callable can deal with the raw shape data |
9 |
|
or uses the higher level python lists of coordinates. The callable |
10 |
|
now should accept either the raw data or the return value of the |
11 |
|
shape's Points() method. |
12 |
|
(BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer |
13 |
|
change |
14 |
|
(BaseRenderer.projected_points): Instead of the shape id use the |
15 |
|
points list as parameter. |
16 |
|
(BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape) |
17 |
|
(BaseRenderer.draw_point_shape): Adapt to projected_points() |
18 |
|
change and accept the points list as parameter instead of the |
19 |
|
shape id. |
20 |
|
|
21 |
|
* Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return |
22 |
|
the useraw flag as required by the BaseRenderer |
23 |
|
(ScreenRenderer.draw_shape_layer): Adapt to low-level renderer |
24 |
|
changes. |
25 |
|
|
26 |
|
* test/test_baserenderer.py |
27 |
|
(TestBaseRenderer.test_point_with_classification): New test for |
28 |
|
rendering a map with classifications. |
29 |
|
|
30 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
31 |
|
|
32 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
33 |
|
(ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer) |
34 |
|
(ViewPort._get_hit_tester, ViewPort.projected_points) |
35 |
|
(ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon) |
36 |
|
(ViewPort._find_label_at): Split the find_shape_at method into |
37 |
|
several new methods and use the functions in the hit-test module. |
38 |
|
|
39 |
|
* Thuban/UI/hittest.py: New module with Python-level hit-testing |
40 |
|
functions |
41 |
|
|
42 |
|
* test/test_hittest.py: New. Test for the new hittest module |
43 |
|
|
44 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer |
47 |
|
projection to all corners of the bounding box to get a better |
48 |
|
approximation of the projected bounding box |
49 |
|
|
50 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
51 |
|
New. Test coordinate handling of a layer with a projection. |
52 |
|
Catches the bug fixed in Layer.ShapesInRegion |
53 |
|
|
54 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
55 |
|
|
56 |
|
Move some of the mock objects in test_baserenderer into their own |
57 |
|
module so they can easily be used from other tests |
58 |
|
|
59 |
|
* test/mockgeo.py: New test helper module with some mock objects |
60 |
|
for geometry related things like shapes, shapestores and |
61 |
|
projections. |
62 |
|
|
63 |
|
* test/test_mockgeo.py: New. Tests for the new helper module |
64 |
|
|
65 |
|
* test/test_baserenderer.py: Some of the mock-objects are in |
66 |
|
mockgeo now. |
67 |
|
|
68 |
|
2003-08-12 Jan-Oliver Wagner <[email protected]> |
69 |
|
|
70 |
|
* Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit. |
71 |
|
|
72 |
2003-08-12 Bernhard Herzog <[email protected]> |
2003-08-12 Bernhard Herzog <[email protected]> |
73 |
|
|
74 |
* po/de.po: New. German translations by Bjoern Broscheit |
* po/de.po: New. German translations by Bjoern Broscheit |