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

Method Reset

Filters/Modeling/vtkDijkstraGraphGeodesicPath.cxx:121–136  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

119
120//------------------------------------------------------------------------------
121void vtkDijkstraGraphGeodesicPath::Reset()
122{
123 std::fill(
124 this->Internals->CumulativeWeights.begin(), this->Internals->CumulativeWeights.end(), -1.0);
125 std::fill(this->Internals->Predecessors.begin(), this->Internals->Predecessors.end(), -1);
126 std::fill(this->Internals->OpenVertices.begin(), this->Internals->OpenVertices.end(), false);
127 std::fill(this->Internals->ClosedVertices.begin(), this->Internals->ClosedVertices.end(), false);
128 if (this->RepelPathFromVertices)
129 {
130 std::fill(
131 this->Internals->BlockedVertices.begin(), this->Internals->BlockedVertices.end(), false);
132 }
133
134 this->IdList->Reset();
135 this->Internals->ResetHeap();
136}
137
138//------------------------------------------------------------------------------
139double vtkDijkstraGraphGeodesicPath::CalculateStaticEdgeCost(

Callers 3

RequestDataMethod · 0.95
InitializeMethod · 0.95
TraceShortestPathMethod · 0.45

Calls 3

fillFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected