Go to the documentation of this file.
10 #ifndef vtk_m_rendering_raytracing_Worklets_h
11 #define vtk_m_rendering_raytracing_Worklets_h
39 template <
typename FloatType>
55 outValue = inValue +
Offset;
59 template <
typename FloatType>
75 template <
typename MaskType>
81 outValue = inValue +
Offset;
102 if (inValue ==
Value)
103 outValue =
static_cast<O
>(1);
105 outValue =
static_cast<O
>(0);
109 template <
class T,
int N>
123 template <
typename O>
133 outValue =
static_cast<O
>(1);
135 outValue =
static_cast<O
>(0);
141 template <
typename T>
144 return (a > b) ? a : b;
151 template <
typename T>
154 return (a < b) ? a : b;
161 #endif //vtk_m_rendering_raytracing_Worklets_h
void(_1, _2) ExecutionSignature
Definition: Worklets.h:97
VTKM_CONT Mask(T value)
Definition: Worklets.h:92
Definition: Worklets.h:23
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_CONT CopyAndOffset(const FloatType offset=0.00001)
Definition: Worklets.h:46
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
A control signature tag for output fields.
Definition: WorkletMapField.h:60
void(_1) ExecutionSignature
Definition: Worklets.h:34
VTKM_EXEC void operator()(const FloatType &inValue, FloatType &outValue) const
Definition: Worklets.h:53
VTKM_CONT CopyAndOffsetMask(const FloatType offset=0.00001, const vtkm::UInt8 mask=1)
Definition: Worklets.h:67
Definition: Worklets.h:139
vtkm::FloatDefault FloatType
Definition: CellAspectFrobeniusMetric.h:50
void(FieldIn, FieldOut) ControlSignature
Definition: Worklets.h:120
void(_1, _2, _3) ExecutionSignature
Definition: Worklets.h:73
T Value
Definition: Worklets.h:88
VTKM_EXEC void operator()(const T &inValue, O &outValue) const
Definition: Worklets.h:124
FloatType Offset
Definition: Worklets.h:62
void(FieldIn, FieldOut) ControlSignature
Definition: Worklets.h:96
T Value
Definition: Worklets.h:25
Definition: Worklets.h:149
VTKM_CONT ManyMask(vtkm::Vec< T, N > values)
Definition: Worklets.h:116
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void(_1, _2) ExecutionSignature
Definition: Worklets.h:121
FloatType Offset
Definition: Worklets.h:42
#define VTKM_CONT
Definition: ExportMacros.h:57
A control signature tag for input-output (in-place) fields.
Definition: WorkletMapField.h:71
void(FieldOut) ControlSignature
Definition: Worklets.h:33
uint8_t UInt8
Definition: Types.h:157
Definition: Worklets.h:60
VTKM_EXEC void operator()(T &outValue) const
Definition: Worklets.h:36
void(FieldIn, FieldOut) ControlSignature
Definition: Worklets.h:50
VTKM_EXEC void operator()(const T &inValue, O &outValue) const
Definition: Worklets.h:100
Definition: Worklets.h:110
Definition: Worklets.h:40
Default mask object that does not suppress anything.
Definition: MaskNone.h:27
VTKM_EXEC_CONT T operator()(const T &a, const T &b) const
Definition: Worklets.h:152
int32_t Int32
Definition: Types.h:160
VTKM_CONT MemSet(T value)
Definition: Worklets.h:29
Definition: Worklets.h:86
void(_1, _2) ExecutionSignature
Definition: Worklets.h:51
VTKM_EXEC void operator()(const FloatType &inValue, FloatType &outValue, const MaskType &mask) const
Definition: Worklets.h:76
void(FieldIn, FieldInOut, FieldIn) ControlSignature
Definition: Worklets.h:72
vtkm::UInt8 MaskValue
Definition: Worklets.h:63
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38
vtkm::Vec< T, N > Values
Definition: Worklets.h:112
VTKM_EXEC_CONT T operator()(const T &a, const T &b) const
Definition: Worklets.h:142