============================================================================= Convenience function for getting the text attribute on a variable. Returns true if the attribute exists, false otherwise.
| 60 | // Convenience function for getting the text attribute on a variable. Returns |
| 61 | // true if the attribute exists, false otherwise. |
| 62 | VTK_ABI_NAMESPACE_BEGIN |
| 63 | |
| 64 | //------------------------------------------------------------------------------ |
| 65 | // Convenience function for getting the range of all values in all components of |
| 66 | // a vtkDoubleArray. |
| 67 | static void GetRangeOfAllComponents(vtkDoubleArray* array, double range[2]) |
| 68 | { |
| 69 | range[0] = VTK_DOUBLE_MAX; |
| 70 | range[1] = VTK_DOUBLE_MIN; |
| 71 | for (int component = 0; component < array->GetNumberOfComponents(); component++) |
| 72 | { |
| 73 | double componentRange[2]; |
| 74 | array->GetRange(componentRange, component); |
| 75 | range[0] = std::min(componentRange[0], range[0]); |
| 76 | range[1] = std::max(componentRange[1], range[1]); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | //============================================================================= |
| 81 | vtkNetCDFCFReader::vtkDimensionInfo::vtkDimensionInfo( |
no test coverage detected