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

Method InternalImageDataCopy

Common/DataModel/vtkImageData.cxx:1410–1422  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This copies all the local variables (but not objects).

Source from the content-addressed store, hash-verified

1408//------------------------------------------------------------------------------
1409// This copies all the local variables (but not objects).
1410void vtkImageData::InternalImageDataCopy(vtkImageData* src)
1411{
1412 for (int idx = 0; idx < 3; ++idx)
1413 {
1414 this->Increments[idx] = src->Increments[idx];
1415 this->Origin[idx] = src->Origin[idx];
1416 this->Spacing[idx] = src->Spacing[idx];
1417 }
1418 this->DirectionMatrix->DeepCopy(src->DirectionMatrix);
1419 this->ComputeTransforms();
1420 // set extent sets, extent, dimensions, and data description
1421 this->SetExtent(src->GetExtent());
1422}
1423
1424//============================================================================
1425// Starting to make some more general methods that deal with any array

Callers 2

ShallowCopyMethod · 0.95
DeepCopyMethod · 0.95

Calls 4

ComputeTransformsMethod · 0.95
DeepCopyMethod · 0.45
SetExtentMethod · 0.45
GetExtentMethod · 0.45

Tested by

no test coverage detected