/[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 574 by jonathan, Fri Mar 28 17:07:26 2003 UTC revision 588 by jonathan, Tue Apr 1 15:58:02 2003 UTC
# Line 181  class MapRenderer: Line 181  class MapRenderer:
181          self.dc.DrawLines(points)          self.dc.DrawLines(points)
182    
183      def draw_point_shape(self, layer, index):      def draw_point_shape(self, layer, index):
184          p = self.projected_points(layer, index)[0]          pp = self.projected_points(layer, index)
185    
186            if len(pp) == 0: return # ignore Null Shapes which have no points
187    
188            p = pp[0]
189          radius = self.resolution * 5          radius = self.resolution * 5
190          self.dc.DrawEllipse(p.x - radius, p.y - radius, 2*radius, 2*radius)          self.dc.DrawEllipse(p.x - radius, p.y - radius, 2*radius, 2*radius)
191    

Legend:
Removed from v.574  
changed lines
  Added in v.588

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26