| 270 | } |
| 271 | |
| 272 | void vtkImageMagnify::ThreadedRequestData(vtkInformation* vtkNotUsed(request), |
| 273 | vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* vtkNotUsed(outputVector), |
| 274 | vtkImageData*** inData, vtkImageData** outData, int outExt[6], int id) |
| 275 | { |
| 276 | int inExt[6]; |
| 277 | this->InternalRequestUpdateExtent(inExt, outExt); |
| 278 | |
| 279 | void* inPtr = inData[0][0]->GetScalarPointerForExtent(inExt); |
| 280 | void* outPtr = outData[0]->GetScalarPointerForExtent(outExt); |
| 281 | |
| 282 | // this filter expects that input is the same type as output. |
| 283 | if (inData[0][0]->GetScalarType() != outData[0]->GetScalarType()) |
| 284 | { |
| 285 | vtkErrorMacro("Execute: input ScalarType, " << inData[0][0]->GetScalarType() |
| 286 | << ", must match out ScalarType " |
| 287 | << outData[0]->GetScalarType()); |
| 288 | return; |
| 289 | } |
| 290 | |
| 291 | switch (inData[0][0]->GetScalarType()) |
| 292 | { |
| 293 | vtkTemplateMacro(vtkImageMagnifyExecute(this, inData[0][0], static_cast<VTK_TT*>(inPtr), inExt, |
| 294 | outData[0], static_cast<VTK_TT*>(outPtr), outExt, id)); |
| 295 | default: |
| 296 | vtkErrorMacro(<< "Execute: Unknown ScalarType"); |
| 297 | return; |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | void vtkImageMagnify::PrintSelf(ostream& os, vtkIndent indent) |
| 302 | { |
nothing calls this directly
no test coverage detected