------------------------------------------------------------------------------ This method contains a switch statement that calls the correct templated function for the input data type. The output data must match input type. This method does handle boundary conditions.
| 95 | // templated function for the input data type. The output data |
| 96 | // must match input type. This method does handle boundary conditions. |
| 97 | void vtkImageNormalize::ThreadedExecute( |
| 98 | vtkImageData* inData, vtkImageData* outData, int outExt[6], int id) |
| 99 | { |
| 100 | vtkDebugMacro(<< "Execute: inData = " << inData << ", outData = " << outData); |
| 101 | |
| 102 | // this filter expects that input is the same type as output. |
| 103 | if (outData->GetScalarType() != VTK_FLOAT) |
| 104 | { |
| 105 | vtkErrorMacro(<< "Execute: output ScalarType, " << outData->GetScalarType() |
| 106 | << ", must be float"); |
| 107 | return; |
| 108 | } |
| 109 | |
| 110 | switch (inData->GetScalarType()) |
| 111 | { |
| 112 | vtkTemplateMacro( |
| 113 | vtkImageNormalizeExecute(this, inData, outData, outExt, id, static_cast<VTK_TT*>(nullptr))); |
| 114 | default: |
| 115 | vtkErrorMacro(<< "Execute: Unknown ScalarType"); |
| 116 | return; |
| 117 | } |
| 118 | } |
| 119 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected