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

Method CopyStructure

Common/DataModel/vtkUniformHyperTreeGrid.cxx:360–372  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

358
359//------------------------------------------------------------------------------
360void vtkUniformHyperTreeGrid::CopyStructure(vtkDataObject* ds)
361{
362 assert("pre: ds_exists" && ds != nullptr);
363 vtkUniformHyperTreeGrid* uhtg = vtkUniformHyperTreeGrid::SafeDownCast(ds);
364 assert("pre: same_type" && uhtg != nullptr);
365
366 // Call superclass
367 this->Superclass::CopyStructure(ds);
368
369 // Copy uniform grid parameters
370 memcpy(this->Origin, uhtg->GetOrigin(), 3 * sizeof(double));
371 memcpy(this->GridScale, uhtg->GetGridScale(), 3 * sizeof(double));
372}
373
374//------------------------------------------------------------------------------
375void vtkUniformHyperTreeGrid::GetGridBounds(double* bounds)

Callers 2

ShallowCopyMethod · 0.95
DeepCopyMethod · 0.95

Calls 2

assertFunction · 0.50
GetOriginMethod · 0.45

Tested by

no test coverage detected