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

Method DeepCopy

Common/DataModel/vtkUnstructuredGridBase.cxx:19–33  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

17
18//------------------------------------------------------------------------------
19void vtkUnstructuredGridBase::DeepCopy(vtkDataObject* src)
20{
21 this->Superclass::DeepCopy(src);
22
23 if (vtkDataSet* ds = vtkDataSet::SafeDownCast(src))
24 {
25 vtkSmartPointer<vtkCellIterator> cellIter =
26 vtkSmartPointer<vtkCellIterator>::Take(ds->NewCellIterator());
27 for (cellIter->InitTraversal(); !cellIter->IsDoneWithTraversal(); cellIter->GoToNextCell())
28 {
29 this->InsertNextCell(cellIter->GetCellType(), cellIter->GetNumberOfPoints(),
30 cellIter->GetPointIds()->GetPointer(0), cellIter->GetCellFaces());
31 }
32 }
33}
34
35//------------------------------------------------------------------------------
36vtkUnstructuredGridBase* vtkUnstructuredGridBase::GetData(vtkInformation* info)

Callers

nothing calls this directly

Calls 11

InsertNextCellMethod · 0.95
TakeFunction · 0.85
GoToNextCellMethod · 0.80
NewCellIteratorMethod · 0.45
InitTraversalMethod · 0.45
IsDoneWithTraversalMethod · 0.45
GetCellTypeMethod · 0.45
GetNumberOfPointsMethod · 0.45
GetPointerMethod · 0.45
GetPointIdsMethod · 0.45
GetCellFacesMethod · 0.45

Tested by

no test coverage detected