/[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 605 by jonathan, Fri Apr 4 12:16:13 2003 UTC revision 641 by jonathan, Thu Apr 10 14:36:19 2003 UTC
# Line 103  class MapRenderer: Line 103  class MapRenderer:
103                  # be null, at which point this call will                  # be null, at which point this call will
104                  # at least retreive the NullData                  # at least retreive the NullData
105                  #                  #
106                  prop = lc.GetProperties(value)  
107                    group = lc.FindGroup(value)
108                    if not group.IsVisible():
109                        continue
110    
111                    #prop = lc.GetProperties(value)
112                    prop = group.GetProperties()
113              else:              else:
114                  prop = defaultProps                  prop = defaultProps
115    
# Line 112  class MapRenderer: Line 118  class MapRenderer:
118                  old_prop = prop                  old_prop = prop
119    
120                  if shapetype == SHAPETYPE_ARC:                  if shapetype == SHAPETYPE_ARC:
121                      fill = Color.None                      fill = Color.Transparent
122                  else:                  else:
123                      fill = prop.GetFill()                      fill = prop.GetFill()
124            
125                  if fill is Color.None:                  if fill is Color.Transparent:
126                      brush = wxTRANSPARENT_BRUSH                      brush = wxTRANSPARENT_BRUSH
127                  else:                  else:
128                      color = Color2wxColour(fill)                      color = Color2wxColour(fill)
# Line 124  class MapRenderer: Line 130  class MapRenderer:
130            
131                  stroke = prop.GetLineColor()                  stroke = prop.GetLineColor()
132                  stroke_width = prop.GetLineWidth()                  stroke_width = prop.GetLineWidth()
133                  if stroke is Color.None:                  if stroke is Color.Transparent:
134                      pen = wxTRANSPARENT_PEN                      pen = wxTRANSPARENT_PEN
135                  else:                  else:
136                      color = Color2wxColour(stroke)                      color = Color2wxColour(stroke)

Legend:
Removed from v.605  
changed lines
  Added in v.641

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26