Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gamma greater than 1 makes the colors darker.
More...
#include <Zivid/Settings.h>
|
using | ValueType = double |
| The type of the underlying value.
|
|
|
| Gamma ()=default |
| Default constructor.
|
|
constexpr | Gamma (double value) |
| Constructor.
|
|
double | value () const |
| Get the value.
|
|
bool | hasValue () const |
| Check if the value is set.
|
|
void | reset () |
| Reset the node to unset state.
|
|
std::string | toString () const |
| Get the value as string.
|
|
bool | operator== (const Gamma &other) const |
| Comparison operator.
|
|
bool | operator!= (const Gamma &other) const |
| Comparison operator.
|
|
bool | operator< (const Gamma &other) const |
| Comparison operator.
|
|
bool | operator> (const Gamma &other) const |
| Comparison operator.
|
|
bool | operator<= (const Gamma &other) const |
| Comparison operator.
|
|
bool | operator>= (const Gamma &other) const |
| Comparison operator.
|
|
Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gamma greater than 1 makes the colors darker.
◆ ValueType
The type of the underlying value.
◆ Gamma() [1/2]
Zivid::Settings::Processing::Color::Gamma::Gamma |
( |
| ) |
|
|
default |
◆ Gamma() [2/2]
Zivid::Settings::Processing::Color::Gamma::Gamma |
( |
double | value | ) |
|
|
inlineexplicitconstexpr |
◆ hasValue()
bool Zivid::Settings::Processing::Color::Gamma::hasValue |
( |
| ) |
const |
Check if the value is set.
◆ operator!=()
bool Zivid::Settings::Processing::Color::Gamma::operator!= |
( |
const Gamma & | other | ) |
const |
|
inline |
◆ operator<()
bool Zivid::Settings::Processing::Color::Gamma::operator< |
( |
const Gamma & | other | ) |
const |
|
inline |
◆ operator<=()
bool Zivid::Settings::Processing::Color::Gamma::operator<= |
( |
const Gamma & | other | ) |
const |
|
inline |
◆ operator==()
bool Zivid::Settings::Processing::Color::Gamma::operator== |
( |
const Gamma & | other | ) |
const |
|
inline |
◆ operator>()
bool Zivid::Settings::Processing::Color::Gamma::operator> |
( |
const Gamma & | other | ) |
const |
|
inline |
◆ operator>=()
bool Zivid::Settings::Processing::Color::Gamma::operator>= |
( |
const Gamma & | other | ) |
const |
|
inline |
◆ reset()
void Zivid::Settings::Processing::Color::Gamma::reset |
( |
| ) |
|
Reset the node to unset state.
◆ toString()
std::string Zivid::Settings::Processing::Color::Gamma::toString |
( |
| ) |
const |
◆ validRange()
static constexpr Range< double > Zivid::Settings::Processing::Color::Gamma::validRange |
( |
| ) |
|
|
inlinestaticconstexpr |
The range of valid values for Gamma.
◆ value()
double Zivid::Settings::Processing::Color::Gamma::value |
( |
| ) |
const |
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
◆ DataModel::Detail::Befriend< Gamma >
friend struct DataModel::Detail::Befriend< Gamma > |
|
friend |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const Gamma & | value ) |
|
friend |
Operator to serialize the value to a stream.
◆ description
const char* Zivid::Settings::Processing::Color::Gamma::description |
|
staticconstexpr |
Initial value:{
R"description(Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gamma
greater than 1 makes the colors darker.
)description"
}
The description for this value.
◆ name
const char* Zivid::Settings::Processing::Color::Gamma::name { "Gamma" } |
|
staticconstexpr |
◆ nodeType
◆ path
const char* Zivid::Settings::Processing::Color::Gamma::path { "Processing/Color/Gamma" } |
|
staticconstexpr |
The full path for this value.
The documentation for this class was generated from the following file: