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

Method ThreadedRequestData

Imaging/Core/vtkImageMagnify.cxx:272–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void 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
301void vtkImageMagnify::PrintSelf(ostream& os, vtkIndent indent)
302{

Callers

nothing calls this directly

Calls 4

vtkImageMagnifyExecuteFunction · 0.85
GetScalarTypeMethod · 0.45

Tested by

no test coverage detected