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

Method GetNextNodeId

Common/DataModel/vtkReebGraph.cxx:3199–3212  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3197
3198//------------------------------------------------------------------------------
3199vtkIdType vtkReebGraph::Implementation::GetNextNodeId()
3200{
3201 for (vtkIdType nodeId = this->currentNodeId + 1; nodeId < this->MainNodeTable.Size; nodeId++)
3202 {
3203 // check if node is cleared
3204 if (!(this->GetNode(nodeId)->ArcUpId == -2))
3205 {
3206 this->currentNodeId = nodeId;
3207 return this->currentNodeId;
3208 }
3209 }
3210
3211 return this->currentNodeId;
3212}
3213
3214//------------------------------------------------------------------------------
3215vtkIdType vtkReebGraph::Implementation::GetPreviousNodeId()

Callers 3

GetPreviousNodeIdMethod · 0.95
CloseStreamMethod · 0.80
PrintNodeDataMethod · 0.80

Calls 1

GetNodeMethod · 0.95

Tested by

no test coverage detected