#include "vtkCommonCoreModule.h"
#include "vtkCompositeImplicitBackend.h"
#include "vtkImplicitArray.h"
#include <vector>
Go to the source code of this file.
◆ VTK_COMPOSITE_ARRAY_TEMPLATE_EXTERN
#define VTK_COMPOSITE_ARRAY_TEMPLATE_EXTERN |
◆ vtkCompositeArray
A utility alias for concatenating arrays into an implicit array.
In order to be usefully included in the dispatchers, these arrays need to be instantiated at the vtk library compile time.
An example of potential usage
std::vector<vtkDataArray*> arrays({leftArr, rightArr});
compositeArr->SetNumberOfComponents(1);
compositeArr->SetNumberOfTuples(2);
CHECK(compositArr->GetValue(1) == 1);
void SetValue(vtkIdType valueIdx, ValueType value)
Set the value at valueIdx to value.
A utility structure serving as a backend for composite arrays: an array composed of multiple arrays c...
void SetNumberOfComponents(int num) override
Set/Get the dimension (n) of the components.
void SetNumberOfTuples(vtkIdType number) override
Set the number of tuples (a component group) in the array.
- See also
- vtkImplicitArray vtkCompositeImplicitBackend
Definition at line 53 of file vtkCompositeArray.h.
◆ vtkExternSecondOrderTemplateMacro()