/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/renderer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/renderer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1562 by bh, Thu Aug 7 17:53:37 2003 UTC revision 1591 by bh, Fri Aug 15 14:00:53 2003 UTC
# Line 69  class MapRenderer(BaseRenderer): Line 69  class MapRenderer(BaseRenderer):
69          if (layer.ShapeStore().RawShapeFormat() == RAW_SHAPEFILE          if (layer.ShapeStore().RawShapeFormat() == RAW_SHAPEFILE
70              and layer.ShapeType() in (SHAPETYPE_ARC, SHAPETYPE_POLYGON)):              and layer.ShapeType() in (SHAPETYPE_ARC, SHAPETYPE_POLYGON)):
71              offx, offy = self.offset              offx, offy = self.offset
72              return (draw_polygon_shape,              return (True, draw_polygon_shape,
73                      draw_polygon_init(layer.ShapeStore().Shapefile(),                      draw_polygon_init(layer.ShapeStore().Shapefile(),
74                                        self.dc, self.map.projection,                                        self.dc, self.map.projection,
75                                        layer.projection,                                        layer.projection,
# Line 112  class ScreenRenderer(MapRenderer): Line 112  class ScreenRenderer(MapRenderer):
112              brush = wxBrush(wxBLACK, wxCROSS_HATCH)              brush = wxBrush(wxBLACK, wxCROSS_HATCH)
113    
114              shapetype = layer.ShapeType()              shapetype = layer.ShapeType()
115              func, param = self.low_level_renderer(layer)              useraw, func, param = self.low_level_renderer(layer)
116              args = (pen, brush)              args = (pen, brush)
117              for index in self.selected_shapes:              for index in self.selected_shapes:
118                  func(param, index, *args)                  shape = layer.Shape(index)
119                    if useraw:
120                        data = shape.RawData()
121                    else:
122                        data = shape.Points()
123                    func(param, data, *args)
124    
125      def layer_ids(self, layer):      def layer_ids(self, layer):
126          """Return the shapeids covered by the region that has to be redrawn          """Return the shapeids covered by the region that has to be redrawn

Legend:
Removed from v.1562  
changed lines
  Added in v.1591

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26