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

Method Initialize

Filters/Modeling/vtkDijkstraGraphGeodesicPath.cxx:101–118  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

99
100//------------------------------------------------------------------------------
101void 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//------------------------------------------------------------------------------
121void vtkDijkstraGraphGeodesicPath::Reset()

Callers 2

RequestDataMethod · 0.95
GetCumulativeWeightsMethod · 0.45

Calls 5

ResetMethod · 0.95
BuildAdjacencyMethod · 0.95
GetNumberOfPointsMethod · 0.45
resizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected