Go to the documentation of this file.
11 #ifndef vtk_m_worklet_WarpScalar_h
12 #define vtk_m_worklet_WarpScalar_h
42 result = point + this->
ScaleAmount * scaleFactor * normal;
45 template <
typename T1,
typename T2,
typename T3>
48 const T3& scaleFactor,
51 result = point +
static_cast<T1
>(this->
ScaleAmount * scaleFactor) * normal;
60 #endif // vtk_m_worklet_WarpScalar_h
void(_1, _2, _3, _4) ExecutionSignature
Definition: worklet/WarpScalar.h:29
Definition: worklet/WarpScalar.h:25
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
A control signature tag for output fields.
Definition: WorkletMapField.h:60
VTKM_CONT WarpScalar(vtkm::FloatDefault scaleAmount)
Definition: worklet/WarpScalar.h:31
A control signature tag for input fields.
Definition: WorkletMapField.h:49
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::Float32 FloatDefault
The floating point type to use when no other precision is specified.
Definition: Types.h:198
VTKM_EXEC void operator()(const vtkm::Vec3f &point, const vtkm::Vec3f &normal, const vtkm::FloatDefault &scaleFactor, vtkm::Vec3f &result) const
Definition: worklet/WarpScalar.h:37
void(FieldIn, FieldIn, FieldIn, FieldOut) ControlSignature
Definition: worklet/WarpScalar.h:28
VTKM_EXEC void operator()(const vtkm::Vec< T1, 3 > &point, const vtkm::Vec< T2, 3 > &normal, const T3 &scaleFactor, vtkm::Vec< T1, 3 > &result) const
Definition: worklet/WarpScalar.h:46
vtkm::FloatDefault ScaleAmount
Definition: worklet/WarpScalar.h:55
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38