326 |
data = shape.Points() |
data = shape.Points() |
327 |
|
|
328 |
if shapeType==SHAPETYPE_POINT: |
if shapeType==SHAPETYPE_POINT: |
329 |
draw_func(draw_func_param, data, pen, brush, |
draw_func(draw_func_param, data, pen, brush, |
330 |
size = group.GetProperties().GetSize()) |
size = group.GetProperties().GetSize()) |
331 |
elif shapeType==SHAPETYPE_ARC: |
elif shapeType==SHAPETYPE_ARC: |
332 |
# do not fill the polylines in linestring layers |
# do not fill the polylines in linestring layers |
333 |
draw_func(draw_func_param, data, pen, TRANSPARENT_BRUSH) |
draw_func(draw_func_param, data, pen, TRANSPARENT_BRUSH) |
334 |
else: |
else: |
335 |
draw_func(draw_func_param, data, pen, brush) |
draw_func(draw_func_param, data, pen, brush) |
336 |
# compatibility |
# compatibility |
380 |
All shapes and graphic objects will be turned into |
All shapes and graphic objects will be turned into |
381 |
SVG elements and will be written into a file. |
SVG elements and will be written into a file. |
382 |
Any properties, such as stroke width or stroke color, |
Any properties, such as stroke width or stroke color, |
383 |
will be written together with the SVG elementents. |
will be written together with the SVG elements. |
384 |
""" |
""" |
385 |
def __init__(self, file, dim=(0,0), units=''): |
def __init__(self, file, dim=(0,0), units=''): |
386 |
"""Setup some variables and objects for property collection.""" |
"""Setup some variables and objects for property collection.""" |