VTK-m  1.4
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>

Collaboration diagram for vtkm::rendering::Color:
Collaboration graph
[legend]

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

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

Member Function Documentation

VTKM_EXEC_CONT vtkm::UInt8 vtkm::rendering::Color::GetComponentAsByte ( int  i)
inline
VTKM_EXEC_CONT void vtkm::rendering::Color::GetRGBA ( vtkm::UInt8 r,
vtkm::UInt8 g,
vtkm::UInt8 b,
vtkm::UInt8 a 
)
inline
VTKM_EXEC_CONT vtkm::Float64 vtkm::rendering::Color::RawBrightness ( )
inline
VTKM_EXEC_CONT void vtkm::rendering::Color::SetComponentFromByte ( vtkm::Int32  i,
vtkm::UInt8  v 
)
inline

Friends And Related Function Documentation

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

Member Data Documentation

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

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