VTK-m  2.2
Public Attributes | List of all members
vtkm::cont::ColorTableSamplesRGBA Class Reference

Color Sample Table used with vtkm::cont::ColorTable for fast coloring. More...

#include <ColorTableSamples.h>

Public Attributes

vtkm::Range SampleRange = { 1.0, 0.0 }
 
vtkm::Int32 NumberOfSamples = 0
 
vtkm::cont::ArrayHandle< vtkm::Vec4ui_8Samples
 

Detailed Description

Color Sample Table used with vtkm::cont::ColorTable for fast coloring.

Holds a special layout of sampled values with the pattern of [Below Color, samples, last sample value again, Above Color, Nan Color ]

This layout has been chosen as it allows for efficient access for values inside the range, and values outside the range. The last value being duplicated a second time is an optimization for fast interpolation of values that are very near to the Max value of the range.

Member Data Documentation

◆ NumberOfSamples

vtkm::Int32 vtkm::cont::ColorTableSamplesRGBA::NumberOfSamples = 0

◆ SampleRange

vtkm::Range vtkm::cont::ColorTableSamplesRGBA::SampleRange = { 1.0, 0.0 }

◆ Samples

vtkm::cont::ArrayHandle<vtkm::Vec4ui_8> vtkm::cont::ColorTableSamplesRGBA::Samples

The documentation for this class was generated from the following file: