mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-21 03:25:48 +00:00
c802adcbeb
The `FilterField` class provides convenience functions for subclasses to determine the `ArrayHandle` type for scalar and vector fields. However, you needed to know the specific size of vectors. For filters that support an input field of any type, a new form, `CastAndCallVariableVecField` has been added. This calls the underlying functor with an `ArrayHandleRecombineVec` of the appropriate component type. The `CastAndaCallVariableVecField` method also reduces the number of instances created by having a float fallback for any component type that does not satisfy the field types.
13 lines
653 B
Markdown
13 lines
653 B
Markdown
# Added support for `CastAndCallVariableVecField` in `FilterField`
|
|
|
|
The `FilterField` class provides convenience functions for subclasses to
|
|
determine the `ArrayHandle` type for scalar and vector fields. However, you
|
|
needed to know the specific size of vectors. For filters that support an
|
|
input field of any type, a new form, `CastAndCallVariableVecField` has been
|
|
added. This calls the underlying functor with an `ArrayHandleRecombineVec`
|
|
of the appropriate component type.
|
|
|
|
The `CastAndaCallVariableVecField` method also reduces the number of
|
|
instances created by having a float fallback for any component type that
|
|
does not satisfy the field types.
|