------------------------------------------------------------------------------
| 181 | |
| 182 | //------------------------------------------------------------------------------ |
| 183 | void 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 | //------------------------------------------------------------------------------ |
| 194 | vtkImageData* vtkImageAlgorithm::AllocateOutputData(vtkDataObject* output, vtkInformation* outInfo) |