VTK-m
2.2
|
#include <ScalarsToColors.h>
Public Member Functions | |
ScalarsToColors () | |
ScalarsToColors (const vtkm::Range &range, vtkm::Float32 alpha) | |
ScalarsToColors (const vtkm::Range &range) | |
ScalarsToColors (vtkm::Float32 alpha) | |
void | SetRange (const vtkm::Range &range) |
vtkm::Range | GetRange () const |
void | SetAlpha (vtkm::Float32 alpha) |
vtkm::Float32 | GetAlpha () const |
template<typename T , typename S > | |
void | Run (const vtkm::cont::ArrayHandle< T, S > &values, vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > &rgbaOut) const |
Use each component to generate RGBA colors. More... | |
template<typename T , typename S > | |
void | Run (const vtkm::cont::ArrayHandle< T, S > &values, vtkm::cont::ArrayHandle< vtkm::Vec3ui_8 > &rgbOut) const |
Use each component to generate RGB colors. More... | |
template<typename T , int N, typename S > | |
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. More... | |
template<typename T , int N, typename S > | |
void | RunMagnitude (const vtkm::cont::ArrayHandle< vtkm::Vec< T, N >, S > &values, vtkm::cont::ArrayHandle< vtkm::Vec3ui_8 > &rgbOut) const |
Use magnitude of a vector to generate RGB colors. More... | |
template<typename T , int N, typename S > | |
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. More... | |
template<typename T , int N, typename S > | |
void | RunComponent (const vtkm::cont::ArrayHandle< vtkm::Vec< T, N >, S > &values, vtkm::IdComponent comp, vtkm::cont::ArrayHandle< vtkm::Vec3ui_8 > &rgbOut) const |
Use a single component of a vector to generate RGB colors. More... | |
Private Attributes | |
vtkm::Range | ValueRange = { 0.0f, 255.0f } |
vtkm::Float32 | Alpha = 1.0f |
vtkm::Float32 | Shift = 0.0f |
vtkm::Float32 | Scale = 1.0f |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void vtkm::worklet::ScalarsToColors::Run | ( | const vtkm::cont::ArrayHandle< T, S > & | values, |
vtkm::cont::ArrayHandle< vtkm::Vec3ui_8 > & | rgbOut | ||
) | const |
Use each component to generate RGB colors.
void vtkm::worklet::ScalarsToColors::Run | ( | const vtkm::cont::ArrayHandle< T, S > & | values, |
vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > & | rgbaOut | ||
) | const |
Use each component to generate RGBA colors.
void vtkm::worklet::ScalarsToColors::RunComponent | ( | const vtkm::cont::ArrayHandle< vtkm::Vec< T, N >, S > & | values, |
vtkm::IdComponent | comp, | ||
vtkm::cont::ArrayHandle< vtkm::Vec3ui_8 > & | rgbOut | ||
) | const |
Use a single component of a vector to generate RGB colors.
void vtkm::worklet::ScalarsToColors::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.
void vtkm::worklet::ScalarsToColors::RunMagnitude | ( | const vtkm::cont::ArrayHandle< vtkm::Vec< T, N >, S > & | values, |
vtkm::cont::ArrayHandle< vtkm::Vec3ui_8 > & | rgbOut | ||
) | const |
Use magnitude of a vector to generate RGB colors.
void vtkm::worklet::ScalarsToColors::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.
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |