|
Last change
on this file since 11995 was 11995, checked in by Mathieu Morlighem, 14 years ago |
|
merged trunk-jpl and trunk for revision 11994M
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | #module imports
|
|---|
| 2 | from fielddisplay import fielddisplay
|
|---|
| 3 |
|
|---|
| 4 | class mask:
|
|---|
| 5 | #properties
|
|---|
| 6 | def __init__(self):
|
|---|
| 7 | # {{{ Properties
|
|---|
| 8 | self.elementonfloatingice = float('NaN')
|
|---|
| 9 | self.elementongroundedice = float('NaN')
|
|---|
| 10 | self.elementonwater = float('NaN')
|
|---|
| 11 | self.vertexonfloatingice = float('NaN')
|
|---|
| 12 | self.vertexongroundedice = float('NaN')
|
|---|
| 13 | self.vertexonwater = float('NaN')
|
|---|
| 14 | #}}}
|
|---|
| 15 | def __repr__(obj):
|
|---|
| 16 | # {{{ Display
|
|---|
| 17 |
|
|---|
| 18 | string="";
|
|---|
| 19 | string="%s\n%s"%(string,fielddisplay(obj,"elementonfloatingice","element on floating ice flags list"))
|
|---|
| 20 | string="%s\n%s"%(string,fielddisplay(obj,"vertexonfloatingice","vertex on floating ice flags list"))
|
|---|
| 21 | string="%s\n%s"%(string,fielddisplay(obj,"elementongroundedice","element on grounded ice list"))
|
|---|
| 22 | string="%s\n%s"%(string,fielddisplay(obj,"vertexongroundedice","vertex on grounded ice flags list"))
|
|---|
| 23 | string="%s\n%s"%(string,fielddisplay(obj,"elementonwater","element on water flags list"))
|
|---|
| 24 | string="%s\n%s"%(string,fielddisplay(obj,"vertexonwater","vertex on water flags list"))
|
|---|
| 25 | return string
|
|---|
| 26 | #}}}
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.