| 89 | vtkGradientFilter* filter); |
| 90 | |
| 91 | bool 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 |
no test coverage detected