VTK  9.3.1
vtkAffineImplicitBackend.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 // Funded by CEA, DAM, DIF, F-91297 Arpajon, France
4 #ifndef vtkAffineImplicitBackend_h
5 #define vtkAffineImplicitBackend_h
6 
7 #include "vtkCommonCoreModule.h"
8 
33 VTK_ABI_NAMESPACE_BEGIN
34 template <typename ValueType>
35 struct VTKCOMMONCORE_EXPORT vtkAffineImplicitBackend final
36 {
43  vtkAffineImplicitBackend(ValueType slope, ValueType intercept);
44 
51  ValueType operator()(int index) const;
52 
56  ValueType Slope;
60  ValueType Intercept;
61 };
62 VTK_ABI_NAMESPACE_END
63 
64 #endif // vtkAffineImplicitBackend_h
ValueType Intercept
The value of the affine function at index 0.
ValueType Slope
The slope of the affine function on the indeces.
A utility structure serving as a backend for affine (as a function of the index) implicit arrays...