/[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 1298 by jonathan, Tue Jun 24 18:00:26 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)
# Line 515  class ExportRenderer(ScreenRenderer): Line 515  class ExportRenderer(ScreenRenderer):
515          # Render the legend          # Render the legend
516          dc.SetTextForeground(wxBLACK)          dc.SetTextForeground(wxBLACK)
517          if map.HasLayers():          if map.HasLayers():
518              for l in map.Layers():              layers = map.Layers()
519                layers.reverse()
520                for l in layers:
521                  if l.Visible():                  if l.Visible():
522                      # Render title                      # Render title
523                      dc.DrawText(l.Title(), posx, posy)                      dc.DrawText(l.Title(), posx, posy)

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26