(self, geoCursor, levelArray, scalarArray)
| 80 | return True |
| 81 | |
| 82 | def handleNode(self, geoCursor, levelArray, scalarArray): |
| 83 | # Add value in fields |
| 84 | idx = geoCursor.GetGlobalNodeIndex() |
| 85 | scalarArray.InsertTuple1(idx, self.value(geoCursor)) |
| 86 | levelArray.InsertTuple1(idx, geoCursor.GetLevel()) |
| 87 | |
| 88 | if geoCursor.IsLeaf(): |
| 89 | if self.shouldRefine(geoCursor): |
| 90 | geoCursor.SubdivideLeaf() |
| 91 | self.handleNode(geoCursor, levelArray, scalarArray) |
| 92 | else: |
| 93 | for ichild in range( geoCursor.GetNumberOfChildren() ): |
| 94 | geoCursor.ToChild(ichild) |
| 95 | self.handleNode(geoCursor, levelArray, scalarArray) |
| 96 | geoCursor.ToParent() |
| 97 | |
| 98 | #-------------------------------- |
| 99 |
no test coverage detected