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

Method ShallowCopy

Filters/FlowPaths/vtkLinearTransformCellLocator.cxx:338–352  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

336
337//------------------------------------------------------------------------------
338void vtkLinearTransformCellLocator::ShallowCopy(vtkAbstractCellLocator* locator)
339{
340 auto cellLocator = vtkLinearTransformCellLocator::SafeDownCast(locator);
341 if (!cellLocator)
342 {
343 vtkErrorMacro("Cannot cast " << locator->GetClassName() << " to " << this->GetClassName());
344 }
345 // we only copy what's actually used by vtkLinearTransformCellLocator
346 this->SetCellLocator(cellLocator->GetCellLocator());
347 this->Transform = cellLocator->Transform;
348 this->InverseTransform = cellLocator->InverseTransform;
349 this->IsLinearTransformation = cellLocator->IsLinearTransformation;
350 this->UseAllPoints = cellLocator->UseAllPoints;
351 this->BuildTime.Modified();
352}
353
354//------------------------------------------------------------------------------
355int vtkLinearTransformCellLocator::IntersectWithLine(const double p1[3], const double p2[3],

Callers

nothing calls this directly

Calls 3

SetCellLocatorMethod · 0.80
GetClassNameMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected