20 |
on the mapping algorithm. |
on the mapping algorithm. |
21 |
""" |
""" |
22 |
|
|
23 |
# fix for people using python2.1 |
import copy, operator, types |
|
from __future__ import nested_scopes |
|
|
|
|
|
import copy, operator |
|
24 |
|
|
25 |
from Thuban import _ |
from Thuban import _ |
26 |
|
|
|
import types |
|
|
|
|
27 |
from messages import \ |
from messages import \ |
28 |
LAYER_PROJECTION_CHANGED, \ |
LAYER_PROJECTION_CHANGED, \ |
29 |
LAYER_LEGEND_CHANGED, \ |
LAYER_LEGEND_CHANGED, \ |
192 |
|
|
193 |
fill -- a Color object. |
fill -- a Color object. |
194 |
""" |
""" |
|
assert isinstance(fill, Color) |
|
195 |
self.GetDefaultGroup().GetProperties().SetFill(fill) |
self.GetDefaultGroup().GetProperties().SetFill(fill) |
196 |
self.__SendNotification() |
self.__SendNotification() |
197 |
|
|
204 |
|
|
205 |
color -- a Color object. |
color -- a Color object. |
206 |
""" |
""" |
|
assert isinstance(color, Color) |
|
207 |
self.GetDefaultGroup().GetProperties().SetLineColor(color) |
self.GetDefaultGroup().GetProperties().SetLineColor(color) |
208 |
self.__SendNotification() |
self.__SendNotification() |
209 |
|
|
451 |
color -- the color of the line. This must be a Color object. |
color -- the color of the line. This must be a Color object. |
452 |
""" |
""" |
453 |
|
|
|
assert isinstance(color, Color) |
|
454 |
self.__stroke = color |
self.__stroke = color |
455 |
|
|
456 |
def GetLineWidth(self): |
def GetLineWidth(self): |
478 |
fill -- the color of the fill. This must be a Color object. |
fill -- the color of the fill. This must be a Color object. |
479 |
""" |
""" |
480 |
|
|
|
assert isinstance(fill, Color) |
|
481 |
self.__fill = fill |
self.__fill = fill |
482 |
|
|
483 |
def __eq__(self, other): |
def __eq__(self, other): |