Go to the documentation of this file.
10 #ifndef vtk_m_worklet_colorconversion_ShiftScaleToRGBA_h
11 #define vtk_m_worklet_colorconversion_ShiftScaleToRGBA_h
22 namespace colorconversion
81 rgba[3] *= this->
Alpha;
#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
ShiftScaleToRGBA(vtkm::Float32 shift, vtkm::Float32 scale, vtkm::Float32 alpha)
Definition: ShiftScaleToRGBA.h:34
vtkm::Vec< vtkm::Float32, 4 > Vec4f_32
Vec4f_32 corresponds to a 4-dimensional vector of 32-bit floating point values.
Definition: Types.h:1136
vtkm::Vec< vtkm::Float32, 3 > Vec3f_32
Vec3f_32 corresponds to a 3-dimensional vector of 32-bit floating point values.
Definition: Types.h:1020
VTKM_EXEC vtkm::Vec4ui_8 operator()(const vtkm::Vec< T, 2 > &in) const
Definition: ShiftScaleToRGBA.h:52
const vtkm::Float32 Shift
Definition: ShiftScaleToRGBA.h:27
vtkm::Vec< vtkm::Float32, 2 > Vec2f_32
Vec2f_32 corresponds to a 2-dimensional vector of 32-bit floating point values.
Definition: Types.h:902
const vtkm::Float32 Alpha
Definition: ShiftScaleToRGBA.h:29
const vtkm::Float32 Scale
Definition: ShiftScaleToRGBA.h:28
A control signature tag for input fields.
Definition: WorkletMapField.h:49
VTKM_EXEC vtkm::Vec4ui_8 operator()(const vtkm::Vec< T, 4 > &in) const
Definition: ShiftScaleToRGBA.h:75
void(FieldIn in, FieldOut out) ControlSignature
Definition: ShiftScaleToRGBA.h:31
uint8_t UInt8
Definition: Types.h:157
VTKM_EXEC vtkm::UInt8 ColorToUChar(T t)
Definition: Conversions.h:21
A short fixed-length array.
Definition: Types.h:767
VTKM_EXEC vtkm::Vec4ui_8 operator()(const vtkm::Vec< T, 3 > &in) const
Definition: ShiftScaleToRGBA.h:63
float Float32
Definition: Types.h:154
Definition: ShiftScaleToRGBA.h:25
VTKM_EXEC vtkm::Vec4ui_8 operator()(const T &in) const
Definition: ShiftScaleToRGBA.h:43
_2(_1) ExecutionSignature
Definition: ShiftScaleToRGBA.h:32
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38
VTKM_EXEC void Clamp(vtkm::Float32 &val)
Definition: Conversions.h:39