/[thuban]
ViewVC logotype

Revision 1552


Jump to revision: Previous Next
Author: bh
Date: Wed Aug 6 17:21:32 2003 UTC (21 years, 7 months ago)
Changed paths: 3
Log Message:
* Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
this class is now in BaseRenderer. This class is now practically
only a specialization of BaseRenderer for rendering to an actual
wx DC.
(ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
to get the shapetype specific rendering functions.

* test/test_baserenderer.py: New. Test cases for BaseRenderer

* Thuban/UI/view.py (MapCanvas.__init__): New instance variable
error_on_redraw to guard agains endless loops and stack overflows
when there's a bug in the rendering code that raises exceptions.
(MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
rendering into a separate method _do_redraw so that error handling
is a bit easier. When an exception occurs, set error_on_redraw to
true. When it's true on entry to OnIdle do nothing and return
immediately.


Changed paths

Path Details
Directorytrunk/thuban/Thuban/UI/renderer.py modified , text changed
Directorytrunk/thuban/Thuban/UI/view.py modified , text changed
Directorytrunk/thuban/test/test_baserenderer.py added

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26