VTK  9.3.0
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
@ index
Definition: vtkX3D.h:246
A utility structure serving as a backend for affine (as a function of the index) implicit arrays.
vtkAffineImplicitBackend(ValueType slope, ValueType intercept)
A non-trivially constructible constructor.
ValueType Intercept
The value of the affine function at index 0.
ValueType operator()(int index) const
The main call method for the backend.
ValueType Slope
The slope of the affine function on the indeces.