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

Method GetOutputImageData

Filters/ParallelMPI/vtkStructuredImplicitConnectivity.cxx:1170–1182  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1168
1169//------------------------------------------------------------------------------
1170void vtkStructuredImplicitConnectivity::GetOutputImageData(int gridID, vtkImageData* grid)
1171{
1172 assert("pre: nullptr output grid!" && (grid != nullptr));
1173 assert("pre: output grid is nullptr!" && (this->OutputGrid != nullptr));
1174 assert("pre: mismatch gridID" && (this->OutputGrid->ID == gridID));
1175
1176 // silence warnings, the intent for the gridID here is for extending the
1177 // implementation in the future to allow multiple grids per process.
1178 static_cast<void>(gridID);
1179
1180 grid->SetExtent(this->OutputGrid->Extent);
1181 grid->GetPointData()->ShallowCopy(this->OutputGrid->PointData);
1182}
1183
1184//------------------------------------------------------------------------------
1185void vtkStructuredImplicitConnectivity::GetOutputRectilinearGrid(

Callers 1

RequestDataMethod · 0.80

Calls 4

assertFunction · 0.50
SetExtentMethod · 0.45
ShallowCopyMethod · 0.45
GetPointDataMethod · 0.45

Tested by

no test coverage detected