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

Method AllocateOutputData

Common/ExecutionModel/vtkImageAlgorithm.cxx:183–191  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

181
182//------------------------------------------------------------------------------
183void vtkImageAlgorithm::AllocateOutputData(
184 vtkImageData* output, vtkInformation* outInfo, int* uExtent)
185{
186 // set the extent to be the update extent
187 output->SetExtent(uExtent);
188 int scalarType = vtkImageData::GetScalarType(outInfo);
189 int numComponents = vtkImageData::GetNumberOfScalarComponents(outInfo);
190 output->AllocateScalars(scalarType, numComponents);
191}
192
193//------------------------------------------------------------------------------
194vtkImageData* vtkImageAlgorithm::AllocateOutputData(vtkDataObject* output, vtkInformation* outInfo)

Callers 2

PrepareImageDataMethod · 0.45
RequestDataMethod · 0.45

Calls 3

SetExtentMethod · 0.45
AllocateScalarsMethod · 0.45
GetMethod · 0.45

Tested by 1

RequestDataMethod · 0.36