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

Method ComputeBounds

Common/DataModel/vtkGraph.cxx:166–181  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

164
165//------------------------------------------------------------------------------
166void vtkGraph::ComputeBounds()
167{
168 if (this->Points)
169 {
170 if (this->GetMTime() >= this->ComputeTime)
171 {
172 const double* bounds = this->Points->GetBounds();
173 for (int i = 0; i < 6; i++)
174 {
175 this->Bounds[i] = bounds[i];
176 }
177 // TODO: how to compute the bounds for a distributed graph?
178 this->ComputeTime.Modified();
179 }
180 }
181}
182
183//------------------------------------------------------------------------------
184double* vtkGraph::GetBounds()

Callers 11

GetBoundsMethod · 0.95
PrintSelfMethod · 0.45
GetBoundsMethod · 0.45
GetCenterMethod · 0.45
GetLengthMethod · 0.45
BuildLocatorInternalMethod · 0.45
TestGetBounds.pyFile · 0.45
TimePointLocatorsFunction · 0.45

Calls 3

GetMTimeMethod · 0.95
GetBoundsMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected