------------------------------------------------------------------------------ Description: Move iterator to next position. (loop progression). \pre not_at_end: !IsAtEnd()
| 99 | // Move iterator to next position. (loop progression). |
| 100 | // \pre not_at_end: !IsAtEnd() |
| 101 | void vtkBridgeCellIteratorOnDataSet::Next() |
| 102 | { |
| 103 | assert("pre: not_off" && !IsAtEnd()); |
| 104 | |
| 105 | vtkIdType size = this->Size; |
| 106 | vtkCell* c; |
| 107 | int found; |
| 108 | |
| 109 | this->Id++; |
| 110 | |
| 111 | if (this->Dim >= 0) // skip cells of other dimensions than this->Dim |
| 112 | { |
| 113 | found = 0; |
| 114 | while ((this->Id < size) && (!found)) |
| 115 | { |
| 116 | c = this->DataSet->Implementation->GetCell(this->Id); |
| 117 | found = c->GetCellDimension() == this->Dim; |
| 118 | this->Id++; |
| 119 | } |
| 120 | if (found) |
| 121 | { |
| 122 | this->Id--; |
| 123 | } |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | //------------------------------------------------------------------------------ |
| 128 | // Description: |
no test coverage detected