Go to the documentation of this file.
10 #ifndef vtk_m_cont_ColorTableMap_h
11 #define vtk_m_cont_ColorTableMap_h
19 #include <vtkm/worklet/colorconversion/LookupTable.h>
20 #include <vtkm/worklet/colorconversion/Portals.h>
21 #include <vtkm/worklet/colorconversion/TransferFunction.h>
46 template <
typename T,
typename S>
55 vtkm::worklet::colorconversion::LookupTable lookupTable(samples);
57 invoke(lookupTable, values, samples.
Samples, rgbaOut);
77 template <
typename T,
typename S>
86 vtkm::worklet::colorconversion::LookupTable lookupTable(samples);
88 invoke(lookupTable, values, samples.
Samples, rgbOut);
94 template <
typename T,
int N,
typename S>
106 template <
typename T,
int N,
typename S>
118 template <
typename T,
int N,
typename S>
131 template <
typename T,
int N,
typename S>
148 template <
typename T,
typename S>
154 invoke(vtkm::worklet::colorconversion::TransferFunction{}, values, table, rgbaOut);
164 template <
typename T,
typename S>
170 invoke(vtkm::worklet::colorconversion::TransferFunction{}, values, table, rgbOut);
176 template <
typename T,
int N,
typename S>
188 template <
typename T,
int N,
typename S>
200 template <
typename T,
int N,
typename S>
213 template <
typename T,
int N,
typename S>
225 #endif // vtk_m_cont_ColorTableMap_h
Manages an array-worth of data.
Definition: ArrayHandle.h:300
Groups connected points that have the same field value.
Definition: Atomic.h:19
Color Table for coloring arbitrary fields.
Definition: cont/ColorTable.h:89
vtkm::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
bool ColorTableMapMagnitude(const vtkm::cont::ArrayHandle< vtkm::Vec< T, N >, S > &values, const vtkm::cont::ColorTableSamplesRGBA &samples, vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > &rgbaOut)
Use magnitude of a vector with a sample table to generate RGBA colors.
Definition: ColorTableMap.h:95
bool ColorTableMapComponent(const vtkm::cont::ArrayHandle< vtkm::Vec< T, N >, S > &values, vtkm::IdComponent comp, const vtkm::cont::ColorTableSamplesRGBA &samples, vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > &rgbaOut)
Use a single component of a vector with a sample table to generate RGBA colors.
Definition: ColorTableMap.h:119
Color Sample Table used with vtkm::cont::ColorTable for fast coloring.
Definition: ColorTableSamples.h:32
Allows launching any worklet without a dispatcher.
Definition: Invoker.h:41
bool ColorTableMap(const vtkm::cont::ArrayHandle< T, S > &values, const vtkm::cont::ColorTableSamplesRGBA &samples, vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > &rgbaOut)
Sample each value through an intermediate lookup/sample table to generate RGBA colors.
Definition: ColorTableMap.h:47
Definition: ScalarsToColors.h:21
Tag for a device adapter used to specify that any device may be used for an operation.
Definition: DeviceAdapterTag.h:180
vtkm::Int32 NumberOfSamples
Definition: ColorTableSamples.h:55
A short fixed-length array.
Definition: Types.h:357
Color Sample Table used with vtkm::cont::ColorTable for fast coloring.
Definition: ColorTableSamples.h:51
vtkm::cont::ArrayHandle< vtkm::Vec4ui_8 > Samples
Definition: ColorTableSamples.h:37
vtkm::cont::ArrayHandle< vtkm::Vec3ui_8 > Samples
Definition: ColorTableSamples.h:56
vtkm::cont::ArrayHandleTransform< HandleType, FunctorType > make_ArrayHandleTransform(HandleType handle, FunctorType functor)
make_ArrayHandleTransform is convenience function to generate an ArrayHandleTransform.
Definition: ArrayHandleTransform.h:480
vtkm::Int32 NumberOfSamples
Definition: ColorTableSamples.h:36