|
VTK
9.5.20251031
|
A backend for the vtkImplicitArray framework to give a strided view on a buffer.
More...
#include <vtkStridedImplicitBackend.h>
Public Member Functions | |
| ~vtkStridedImplicitBackend () | |
| ValueType | operator() (vtkIdType idx) const |
| Return the value at the given flat idx. | |
| void | mapTuple (vtkIdType tupleIdx, ValueType *tuple) const |
| Fill tuple with the content of the tupleIdx of the array. | |
| ValueType | mapComponent (vtkIdType tupleIdx, int compIdx) const |
| Return the specified component value. | |
| vtkStridedImplicitBackend (const ValueType *buffer, vtkIdType stride, int components, vtkIdType offset) | |
| Constructors. | |
| vtkStridedImplicitBackend (const ValueType *buffer, vtkIdType stride, int components) | |
| Constructors. | |
| vtkStridedImplicitBackend (const ValueType *buffer, vtkIdType stride) | |
| Constructors. | |
A backend for the vtkImplicitArray framework to give a strided view on a buffer.
vtkImplicitArray after the buffer memory is released.See vtkStridedArray for an example of usage.
Definition at line 27 of file vtkStridedImplicitBackend.h.
| vtkStridedImplicitBackend< ValueType >::vtkStridedImplicitBackend | ( | const ValueType * | buffer, |
| vtkIdType | stride, | ||
| int | components, | ||
| vtkIdType | offset | ||
| ) |
Constructors.
| vtkStridedImplicitBackend< ValueType >::vtkStridedImplicitBackend | ( | const ValueType * | buffer, |
| vtkIdType | stride, | ||
| int | components | ||
| ) |
Constructors.
| vtkStridedImplicitBackend< ValueType >::vtkStridedImplicitBackend | ( | const ValueType * | buffer, |
| vtkIdType | stride | ||
| ) |
Constructors.
| vtkStridedImplicitBackend< ValueType >::~vtkStridedImplicitBackend | ( | ) |
| ValueType vtkStridedImplicitBackend< ValueType >::operator() | ( | vtkIdType | idx | ) | const |
Return the value at the given flat idx.
This is equivalent to mapComponent(tupleIdx, compIdx) where idx = tupleIdx * NumberOfComponents + compIdx
| void vtkStridedImplicitBackend< ValueType >::mapTuple | ( | vtkIdType | tupleIdx, |
| ValueType * | tuple | ||
| ) | const |
Fill tuple with the content of the tupleIdx of the array.
In the buffer, this is buffer[this->Stride * tupleIdx + this->Offset].
| ValueType vtkStridedImplicitBackend< ValueType >::mapComponent | ( | vtkIdType | tupleIdx, |
| int | compIdx | ||
| ) | const |
Return the specified component value.
It is at buffer[this->Stride * tupleIdx + compIdx + this->Offset]