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

Method ParseValues

IO/MINC/vtkMNIObjectReader.cxx:276–287  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Read floating-point values into a vtkFloatArray.

Source from the content-addressed store, hash-verified

274//------------------------------------------------------------------------------
275// Read floating-point values into a vtkFloatArray.
276int vtkMNIObjectReader::ParseValues(vtkDataArray* array, vtkIdType n)
277{
278 auto aos = array->ToAOSDataArray();
279 vtkMNIObjectReaderFunctor functor;
280 if (!vtkArrayDispatch::DispatchByArray<vtkArrayDispatch::AOSArrays>::Execute(
281 aos, functor, this, n))
282 {
283 vtkErrorMacro(<< "WriteValues: Array " << array->GetClassName() << " not supported.");
284 return 0;
285 }
286 return functor.Result;
287}
288
289//------------------------------------------------------------------------------
290// Read an integer value

Callers 6

ReadPropertyMethod · 0.95
ReadLineThicknessMethod · 0.95
ReadPointsMethod · 0.95
ReadNormalsMethod · 0.95
ReadColorsMethod · 0.95
ReadCellsMethod · 0.95

Calls 3

ToAOSDataArrayMethod · 0.80
ExecuteFunction · 0.50
GetClassNameMethod · 0.45

Tested by

no test coverage detected