VTK-m  2.0
Public Member Functions | Public Attributes | Private Member Functions | List of all members
vtkm::exec::ColorTable Class Reference

#include <ColorTable.h>

Public Member Functions

VTKM_EXEC vtkm::Vec3f_32 MapThroughColorSpace (vtkm::Float64) const
 
VTKM_EXEC vtkm::Vec3f_32 MapThroughColorSpace (const vtkm::Vec3f_32 &rgb1, const vtkm::Vec3f_32 &rgb2, vtkm::Float32 weight) const
 
VTKM_EXEC vtkm::Float32 MapThroughOpacitySpace (vtkm::Float64 value) const
 

Public Attributes

vtkm::ColorSpace Space
 
vtkm::Float64 const * ColorNodes = nullptr
 
vtkm::Vec3f_32 const * RGB = nullptr
 
vtkm::Float64 const * ONodes = nullptr
 
vtkm::Float32 const * Alpha = nullptr
 
vtkm::Vec2f_32 const * MidSharp = nullptr
 
vtkm::Int32 ColorSize = 0
 
vtkm::Int32 OpacitySize = 0
 
vtkm::Vec3f_32 NaNColor = { 0.5f, 0.0f, 0.0f }
 
vtkm::Vec3f_32 BelowRangeColor = { 0.0f, 0.0f, 0.0f }
 
vtkm::Vec3f_32 AboveRangeColor = { 0.0f, 0.0f, 0.0f }
 
bool UseClamping = true
 

Private Member Functions

VTKM_EXEC void FindColors (vtkm::Float64 value, vtkm::Vec3f_32 &first, vtkm::Vec3f_32 &second, vtkm::Float32 &weight) const
 
VTKM_EXEC vtkm::Vec3f_32 MapThroughColorSpaceRGB (const vtkm::Vec3f_32 &rgb1, const vtkm::Vec3f_32 &rgb2, vtkm::Float32 weight) const
 
VTKM_EXEC vtkm::Vec3f_32 MapThroughColorSpaceHSV (const vtkm::Vec3f_32 &rgb1, const vtkm::Vec3f_32 &rgb2, vtkm::Float32 weight) const
 
VTKM_EXEC vtkm::Vec3f_32 MapThroughColorSpaceHSVWrap (const vtkm::Vec3f_32 &rgb1, const vtkm::Vec3f_32 &rgb2, vtkm::Float32 weight) const
 
VTKM_EXEC vtkm::Vec3f_32 MapThroughColorSpaceLab (const vtkm::Vec3f_32 &rgb1, const vtkm::Vec3f_32 &rgb2, vtkm::Float32 weight) const
 
VTKM_EXEC vtkm::Vec3f_32 MapThroughColorSpaceDiverging (const vtkm::Vec3f_32 &rgb1, const vtkm::Vec3f_32 &rgb2, vtkm::Float32 weight) const
 

Member Function Documentation

◆ FindColors()

VTKM_EXEC void vtkm::exec::ColorTable::FindColors ( vtkm::Float64  value,
vtkm::Vec3f_32 first,
vtkm::Vec3f_32 second,
vtkm::Float32 weight 
) const
inlineprivate

◆ MapThroughColorSpace() [1/2]

VTKM_EXEC vtkm::Vec3f_32 vtkm::exec::ColorTable::MapThroughColorSpace ( const vtkm::Vec3f_32 rgb1,
const vtkm::Vec3f_32 rgb2,
vtkm::Float32  weight 
) const
inline

◆ MapThroughColorSpace() [2/2]

VTKM_EXEC vtkm::Vec3f_32 vtkm::exec::ColorTable::MapThroughColorSpace ( vtkm::Float64  ) const
inline

◆ MapThroughColorSpaceDiverging()

VTKM_EXEC vtkm::Vec3f_32 vtkm::exec::ColorTable::MapThroughColorSpaceDiverging ( const vtkm::Vec3f_32 rgb1,
const vtkm::Vec3f_32 rgb2,
vtkm::Float32  weight 
) const
inlineprivate

◆ MapThroughColorSpaceHSV()

VTKM_EXEC vtkm::Vec3f_32 vtkm::exec::ColorTable::MapThroughColorSpaceHSV ( const vtkm::Vec3f_32 rgb1,
const vtkm::Vec3f_32 rgb2,
vtkm::Float32  weight 
) const
inlineprivate

◆ MapThroughColorSpaceHSVWrap()

VTKM_EXEC vtkm::Vec3f_32 vtkm::exec::ColorTable::MapThroughColorSpaceHSVWrap ( const vtkm::Vec3f_32 rgb1,
const vtkm::Vec3f_32 rgb2,
vtkm::Float32  weight 
) const
inlineprivate

◆ MapThroughColorSpaceLab()

VTKM_EXEC vtkm::Vec3f_32 vtkm::exec::ColorTable::MapThroughColorSpaceLab ( const vtkm::Vec3f_32 rgb1,
const vtkm::Vec3f_32 rgb2,
vtkm::Float32  weight 
) const
inlineprivate

◆ MapThroughColorSpaceRGB()

VTKM_EXEC vtkm::Vec3f_32 vtkm::exec::ColorTable::MapThroughColorSpaceRGB ( const vtkm::Vec3f_32 rgb1,
const vtkm::Vec3f_32 rgb2,
vtkm::Float32  weight 
) const
inlineprivate

◆ MapThroughOpacitySpace()

VTKM_EXEC vtkm::Float32 vtkm::exec::ColorTable::MapThroughOpacitySpace ( vtkm::Float64  value) const
inline

Member Data Documentation

◆ AboveRangeColor

vtkm::Vec3f_32 vtkm::exec::ColorTable::AboveRangeColor = { 0.0f, 0.0f, 0.0f }

◆ Alpha

vtkm::Float32 const* vtkm::exec::ColorTable::Alpha = nullptr

◆ BelowRangeColor

vtkm::Vec3f_32 vtkm::exec::ColorTable::BelowRangeColor = { 0.0f, 0.0f, 0.0f }

◆ ColorNodes

vtkm::Float64 const* vtkm::exec::ColorTable::ColorNodes = nullptr

◆ ColorSize

vtkm::Int32 vtkm::exec::ColorTable::ColorSize = 0

◆ MidSharp

vtkm::Vec2f_32 const* vtkm::exec::ColorTable::MidSharp = nullptr

◆ NaNColor

vtkm::Vec3f_32 vtkm::exec::ColorTable::NaNColor = { 0.5f, 0.0f, 0.0f }

◆ ONodes

vtkm::Float64 const* vtkm::exec::ColorTable::ONodes = nullptr

◆ OpacitySize

vtkm::Int32 vtkm::exec::ColorTable::OpacitySize = 0

◆ RGB

vtkm::Vec3f_32 const* vtkm::exec::ColorTable::RGB = nullptr

◆ Space

vtkm::ColorSpace vtkm::exec::ColorTable::Space

◆ UseClamping

bool vtkm::exec::ColorTable::UseClamping = true

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