Zivid C++ API 2.12.0+6afd4961-1
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
Zivid::Settings2D::Processing::Color::Gamma Class Reference

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/Settings2D.h>

Public Types

using ValueType = double
 The type of the underlying value.
 

Public Member Functions

 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.
 

Static Public Member Functions

static constexpr Range< doublevalidRange ()
 The range of valid values for Gamma.
 

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
 The type of this node.
 
static constexpr const charpath { "Processing/Color/Gamma" }
 The full path for this value.
 
static constexpr const charname { "Gamma" }
 The name of this value.
 
static constexpr const chardescription
 The description for this value.
 

Friends

struct DataModel::Detail::Befriend< Gamma >
 
std::ostream & operator<< (std::ostream &stream, const Gamma &value)
 Operator to serialize the value to a stream.
 

Detailed Description

Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gamma greater than 1 makes the colors darker.

Member Typedef Documentation

◆ ValueType

The type of the underlying value.

Constructor & Destructor Documentation

◆ Gamma() [1/2]

Zivid::Settings2D::Processing::Color::Gamma::Gamma ( )
default

Default constructor.

◆ Gamma() [2/2]

constexpr Zivid::Settings2D::Processing::Color::Gamma::Gamma ( double value)
inlineexplicitconstexpr

Constructor.

Member Function Documentation

◆ hasValue()

bool Zivid::Settings2D::Processing::Color::Gamma::hasValue ( ) const

Check if the value is set.

◆ operator!=()

bool Zivid::Settings2D::Processing::Color::Gamma::operator!= ( const Gamma & other) const
inline

Comparison operator.

◆ operator<()

bool Zivid::Settings2D::Processing::Color::Gamma::operator< ( const Gamma & other) const
inline

Comparison operator.

◆ operator<=()

bool Zivid::Settings2D::Processing::Color::Gamma::operator<= ( const Gamma & other) const
inline

Comparison operator.

◆ operator==()

bool Zivid::Settings2D::Processing::Color::Gamma::operator== ( const Gamma & other) const
inline

Comparison operator.

◆ operator>()

bool Zivid::Settings2D::Processing::Color::Gamma::operator> ( const Gamma & other) const
inline

Comparison operator.

◆ operator>=()

bool Zivid::Settings2D::Processing::Color::Gamma::operator>= ( const Gamma & other) const
inline

Comparison operator.

◆ reset()

void Zivid::Settings2D::Processing::Color::Gamma::reset ( )

Reset the node to unset state.

◆ toString()

std::string Zivid::Settings2D::Processing::Color::Gamma::toString ( ) const

Get the value as string.

◆ validRange()

static constexpr Range< double > Zivid::Settings2D::Processing::Color::Gamma::validRange ( )
inlinestaticconstexpr

The range of valid values for Gamma.

◆ value()

double Zivid::Settings2D::Processing::Color::Gamma::value ( ) const

Get the value.

If this object does not contain a value (see hasValue) then this method throws an exception.

Friends And Related Symbol Documentation

◆ 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.

Member Data Documentation

◆ description

constexpr const char* Zivid::Settings2D::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

constexpr const char* Zivid::Settings2D::Processing::Color::Gamma::name { "Gamma" }
staticconstexpr

The name of this value.

◆ nodeType

constexpr DataModel::NodeType Zivid::Settings2D::Processing::Color::Gamma::nodeType = DataModel::NodeType::leafValue
staticconstexpr

The type of this node.

◆ path

constexpr const char* Zivid::Settings2D::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: