Go to the documentation of this file.
12 #ifndef vtk_m_worklet_contour_FieldPropagation_h
13 #define vtk_m_worklet_contour_FieldPropagation_h
30 WholeArrayIn inputField,
38 template <
typename WeightType,
typename InFieldPortalType,
typename OutFieldType>
40 const WeightType& weight,
41 const InFieldPortalType& inPortal,
42 OutFieldType& result)
const
45 result =
static_cast<OutFieldType
>(
46 vtkm::Lerp(inPortal.Get(low_high[0]), inPortal.Get(low_high[1]), weight));
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
Definition: FieldPropagation.h:25
A control signature tag for output fields.
Definition: WorkletMapField.h:60
VTKM_EXEC void operator()(const vtkm::Id2 &low_high, const WeightType &weight, const InFieldPortalType &inPortal, OutFieldType &result) const
Definition: FieldPropagation.h:39
A control signature tag for input fields.
Definition: WorkletMapField.h:49
#define VTKM_CONT
Definition: ExportMacros.h:57
_1 InputDomain
Definition: FieldPropagation.h:33
VTKM_EXEC_CONT ValueType Lerp(const ValueType &value0, const ValueType &value1, const WeightType &weight)
Returns the linear interpolation of two values based on weight.
Definition: VectorAnalysis.h:32
VTKM_CONT MapPointField()
Definition: FieldPropagation.h:36
void(_1, _2, _3, _4) ExecutionSignature
Definition: FieldPropagation.h:32
void(FieldIn interpolation_ids, FieldIn interpolation_weights, WholeArrayIn inputField, FieldOut output) ControlSignature
Definition: FieldPropagation.h:31
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38