|
VTK
9.5.20251027
|
A utility structure serving as a backend for affine (as a function of the index) implicit arrays. More...
#include <vtkAffineImplicitBackend.h>
Public Member Functions | |
| vtkAffineImplicitBackend (ValueType slope, ValueType intercept) | |
| A non-trivially constructible constructor. | |
| ValueType | operator() (vtkIdType index) const |
| The main call method for the backend. | |
Public Attributes | |
| ValueType | Slope |
| The slope of the affine function on the indices. | |
| ValueType | Intercept |
| The value of the affine function at index 0. | |
A utility structure serving as a backend for affine (as a function of the index) implicit arrays.
This structure can be classified as a closure and can be called using syntax similar to a function call.
At construction it takes two parameters: the slope of the map and the intercept. It returns a value calculated as:
value = slope * index + intercept
An example of potential usage in a vtkImplicitArray
Definition at line 37 of file vtkAffineImplicitBackend.h.
| vtkAffineImplicitBackend< ValueType >::vtkAffineImplicitBackend | ( | ValueType | slope, |
| ValueType | intercept | ||
| ) |
A non-trivially constructible constructor.
| slope | the slope of the affine function |
| intercept | the intercept value at the origin (i.e. the value at 0) |
| ValueType vtkAffineImplicitBackend< ValueType >::operator() | ( | vtkIdType | index | ) | const |
The main call method for the backend.
| index | the index at which one wished to evaluate the backend |
| ValueType vtkAffineImplicitBackend< ValueType >::Slope |
The slope of the affine function on the indices.
Definition at line 58 of file vtkAffineImplicitBackend.h.
| ValueType vtkAffineImplicitBackend< ValueType >::Intercept |
The value of the affine function at index 0.
Definition at line 62 of file vtkAffineImplicitBackend.h.