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

Method CopyStructure

Common/DataModel/vtkExplicitStructuredGrid.cxx:388–399  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Copy the topological structure of an input structured grid.

Source from the content-addressed store, hash-verified

386//------------------------------------------------------------------------------
387// Copy the topological structure of an input structured grid.
388void vtkExplicitStructuredGrid::CopyStructure(vtkDataSet* ds)
389{
390 vtkExplicitStructuredGrid* grid = vtkExplicitStructuredGrid::SafeDownCast(ds);
391 if (!grid)
392 {
393 vtkErrorMacro("Input dataset is not a " << this->GetClassName());
394 return;
395 }
396 this->Superclass::CopyStructure(ds);
397 this->InternalCopy(grid);
398 this->SetCells(grid->GetCells());
399}
400
401//------------------------------------------------------------------------------
402void vtkExplicitStructuredGrid::ShallowCopy(vtkDataObject* dataObject)

Callers

nothing calls this directly

Calls 4

InternalCopyMethod · 0.95
GetClassNameMethod · 0.45
SetCellsMethod · 0.45
GetCellsMethod · 0.45

Tested by

no test coverage detected