#include <metacolor.h>
Definition at line 28 of file metacolor.h.
lc::MetaColorByValue::MetaColorByValue |
( |
| ) |
|
|
inline |
lc::MetaColorByValue::MetaColorByValue |
( |
const Color & |
other | ) |
|
|
inline |
lc::MetaColorByValue::MetaColorByValue |
( |
double |
r, |
|
|
double |
g, |
|
|
double |
b, |
|
|
double |
a = 1. |
|
) |
| |
|
inline |
virtual lc::MetaColorByValue::~MetaColorByValue |
( |
| ) |
|
|
virtualdefault |
double lc::MetaColorByValue::alpha |
( |
| ) |
const |
|
inline |
unsigned char lc::MetaColorByValue::alphaI |
( |
| ) |
const |
|
inline |
Definition at line 82 of file metacolor.h.
unsigned char alphaI() const
double lc::MetaColorByValue::blue |
( |
| ) |
const |
|
inline |
unsigned char lc::MetaColorByValue::blueI |
( |
| ) |
const |
|
inline |
Definition at line 78 of file metacolor.h.
unsigned char blueI() const
Color lc::MetaColorByValue::color |
( |
| ) |
const |
|
inline |
double lc::MetaColorByValue::green |
( |
| ) |
const |
|
inline |
unsigned char lc::MetaColorByValue::greenI |
( |
| ) |
const |
|
inline |
Definition at line 74 of file metacolor.h.
unsigned char greenI() const
virtual const std::string lc::MetaColorByValue::id |
( |
| ) |
const |
|
inlineoverridevirtual |
ID or primary key of this MetaType. This can be used in a storage manager to identify each individual meta type.
Implements lc::MetaType.
Definition at line 45 of file metacolor.h.
47 return LCMETANAME() +
"_" + std::to_string(
red()) +
"_" + std::to_string(
green()) +
"_" + std::to_string(
blue());
double lc::MetaColorByValue::red |
( |
| ) |
const |
|
inline |
unsigned char lc::MetaColorByValue::redI |
( |
| ) |
const |
|
inline |
Definition at line 70 of file metacolor.h.
unsigned char redI() const
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const MetaColorByValue & |
metaColor |
|
) |
| |
|
friend |
Definition at line 89 of file metacolor.h.
90 os <<
"MetaColorByValue(red=" << metaColor.red() <<
" green=" << metaColor.green() <<
" blue=" << metaColor.blue() <<
" alpha" << metaColor.alpha() <<
")";
Color lc::MetaColorByValue::_color |
|
private |
The documentation for this class was generated from the following file: