Viskores  1.0
Public Attributes | List of all members
viskores::cont::ColorTableSamplesRGBA Class Reference

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

#include <ColorTableSamples.h>

Public Attributes

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

Detailed Description

Color Sample Table used with viskores::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

viskores::Int32 viskores::cont::ColorTableSamplesRGBA::NumberOfSamples
Initial value:
=
0

◆ SampleRange

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

◆ Samples

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

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