1 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Data/iceland_sample.session, Data/iceland_sample.thuban: Rename |
4 |
|
the file to have a .thuban extension. |
5 |
|
|
6 |
|
* Thuban/UI/tree.py (session_channels): New class constant with |
7 |
|
all the session channels to subscribe to to update the tree |
8 |
|
(SessionTreeCtrl.session_changed): Remember the session so that we |
9 |
|
can unsubscribe properly. Use the new class constant to |
10 |
|
unsubscribe from the old session and subscribe to the new one. |
11 |
|
(SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all |
12 |
|
subscriptions of the SessionTreeCtrl. |
13 |
|
(SessionTreeView.OnClose): Call the tree's unsubscribe_all method. |
14 |
|
|
15 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show |
16 |
|
Session Tree" command to the file menu. |
17 |
|
|
18 |
|
* Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap |
19 |
|
as update_region to the renderer. |
20 |
|
|
21 |
|
* Thuban/UI/renderer.py |
22 |
|
(ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The |
23 |
|
update box is now directly a tuple, not a wxRect anymore. |
24 |
|
|
25 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug |
26 |
|
prints. |
27 |
|
|
28 |
|
2002-05-07 Bernhard Herzog <[email protected]> |
29 |
|
|
30 |
|
* setup.py: Add the shptree extension module. See |
31 |
|
extensions/pyshapelib/ChangeLog for more details. |
32 |
|
|
33 |
|
* extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h, |
34 |
|
extensions/shapelib/dbfopen.c: Really update to the versions of |
35 |
|
shapelib 1.2.9. For some reason it wasn't really done on |
36 |
|
2002-04-11. |
37 |
|
|
38 |
|
* extensions/shapelib/shptree.c: Modified version of shptree.c of |
39 |
|
shapelib 1.2.9. The only real difference is the use of qsort |
40 |
|
instead of a bubble sort implementation |
41 |
|
|
42 |
|
* Thuban/Model/layer.py (Layer.__init__): New instance variable |
43 |
|
shapetree to hold the shapelib quadtree for the shapefile |
44 |
|
(Layer.open_shapefile): Create the quad tree. |
45 |
|
(Layer.ShapesInRegion): New method to return the ids of shapes in |
46 |
|
a given region using the quad tree. |
47 |
|
|
48 |
|
* extensions/thuban/wxproj.cpp (project_points): Fix some typos in |
49 |
|
comment |
50 |
|
(draw_polygon_shape): Accept both arcs and polygons. |
51 |
|
(initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import |
52 |
|
the api. |
53 |
|
|
54 |
|
* Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to |
55 |
|
return the shape ids to be rendered in a given layer. |
56 |
|
(MapRenderer.draw_shape_layer): Call layer_ids to get the list of |
57 |
|
ids. Use draw_polygon_shape to draw arc shapes as well. |
58 |
|
(ScreenRenderer.RenderMap): New parameter for the rectangle that |
59 |
|
has to be updated |
60 |
|
(ScreenRenderer.layer_ids): Make use of the layer's quadtree by |
61 |
|
calling it's ShapesInRegion method. |
62 |
|
|
63 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
64 |
|
update_region for the update region. |
65 |
|
(MapCanvas.OnPaint): Maintain the update region |
66 |
|
(MapCanvas.do_redraw): Pass the bounding box of the update_region |
67 |
|
to the renderer when drawing the bitmap. Reset the update_region. |
68 |
|
|
69 |
|
2002-05-03 Bernhard Herzog <[email protected]> |
70 |
|
|
71 |
|
* Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs, |
72 |
|
MainWindow.OpenSession): Change the file extension of the session |
73 |
|
files to .thuban |
74 |
|
|
75 |
|
* Thuban/Model/session.py (Session.AddMap, forwarded_channels): |
76 |
|
Move the map channels to be forwarded by the session into the |
77 |
|
class constant with forwarded_channels. Also add |
78 |
|
LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to |
79 |
|
forwarded_channels |
80 |
|
|
81 |
|
* Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a |
82 |
|
typo and some rewording). |
83 |
|
|
84 |
|
2002-05-02 Bernhard Herzog <[email protected]> |
85 |
|
|
86 |
|
* Thuban/UI/view.py: Keep the temporary bitmap used during drawing |
87 |
|
around to speed up most redraws: |
88 |
|
(MapCanvas.__init__): New instance variable bitmap which holds the |
89 |
|
bitmap |
90 |
|
(MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use |
91 |
|
self.bitmap to draw. |
92 |
|
(MapCanvas.full_redraw): New method to force a full redraw |
93 |
|
including the bitmap |
94 |
|
(MapCanvas.SetMap): Subscribe full_redraw instead of redraw to |
95 |
|
make sure the bitmap is redrawn. |
96 |
|
(MapCanvas.projection_changed, MapCanvas.set_view_transform, |
97 |
|
MapCanvas.shape_selected): Call full_redraw instead of readraw to |
98 |
|
make sure the bitmap is redrawn. |
99 |
|
(MapCanvas.OnSize): New method to handle size events so that the |
100 |
|
bitmap can be redrawn. |
101 |
|
|
102 |
2002-04-29 Bernhard Herzog <[email protected]> |
2002-04-29 Bernhard Herzog <[email protected]> |
103 |
|
|
104 |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |
* Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the |