/[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 610 by jonathan, Fri Apr 4 13:56:59 2003 UTC revision 642 by jonathan, Thu Apr 10 14:41:50 2003 UTC
# Line 85  class MapRenderer: Line 85  class MapRenderer:
85          lc = layer.GetClassification()          lc = layer.GetClassification()
86          field = lc.GetField()          field = lc.GetField()
87    
         defaultProps = lc.GetDefaultGroup().GetProperties()  
   
88          for i in self.layer_ids(layer):          for i in self.layer_ids(layer):
89              value = None              value = None
90    
# Line 103  class MapRenderer: Line 101  class MapRenderer:
101                  # be null, at which point this call will                  # be null, at which point this call will
102                  # at least retreive the NullData                  # at least retreive the NullData
103                  #                  #
104                  prop = lc.GetProperties(value)  
105                    group = lc.FindGroup(value)
106    
107                    #prop = lc.GetProperties(value)
108              else:              else:
109                  prop = defaultProps                  group = lc.GetDefaultGroup()
110    
111                prop = group.GetProperties()
112    
113                if not group.IsVisible():
114                    continue
115    
116              # don't recreate new objects if they are the same as before              # don't recreate new objects if they are the same as before
117              if prop != old_prop:              if prop != old_prop:

Legend:
Removed from v.610  
changed lines
  Added in v.642

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26