mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-20 19:15:45 +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.
653 B
653 B
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.