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

Function vtkImageReaderUpdate1

IO/Image/vtkImageReader.cxx:352–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350// templated to handle different data types.
351template <class T>
352void 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.

Callers 1

Calls 3

vtkImageReaderUpdate2Function · 0.85
GetScalarPointerMethod · 0.80
GetScalarTypeMethod · 0.45

Tested by

no test coverage detected