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

Method DeepCopy

Common/Transforms/vtkAbstractTransform.cxx:291–317  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

289
290//------------------------------------------------------------------------------
291void vtkAbstractTransform::DeepCopy(vtkAbstractTransform* transform)
292{
293 // check whether we're trying to copy a transform to itself
294 if (transform == this)
295 {
296 return;
297 }
298
299 // check to see if the transform is the same type as this one
300 if (!transform->IsA(this->GetClassName()))
301 {
302 vtkErrorMacro("DeepCopy: can't copy a " << transform->GetClassName() << " into a "
303 << this->GetClassName() << ".");
304 return;
305 }
306
307 if (transform->CircuitCheck(this))
308 {
309 vtkErrorMacro("DeepCopy: this would create a circular reference.");
310 return;
311 }
312
313 // call InternalDeepCopy for subtype
314 this->InternalDeepCopy(transform);
315
316 this->Modified();
317}
318
319//------------------------------------------------------------------------------
320void vtkAbstractTransform::Update()

Callers 14

InternalUpdateMethod · 0.45
InternalDeepCopyMethod · 0.45
InternalDeepCopyMethod · 0.45
InternalUpdateMethod · 0.45
InternalUpdateMethod · 0.45
PushMethod · 0.45
InternalDeepCopyMethod · 0.45
InternalUpdateMethod · 0.45
InternalDeepCopyMethod · 0.45
SetMatrixMethod · 0.45
GetMatrixMethod · 0.45
GetMatrixMethod · 0.45

Calls 10

ModifiedMethod · 0.95
IsAMethod · 0.80
SwapForwardInverseMethod · 0.80
DeleteMethod · 0.65
NewFunction · 0.50
GetClassNameMethod · 0.45
CircuitCheckMethod · 0.45
InternalDeepCopyMethod · 0.45
RegisterMethod · 0.45
GetMatrixMethod · 0.45

Tested by 3

InternalDeepCopyMethod · 0.36
InternalUpdateMethod · 0.36