Go to the documentation of this file.
10 #ifndef vtk_m_rendering_Color_h
11 #define vtk_m_rendering_Color_h
118 return vtkm::UInt8((tv < 0) ? 0 : (tv > 255) ? 255 : tv);
149 #endif //vtk_m_rendering_Color_h
vtkm::UInt8 GetComponentAsByte(int i)
Definition: Color.h:93
static Color gray80
Definition: Color.h:144
Representation of a color.
Definition: Color.h:29
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_RENDERING_EXPORT
Definition: vtkm_rendering_export.h:44
static Color gray60
Definition: Color.h:144
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
static Color gray40
Definition: Color.h:144
static Color gray20
Definition: Color.h:144
static Color gray90
Definition: Color.h:145
static Color cyan
Definition: Color.h:143
Color(vtkm::Float32 r_, vtkm::Float32 g_, vtkm::Float32 b_, vtkm::Float32 a_=1.f)
Create a color with specified RGBA values.
Definition: Color.h:45
static Color gray50
Definition: Color.h:144
static Color gray30
Definition: Color.h:144
static Color gray70
Definition: Color.h:144
static Color white
Definition: Color.h:141
Color()
Create a black color.
Definition: Color.h:36
static Color magenta
Definition: Color.h:143
vtkm::Vec4f_32 Components
Definition: Color.h:32
static Color gray10
Definition: Color.h:144
#define VTKM_CONT
Definition: ExportMacros.h:57
uint8_t UInt8
Base type to use for 8-bit unsigned integer numbers.
Definition: Types.h:169
void SetComponentFromByte(vtkm::Int32 i, vtkm::UInt8 v)
Set the color value from 8 bit RGBA components.
Definition: Color.h:63
friend std::ostream & operator<<(std::ostream &out, const Color &c)
Definition: Color.h:134
static Color yellow
Definition: Color.h:143
static Color blue
Definition: Color.h:142
float Float32
Base type to use for 32-bit floating-point numbers.
Definition: Types.h:157
int32_t Int32
Base type to use for 32-bit signed integer numbers.
Definition: Types.h:181
double Float64
Base type to use for 64-bit floating-point numbers.
Definition: Types.h:161
vtkm::Float64 RawBrightness()
Definition: Color.h:131
static Color green
Definition: Color.h:142
static Color red
Definition: Color.h:142
Color(const vtkm::Vec4f_32 &components)
Create a color with specified RGBA values.
Definition: Color.h:54
void GetRGBA(vtkm::UInt8 &r, vtkm::UInt8 &g, vtkm::UInt8 &b, vtkm::UInt8 &a)
Definition: Color.h:122
static Color black
Definition: Color.h:141