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

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

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

revision 1324 by frank, Tue Jul 1 09:28:47 2003 UTC revision 1343 by jonathan, Tue Jul 1 16:11:08 2003 UTC
# Line 33  from Thuban.Model.label import ALIGN_CEN Line 33  from Thuban.Model.label import ALIGN_CEN
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():
# Line 158  class MapRenderer: Line 158  class MapRenderer:
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)
# Line 171  class MapRenderer: Line 171  class MapRenderer:
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)

Legend:
Removed from v.1324  
changed lines
  Added in v.1343

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26