Go to the documentation of this file.
10 #ifndef vtk_m_rendering_Color_h
11 #define vtk_m_rendering_Color_h
13 #include <vtkm/rendering/vtkm_rendering_export.h>
107 return vtkm::UInt8((tv < 0) ? 0 : (tv > 255) ? 255 : tv);
138 #endif //vtk_m_rendering_Color_h
VTKM_EXEC_CONT Color()
Definition: Color.h:34
It's a color!
Definition: Color.h:28
static VTKM_RENDERING_EXPORT Color green
Definition: Color.h:131
Groups connected points that have the same field value.
Definition: Atomic.h:19
static VTKM_RENDERING_EXPORT Color black
Definition: Color.h:130
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
VTKM_EXEC_CONT void SetComponentFromByte(vtkm::Int32 i, vtkm::UInt8 v)
Definition: Color.h:52
static VTKM_RENDERING_EXPORT Color gray30
Definition: Color.h:133
static VTKM_RENDERING_EXPORT Color gray60
Definition: Color.h:133
static VTKM_RENDERING_EXPORT Color magenta
Definition: Color.h:132
VTKM_CONT friend std::ostream & operator<<(std::ostream &out, const Color &c)
Definition: Color.h:123
VTKM_EXEC_CONT Color(vtkm::Float32 r_, vtkm::Float32 g_, vtkm::Float32 b_, vtkm::Float32 a_=1.f)
Definition: Color.h:40
static VTKM_RENDERING_EXPORT Color yellow
Definition: Color.h:132
static VTKM_RENDERING_EXPORT Color red
Definition: Color.h:131
static VTKM_RENDERING_EXPORT Color gray10
Definition: Color.h:133
static VTKM_RENDERING_EXPORT Color gray20
Definition: Color.h:133
static VTKM_RENDERING_EXPORT Color white
Definition: Color.h:130
static VTKM_RENDERING_EXPORT Color gray90
Definition: Color.h:134
VTKM_EXEC_CONT vtkm::UInt8 GetComponentAsByte(int i)
Definition: Color.h:82
vtkm::Vec4f_32 Components
Definition: Color.h:31
#define VTKM_CONT
Definition: ExportMacros.h:57
uint8_t UInt8
Definition: Types.h:157
static VTKM_RENDERING_EXPORT Color blue
Definition: Color.h:131
VTKM_EXEC_CONT Color(const vtkm::Vec4f_32 &components)
Definition: Color.h:46
static VTKM_RENDERING_EXPORT Color gray40
Definition: Color.h:133
VTKM_EXEC_CONT void GetRGBA(vtkm::UInt8 &r, vtkm::UInt8 &g, vtkm::UInt8 &b, vtkm::UInt8 &a)
Definition: Color.h:111
static VTKM_RENDERING_EXPORT Color cyan
Definition: Color.h:132
VTKM_EXEC_CONT vtkm::Float64 RawBrightness()
Definition: Color.h:120
float Float32
Definition: Types.h:154
int32_t Int32
Definition: Types.h:160
double Float64
Definition: Types.h:155
static VTKM_RENDERING_EXPORT Color gray50
Definition: Color.h:133
static VTKM_RENDERING_EXPORT Color gray80
Definition: Color.h:133
static VTKM_RENDERING_EXPORT Color gray70
Definition: Color.h:133