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

Method CopyStructure

Common/DataModel/vtkCellGrid.cxx:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool vtkCellGrid::CopyStructure(vtkCellGrid* other, bool byReference)
144{
145 this->Initialize();
146 vtkNew<vtkCellGridCopyQuery> copier;
147 copier->SetSource(other);
148 copier->SetTarget(this);
149 copier->CopyOnlyShapeOn();
150 copier->SetDeepCopyArrays(!byReference);
151 if (other->Query(copier))
152 {
153 return true;
154 }
155 return false;
156}
157
158vtkDataSetAttributes* vtkCellGrid::GetAttributes(int type)
159{

Callers

nothing calls this directly

Calls 4

InitializeMethod · 0.95
SetSourceMethod · 0.45
SetTargetMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected