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

Method ThreadedExecute

Imaging/General/vtkImageNormalize.cxx:97–118  ·  view source on GitHub ↗

------------------------------------------------------------------------------ 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.

Source from the content-addressed store, hash-verified

95// templated function for the input data type. The output data
96// must match input type. This method does handle boundary conditions.
97void 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}
119VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 2

vtkImageNormalizeExecuteFunction · 0.85
GetScalarTypeMethod · 0.45

Tested by

no test coverage detected