33#include <NDEVR/Color.h>
34#include <NDEVR/Vector.h>
35#include <NDEVR/Buffer.h>
80 : Vector<4,
fltp04>(x, y, z, a)
86 constexpr LABColor(
const Vector<4, fltp04>& lab)
109#if NDEVR_INCLUDE_RAL_COLORS
114 NDEVR_BASE_API
static const AlocatingAlignedBuffer<std::pair<LABColor, TranslatedString>, 64>& RALClassicColors();
122 static_assert(
sizeof(
LABColor) == 16,
"Bad color size");
123 template<>
constexpr LABColor Constant<LABColor>::Invalid =
LABColor(Constant<fltp04>::Invalid, Constant<fltp04>::Invalid, Constant<fltp04>::Invalid);
124 template<>
constexpr LABColor Constant<LABColor>::Max =
LABColor(Constant<fltp04>::Max, Constant<fltp04>::Max, Constant<fltp04>::Max);
125 template<>
constexpr LABColor Constant<LABColor>::Min =
LABColor(Constant<fltp04>::Min, Constant<fltp04>::Min, Constant<fltp04>::Min);
A color identified by an AutoCAD Color Index (ACI) number from 1 through 255.
The core Color class in the NDEVR API.
A color defined by hue, saturation, and brightness components.
Forward declaration of the NDEVR translated string class.
LABColor(const HSBColor &lab)
Constructs a LABColor by converting from an HSB color.
constexpr LABColor()
Default constructor.
LABColor(const ACIColor &lab)
Constructs a LABColor by converting from an AutoCAD Color Index color.
LABColor(const XYZColor &lab)
Constructs a LABColor by converting from a CIE XYZ color.
constexpr LABColor(fltp04 x, fltp04 y, fltp04 z, fltp04 a=1.0f)
Constructs a LABColor from individual L*, a*, b*, and alpha components.
LABColor(const RGBColor &lab)
Constructs a LABColor by converting from an RGB color.
constexpr LABColor(const Vector< 4, fltp04 > &lab)
Constructs a LABColor from a 4-component vector.
Represents a color in the RGB space with optional alpha transparency.
The core String class for the NDEVR API.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Forward declaration of HSLColor.
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...