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

Method ThreadedRequestData

Imaging/Core/vtkImageThreshold.cxx:257–269  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This method is passed a input and output data, and executes the filter algorithm to fill the output from the input. It just executes a switch statement to call the correct function for the datas data types.

Source from the content-addressed store, hash-verified

255// It just executes a switch statement to call the correct function for
256// the datas data types.
257void vtkImageThreshold::ThreadedRequestData(vtkInformation* vtkNotUsed(request),
258 vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* vtkNotUsed(outputVector),
259 vtkImageData*** inData, vtkImageData** outData, int outExt[6], int id)
260{
261 switch (inData[0][0]->GetScalarType())
262 {
263 vtkTemplateMacro(vtkImageThresholdExecute1(
264 this, inData[0][0], outData[0], outExt, id, static_cast<VTK_TT*>(nullptr)));
265 default:
266 vtkErrorMacro(<< "Execute: Unknown input ScalarType");
267 return;
268 }
269}
270
271//------------------------------------------------------------------------------
272void vtkImageThreshold::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 2

GetScalarTypeMethod · 0.45

Tested by

no test coverage detected