Go to the documentation of this file.
10 #ifndef vtk_m_worklet_ScalarsToColors_h
11 #define vtk_m_worklet_ScalarsToColors_h
21 namespace colorconversion
33 if (scale * scale > 1e-30f)
72 this->ValueRange = range;
84 template <
typename T,
typename S>
90 template <
typename T,
typename S>
97 template <
typename T,
int N,
typename S>
103 template <
typename T,
int N,
typename S>
109 template <
typename T,
int N,
typename S>
116 template <
typename T,
int N,
typename S>
124 #include <vtkm/worklet/ScalarsToColors.hxx>
vtkm::Float32 GetAlpha() const
Definition: ScalarsToColors.h:80
void SetAlpha(vtkm::Float32 alpha)
Definition: ScalarsToColors.h:78
Groups connected points that have the same field value.
Definition: Atomic.h:19
ScalarsToColors(vtkm::Float32 alpha)
Definition: ScalarsToColors.h:64
vtkm::Int32 IdComponent
Represents a component ID (index of component in a vector).
Definition: Types.h:168
ScalarsToColors(const vtkm::Range &range, vtkm::Float32 alpha)
Definition: ScalarsToColors.h:51
ScalarsToColors()
Definition: ScalarsToColors.h:49
vtkm::Float32 Shift
Definition: ScalarsToColors.h:45
void RunMagnitude(const vtkm::cont::ArrayHandle< vtkm::Vec< T, N >, S > &values, vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > &rgbaOut) const
Use magnitude of a vector to generate RGBA colors.
VTKM_EXEC_CONT vtkm::Float64 Length() const
Returns the length of the range.
Definition: Range.h:87
ScalarsToColors(const vtkm::Range &range)
Definition: ScalarsToColors.h:58
vtkm::Range GetRange() const
Definition: ScalarsToColors.h:76
Definition: ScalarsToColors.h:41
void SetRange(const vtkm::Range &range)
Definition: ScalarsToColors.h:70
vtkm::Float32 Scale
Definition: ScalarsToColors.h:46
void ComputeShiftScale(const vtkm::Range &range, vtkm::Float32 &shift, vtkm::Float32 &scale)
Definition: ScalarsToColors.h:23
vtkm::Float64 Min
Definition: Range.h:33
float Float32
Definition: Types.h:154
vtkm::Range ValueRange
Definition: ScalarsToColors.h:43
void Run(const vtkm::cont::ArrayHandle< T, S > &values, vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > &rgbaOut) const
Use each component to generate RGBA colors.
vtkm::Float32 Alpha
Definition: ScalarsToColors.h:44
void RunComponent(const vtkm::cont::ArrayHandle< vtkm::Vec< T, N >, S > &values, vtkm::IdComponent comp, vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > &rgbaOut) const
Use a single component of a vector to generate RGBA colors.
Represent a continuous scalar range of values.
Definition: Range.h:31