1 |
2003-08-15 Bernhard Herzog <[email protected]> |
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) |
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
33 |
(ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer) |
(ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer) |
34 |
(ViewPort._get_hit_tester, ViewPort.projected_points) |
(ViewPort._get_hit_tester, ViewPort.projected_points) |