------------------------------------------------------------------------------
| 31 | |
| 32 | //------------------------------------------------------------------------------ |
| 33 | void vtkVertexListIterator::SetGraph(vtkGraph* graph) |
| 34 | { |
| 35 | vtkSetObjectBodyMacro(Graph, vtkGraph, graph); |
| 36 | if (this->Graph) |
| 37 | { |
| 38 | this->Current = 0; |
| 39 | this->End = this->Graph->GetNumberOfVertices(); |
| 40 | |
| 41 | // For a distributed graph, shift the iteration space to cover |
| 42 | // local vertices |
| 43 | vtkDistributedGraphHelper* helper = this->Graph->GetDistributedGraphHelper(); |
| 44 | if (helper) |
| 45 | { |
| 46 | int myRank = this->Graph->GetInformation()->Get(vtkDataObject::DATA_PIECE_NUMBER()); |
| 47 | this->Current = helper->MakeDistributedId(myRank, this->Current); |
| 48 | this->End = helper->MakeDistributedId(myRank, this->End); |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | //------------------------------------------------------------------------------ |
| 54 | void vtkVertexListIterator::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected