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

Method ShallowCopy

Filters/ParallelStatistics/vtkGenerateStatistics.cxx:1342–1357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1340}
1341
1342void vtkGenerateStatistics::ShallowCopy(vtkDataObject* out, vtkDataObject* in)
1343{
1344 // Our output is always composite:
1345 vtkCompositeDataSet* cdOut = vtkCompositeDataSet::SafeDownCast(out);
1346 // Use a different method to copy the input if the input is composite
1347 // so that leaf nodes are not simply references to the input data
1348 // (since we may modify them).
1349 if (auto cdIn = vtkCompositeDataSet::SafeDownCast(in))
1350 {
1351 cdOut->CompositeShallowCopy(cdIn);
1352 }
1353 else
1354 {
1355 out->ShallowCopy(in);
1356 }
1357}
1358
1359void vtkGenerateStatistics::GenerateSubset(std::unordered_map<vtkIdType, vtkIdType>& subset,
1360 vtkIdType numberOfSamples, double trainingFraction, vtkUnsignedCharArray* ghostData,

Callers 15

RequestDataMethod · 0.45
ExtractImageDataMethod · 0.45
ExtractPolyDataMethod · 0.45
ExtractStructuredGridMethod · 0.45
RequestDataMethod · 0.45
RequestDataInternalMethod · 0.45
RedistributeDataSetMethod · 0.45
SingleProcessExecuteMethod · 0.45

Calls 1

CompositeShallowCopyMethod · 0.45

Tested by

no test coverage detected