VTK-m  2.0
Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
vtkm::rendering::Color Class Reference

It's a color! More...

#include <Color.h>

Public Member Functions

VTKM_EXEC_CONT Color ()
 
VTKM_EXEC_CONT Color (vtkm::Float32 r_, vtkm::Float32 g_, vtkm::Float32 b_, vtkm::Float32 a_=1.f)
 
VTKM_EXEC_CONT Color (const vtkm::Vec4f_32 &components)
 
VTKM_EXEC_CONT void SetComponentFromByte (vtkm::Int32 i, vtkm::UInt8 v)
 
VTKM_EXEC_CONT vtkm::UInt8 GetComponentAsByte (int i)
 
VTKM_EXEC_CONT void GetRGBA (vtkm::UInt8 &r, vtkm::UInt8 &g, vtkm::UInt8 &b, vtkm::UInt8 &a)
 
VTKM_EXEC_CONT vtkm::Float64 RawBrightness ()
 

Public Attributes

vtkm::Vec4f_32 Components
 

Static Public Attributes

static VTKM_RENDERING_EXPORT Color white
 
static VTKM_RENDERING_EXPORT Color black
 
static VTKM_RENDERING_EXPORT Color red
 
static VTKM_RENDERING_EXPORT Color green
 
static VTKM_RENDERING_EXPORT Color blue
 
static VTKM_RENDERING_EXPORT Color cyan
 
static VTKM_RENDERING_EXPORT Color magenta
 
static VTKM_RENDERING_EXPORT Color yellow
 
static VTKM_RENDERING_EXPORT Color gray10
 
static VTKM_RENDERING_EXPORT Color gray20
 
static VTKM_RENDERING_EXPORT Color gray30
 
static VTKM_RENDERING_EXPORT Color gray40
 
static VTKM_RENDERING_EXPORT Color gray50
 
static VTKM_RENDERING_EXPORT Color gray60
 
static VTKM_RENDERING_EXPORT Color gray70
 
static VTKM_RENDERING_EXPORT Color gray80
 
static VTKM_RENDERING_EXPORT Color gray90
 

Friends

VTKM_CONT friend std::ostream & operator<< (std::ostream &out, const Color &c)
 

Detailed Description

It's a color!

This class provides the basic representation of a color. This class was Ported from EAVL. Originally created by Jeremy Meredith, Dave Pugmire, and Sean Ahern.

Constructor & Destructor Documentation

◆ Color() [1/3]

VTKM_EXEC_CONT vtkm::rendering::Color::Color ( )
inline

◆ Color() [2/3]

VTKM_EXEC_CONT vtkm::rendering::Color::Color ( vtkm::Float32  r_,
vtkm::Float32  g_,
vtkm::Float32  b_,
vtkm::Float32  a_ = 1.f 
)
inline

◆ Color() [3/3]

VTKM_EXEC_CONT vtkm::rendering::Color::Color ( const vtkm::Vec4f_32 components)
inline

Member Function Documentation

◆ GetComponentAsByte()

VTKM_EXEC_CONT vtkm::UInt8 vtkm::rendering::Color::GetComponentAsByte ( int  i)
inline

◆ GetRGBA()

VTKM_EXEC_CONT void vtkm::rendering::Color::GetRGBA ( vtkm::UInt8 r,
vtkm::UInt8 g,
vtkm::UInt8 b,
vtkm::UInt8 a 
)
inline

◆ RawBrightness()

VTKM_EXEC_CONT vtkm::Float64 vtkm::rendering::Color::RawBrightness ( )
inline

◆ SetComponentFromByte()

VTKM_EXEC_CONT void vtkm::rendering::Color::SetComponentFromByte ( vtkm::Int32  i,
vtkm::UInt8  v 
)
inline

Friends And Related Function Documentation

◆ operator<<

VTKM_CONT friend std::ostream& operator<< ( std::ostream &  out,
const Color c 
)
friend

Member Data Documentation

◆ black

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::black
static

◆ blue

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::blue
static

◆ Components

vtkm::Vec4f_32 vtkm::rendering::Color::Components

◆ cyan

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::cyan
static

◆ gray10

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray10
static

◆ gray20

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray20
static

◆ gray30

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray30
static

◆ gray40

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray40
static

◆ gray50

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray50
static

◆ gray60

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray60
static

◆ gray70

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray70
static

◆ gray80

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray80
static

◆ gray90

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::gray90
static

◆ green

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::green
static

◆ magenta

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::magenta
static

◆ red

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::red
static

◆ white

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::white
static

◆ yellow

VTKM_RENDERING_EXPORT Color vtkm::rendering::Color::yellow
static

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