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

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

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

revision 2412 by jan, Sun Oct 3 21:45:48 2004 UTC revision 2413 by bernhard, Mon Nov 22 11:16:35 2004 UTC
# Line 388  class BaseRenderer: Line 388  class BaseRenderer:
388          value of the shape's Points() method. The coordinates in the          value of the shape's Points() method. The coordinates in the
389          DC's coordinate system are determined with          DC's coordinate system are determined with
390          self.projected_points.          self.projected_points.
391    
392            For a description of the algorithm look in wxproj.cpp.
393          """          """
394          points = self.projected_points(layer, points)          points = self.projected_points(layer, points)
395    
# Line 396  class BaseRenderer: Line 398  class BaseRenderer:
398              for part in points:              for part in points:
399                  polygon.extend(part)                  polygon.extend(part)
400    
401                # missing back vertices for correct filling.
402              insert_index = len(polygon)              insert_index = len(polygon)
403              for part in points[:-1]:              for part in points[:-1]:
404                  polygon.insert(insert_index, part[0])                  polygon.insert(insert_index, part[0])

Legend:
Removed from v.2412  
changed lines
  Added in v.2413

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26