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

Method DeepCopy

Common/Core/vtkDataArray.cxx:114–129  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

112
113//------------------------------------------------------------------------------
114void vtkDataArray::DeepCopy(vtkAbstractArray* aa)
115{
116 if (aa == nullptr)
117 {
118 return;
119 }
120
121 vtkDataArray* da = vtkDataArray::FastDownCast(aa);
122 if (da == nullptr)
123 {
124 vtkErrorMacro(<< "Input array is not a vtkDataArray (" << aa->GetClassName() << ")");
125 return;
126 }
127
128 this->DeepCopy(da);
129}
130
131//------------------------------------------------------------------------------
132void vtkDataArray::ShallowCopy(vtkDataArray* other)

Callers 2

ShallowCopyMethod · 0.95
ToAOSDataArrayMethod · 0.45

Calls 2

FastDownCastFunction · 0.70
GetClassNameMethod · 0.45

Tested by

no test coverage detected