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>
Manages an array-worth of data.
Definition: ArrayHandle.h:300
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
Base type to use to index small lists.
Definition: Types.h:194
ScalarsToColors(const vtkm::Range &range, vtkm::Float32 alpha)
Definition: ScalarsToColors.h:51
vtkm::Float64 Length() const
Returns the length of the range.
Definition: Range.h:91
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.
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
A short fixed-length array.
Definition: Types.h:357
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
The minumum value of the range (inclusive).
Definition: Range.h:34
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:157
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