| 350 | // templated to handle different data types. |
| 351 | template <class T> |
| 352 | void vtkImageReaderUpdate1(vtkImageReader* self, vtkImageData* data, T* inPtr) |
| 353 | { |
| 354 | void* outPtr; |
| 355 | |
| 356 | // Call the correct templated function for the input |
| 357 | outPtr = data->GetScalarPointer(); |
| 358 | switch (data->GetScalarType()) |
| 359 | { |
| 360 | vtkTemplateMacro(vtkImageReaderUpdate2(self, data, inPtr, (VTK_TT*)(outPtr))); |
| 361 | default: |
| 362 | vtkGenericWarningMacro("Update1: Unknown data type\n"); |
| 363 | } |
| 364 | } |
| 365 | //------------------------------------------------------------------------------ |
| 366 | // This function reads a data from a file. The datas extent/axes |
| 367 | // are assumed to be the same as the file extent/order. |
no test coverage detected