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
33VTK_ABI_NAMESPACE_BEGIN
34template <typename ValueType>
35struct 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};
62VTK_ABI_NAMESPACE_END
63
64#endif // vtkAffineImplicitBackend_h
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.