/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/classification.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/classification.py

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

revision 436 by jonathan, Thu Feb 27 15:53:03 2003 UTC revision 453 by bh, Tue Mar 4 11:31:39 2003 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001 by Intevation GmbH  # Copyright (c) 2001, 2003 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jonathan Coles <[email protected]>  # Jonathan Coles <[email protected]>
4  #  #
# Line 16  an input value falls with a range that d Line 16  an input value falls with a range that d
16  If no mapping can be found then default data will  If no mapping can be found then default data will
17  be returned. Input values must be hashable objects  be returned. Input values must be hashable objects
18    
19  See the description of GetClassData() for more information  See the description of GetGroup() for more information
20  on the mapping algorithm.  on the mapping algorithm.
21  """  """
22        
# Line 33  from Thuban.Model.color import Color Line 33  from Thuban.Model.color import Color
33    
34  import Thuban.Model.layer  import Thuban.Model.layer
35    
 from wxPython.wx import *  
36    
37  # constants  # constants
38  RANGE_MIN  = 0  RANGE_MIN  = 0
# Line 406  class ClassGroupRange(ClassGroup): Line 405  class ClassGroupRange(ClassGroup):
405      def Matches(self, value):      def Matches(self, value):
406          return self.min <= value < self.max          return self.min <= value < self.max
407    
408      def GetProperties(self, value):      def GetProperties(self, value = None):
409          if value is None: return self.prop          if value is None: return self.prop
410    
411          if self.Matches(value):          if self.Matches(value):

Legend:
Removed from v.436  
changed lines
  Added in v.453

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26