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

Method GetScalarIndex

Common/DataModel/vtkImageData.cxx:976–979  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This Method returns an index to a location in the vtkImageData. Coordinates are in pixel units and are relative to the whole image origin.

Source from the content-addressed store, hash-verified

974// Coordinates are in pixel units and are relative to the whole
975// image origin.
976vtkIdType vtkImageData::GetScalarIndex(int x, int y, int z)
977{
978 return this->GetTupleIndex(this->GetPointData()->GetScalars(), x, y, z);
979}
980
981//------------------------------------------------------------------------------
982// This Method returns an index to a location in the vtkImageData.

Callers 3

TryLoadGLTFModelFunction · 0.80

Calls 3

GetTupleIndexMethod · 0.80
GetScalarsMethod · 0.45
GetPointDataMethod · 0.45

Tested by

no test coverage detected