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

Method GetValueIndex

Common/DataModel/vtkCartesianGrid.cxx:623–627  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

621
622//------------------------------------------------------------------------------
623vtkIdType vtkCartesianGrid::GetValueIndex(vtkDataArray* array, int coordinate[3])
624{
625 vtkIdType tupleIndex = this->GetTupleIndex(array, coordinate);
626 return tupleIndex >= 0 ? tupleIndex * array->GetNumberOfComponents() : -1;
627}
628
629//------------------------------------------------------------------------------
630vtkIdType vtkCartesianGrid::GetValueIndex(vtkDataArray* array, int x, int y, int z)

Callers 2

GetArrayPointerMethod · 0.80

Calls 2

GetTupleIndexMethod · 0.95
GetNumberOfComponentsMethod · 0.45

Tested by

no test coverage detected