MCPcopy Create free account
hub / github.com/Kitware/VTK / Next

Method Next

Testing/GenericBridge/vtkBridgeCellIteratorOnDataSet.cxx:101–125  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Move iterator to next position. (loop progression). \pre not_at_end: !IsAtEnd()

Source from the content-addressed store, hash-verified

99// Move iterator to next position. (loop progression).
100// \pre not_at_end: !IsAtEnd()
101void 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:

Callers 1

BeginMethod · 0.95

Calls 4

assertFunction · 0.50
IsAtEndFunction · 0.50
GetCellMethod · 0.45
GetCellDimensionMethod · 0.45

Tested by

no test coverage detected