------------------------------------------------------------------------------
| 99 | |
| 100 | //------------------------------------------------------------------------------ |
| 101 | void vtkDijkstraGraphGeodesicPath::Initialize(vtkDataSet* inData) |
| 102 | { |
| 103 | this->NumberOfVertices = inData->GetNumberOfPoints(); |
| 104 | |
| 105 | this->Internals->CumulativeWeights.resize(this->NumberOfVertices); |
| 106 | this->Internals->Predecessors.resize(this->NumberOfVertices); |
| 107 | this->Internals->OpenVertices.resize(this->NumberOfVertices); |
| 108 | this->Internals->ClosedVertices.resize(this->NumberOfVertices); |
| 109 | this->Internals->Adjacency.clear(); |
| 110 | this->Internals->Adjacency.resize(this->NumberOfVertices); |
| 111 | this->Internals->BlockedVertices.resize(this->NumberOfVertices); |
| 112 | |
| 113 | // The heap has elements from 1 to n |
| 114 | this->Internals->InitializeHeap(this->NumberOfVertices); |
| 115 | |
| 116 | this->Reset(); |
| 117 | this->BuildAdjacency(inData); |
| 118 | } |
| 119 | |
| 120 | //------------------------------------------------------------------------------ |
| 121 | void vtkDijkstraGraphGeodesicPath::Reset() |
no test coverage detected