VTK-m
2.0
|
An ArrayHandle
that combines components from other arrays.
More...
#include <ArrayHandleCompositeVector.h>
Public Member Functions | |
VTKM_ARRAY_HANDLE_SUBCLASS (ArrayHandleCompositeVector,(ArrayHandleCompositeVector< ArrayTs... >),(typename Traits::Superclass)) | |
VTKM_CONT | ArrayHandleCompositeVector (const ArrayTs &... arrays) |
VTKM_CONT vtkm::Tuple< ArrayTs... > | GetArrayTuple () const |
Private Types | |
using | Traits = internal::CompositeVectorTraits< ArrayTs... > |
using | StorageType = typename Traits::StorageType |
An ArrayHandle
that combines components from other arrays.
ArrayHandleCompositeVector
is a specialization of ArrayHandle
that derives its content from other arrays. It takes any number of single-component ArrayHandle
objects and mimics an array that contains vectors with components that come from these delegate arrays.
The easiest way to create and type an ArrayHandleCompositeVector
is to use the make_ArrayHandleCompositeVector
functions.
The ArrayHandleExtractComponent
class may be helpful when a desired component is part of an ArrayHandle
with a vtkm::Vec
ValueType
.
|
private |
|
private |
|
inline |
|
inline |
vtkm::cont::ArrayHandleCompositeVector< ArrayTs >::VTKM_ARRAY_HANDLE_SUBCLASS | ( | ArrayHandleCompositeVector< ArrayTs > | , |
(ArrayHandleCompositeVector< ArrayTs... >) | , | ||
(typename Traits::Superclass) | |||
) |