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 |
# |
# |
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 |
|
|
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 |
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): |