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

Method ThreadedRequestData

Examples/Build/vtkMy/Imaging/vtkImageFoo.cxx:139–152  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This method is passed an 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

137// executes a switch statement to call the correct function for the
138// datas data types.
139void vtkImageFoo::ThreadedRequestData(vtkInformation*, vtkInformationVector**,
140 vtkInformationVector*, vtkImageData*** inData, vtkImageData** outData, int outExt[6], int id)
141{
142 void* inPtr = inData[0][0]->GetScalarPointerForExtent(outExt);
143 int inType = inData[0][0]->GetScalarType();
144 switch (inType)
145 {
146 vtkTemplateMacro(
147 vtkImageFooExecute1(this, inData[0][0], static_cast<VTK_TT*>(inPtr), outData[0], outExt, id));
148 default:
149 vtkErrorMacro("Unknown input scalar type " << inType);
150 return;
151 }
152}
153VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 3

vtkImageFooExecute1Function · 0.85
GetScalarTypeMethod · 0.45

Tested by

no test coverage detected