| 
    VTK
    9.3.0
    
   | 
 
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() (int index) const | 
| The main call method for the backend.   | |
Public Attributes | |
| ValueType | Slope | 
| The slope of the affine function on the indeces.   | |
| 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 35 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() | ( | int | 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 indeces.
Definition at line 56 of file vtkAffineImplicitBackend.h.
| ValueType vtkAffineImplicitBackend< ValueType >::Intercept | 
The value of the affine function at index 0.
Definition at line 60 of file vtkAffineImplicitBackend.h.