VTK-m  2.0
Public Attributes | List of all members
vtkm::cont::ColorTableSamplesRGB 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::Vec3ui_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 ]

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::ColorTableSamplesRGB::NumberOfSamples = 0

◆ SampleRange

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

◆ Samples

vtkm::cont::ArrayHandle<vtkm::Vec3ui_8> vtkm::cont::ColorTableSamplesRGB::Samples

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