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

Function vtkGradientFilterHasArray

Filters/General/vtkGradientFilter.cxx:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 vtkGradientFilter* filter);
90
91bool vtkGradientFilterHasArray(vtkFieldData* fieldData, vtkDataArray* array)
92{
93 int numarrays = fieldData->GetNumberOfArrays();
94 for (int i = 0; i < numarrays; i++)
95 {
96 if (array == fieldData->GetArray(i))
97 {
98 return true;
99 }
100 }
101 return false;
102}
103
104// generic way to get the coordinate for either a cell (using
105// the parametric center) or a point

Callers 1

RequestDataMethod · 0.85

Calls 2

GetNumberOfArraysMethod · 0.45
GetArrayMethod · 0.45

Tested by

no test coverage detected