33 |
ALIGN_LEFT, ALIGN_RIGHT, ALIGN_BASELINE |
ALIGN_LEFT, ALIGN_RIGHT, ALIGN_BASELINE |
34 |
|
|
35 |
from Thuban.Model.classification import Classification |
from Thuban.Model.classification import Classification |
36 |
from Thuban.Model.color import Color |
from Thuban.Model.color import Transparent |
37 |
import Thuban.Model.resource |
import Thuban.Model.resource |
38 |
|
|
39 |
if Thuban.Model.resource.has_gdal_support(): |
if Thuban.Model.resource.has_gdal_support(): |
158 |
old_prop = prop |
old_prop = prop |
159 |
|
|
160 |
if shapetype == SHAPETYPE_ARC: |
if shapetype == SHAPETYPE_ARC: |
161 |
fill = Color.Transparent |
fill = Transparent |
162 |
else: |
else: |
163 |
fill = prop.GetFill() |
fill = prop.GetFill() |
164 |
|
|
165 |
|
|
166 |
if fill is Color.Transparent: |
if fill is Transparent: |
167 |
brush = wxTRANSPARENT_BRUSH |
brush = wxTRANSPARENT_BRUSH |
168 |
else: |
else: |
169 |
color = Color2wxColour(fill) |
color = Color2wxColour(fill) |
171 |
|
|
172 |
stroke = prop.GetLineColor() |
stroke = prop.GetLineColor() |
173 |
stroke_width = prop.GetLineWidth() |
stroke_width = prop.GetLineWidth() |
174 |
if stroke is Color.Transparent: |
if stroke is Transparent: |
175 |
pen = wxTRANSPARENT_PEN |
pen = wxTRANSPARENT_PEN |
176 |
else: |
else: |
177 |
color = Color2wxColour(stroke) |
color = Color2wxColour(stroke) |