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

Method ShallowCopy

Common/DataModel/vtkArrayData.cxx:145–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void vtkArrayData::ShallowCopy(vtkDataObject* other)
146{
147 if (vtkArrayData* const array_data = vtkArrayData::SafeDownCast(other))
148 {
149 this->ClearArrays();
150 this->Implementation->Arrays = array_data->Implementation->Arrays;
151 for (size_t i = 0; i != this->Implementation->Arrays.size(); ++i)
152 {
153 this->Implementation->Arrays[i]->Register(this);
154 }
155 this->Modified();
156 }
157
158 Superclass::ShallowCopy(other);
159}
160
161void vtkArrayData::DeepCopy(vtkDataObject* other)
162{

Callers

nothing calls this directly

Calls 5

ClearArraysMethod · 0.95
ShallowCopyFunction · 0.70
sizeMethod · 0.45
RegisterMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected