216 |
index = self.selected_shape |
index = self.selected_shape |
217 |
if shapetype == SHAPETYPE_POLYGON: |
if shapetype == SHAPETYPE_POLYGON: |
218 |
self.draw_polygon_shape(layer, index, pen, brush) |
self.draw_polygon_shape(layer, index, pen, brush) |
219 |
|
elif shapetype == SHAPETYPE_ARC: |
220 |
|
self.draw_polygon_shape(layer, index, pen, None) |
221 |
else: |
else: |
222 |
self.dc.SetBrush(brush) |
self.dc.SetBrush(brush) |
223 |
self.dc.SetPen(pen) |
self.dc.SetPen(pen) |
224 |
if shapetype == SHAPETYPE_ARC: |
if shapetype == SHAPETYPE_POINT: |
225 |
f = self.draw_arc_shape |
self.draw_point_shape(layer, index) |
226 |
elif shapetype == SHAPETYPE_POINT: |
else: |
227 |
f = self.draw_point_shape |
raise TypeError("Unhandled shape type %s" % shapetype) |
|
f(layer, index) |
|
228 |
|
|
229 |
def layer_ids(self, layer): |
def layer_ids(self, layer): |
230 |
"""Return the shapeids covered by the region that has to be redrawn |
"""Return the shapeids covered by the region that has to be redrawn |