Zivid C++ API 2.8.1+dd4dffea-1
Defining the Future of 3D Machine Vision
Classes | Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
Zivid::Settings::Processing::Color Class Reference

Color settings More...

#include <Zivid/Settings.h>

Classes

class  Balance
 Color balance settings More...
 
class  Experimental
 Experimental color settings. These may be renamed, moved or deleted in the future. More...
 
class  Gamma
 Gamma applied to the color values. Gamma less than 1 makes the colors brighter, while gamma greater than 1 makes the colors darker. More...
 

Public Types

using Descendants = std::tuple< Settings::Processing::Color::Balance, Settings::Processing::Color::Balance::Blue, Settings::Processing::Color::Balance::Green, Settings::Processing::Color::Balance::Red, Settings::Processing::Color::Experimental, Settings::Processing::Color::Experimental::Mode, Settings::Processing::Color::Gamma >
 

Public Member Functions

 Color ()
 Default constructor More...
 
template<typename... Args>
 Color (Args &&...args)
 Constructor taking variadic number of arguments More...
 
template<typename... Args>
void set (Args &&...args)
 Set multiple arguments More...
 
template<typename... Args>
Color copyWith (Args &&...args) const
 Returns a copy of this object with the given argument(s) set to the new value(s) More...
 
const Balancebalance () const
 Get Balance More...
 
Balancebalance ()
 Get Balance More...
 
Colorset (const Balance &value)
 Set Balance More...
 
Colorset (const Balance::Blue &value)
 Set Balance::Blue More...
 
Colorset (const Balance::Green &value)
 Set Balance::Green More...
 
Colorset (const Balance::Red &value)
 Set Balance::Red More...
 
const Experimentalexperimental () const
 Get Experimental More...
 
Experimentalexperimental ()
 Get Experimental More...
 
Colorset (const Experimental &value)
 Set Experimental More...
 
Colorset (const Experimental::Mode &value)
 Set Experimental::Mode More...
 
const Gammagamma () const
 Get Gamma More...
 
Gammagamma ()
 Get Gamma More...
 
Colorset (const Gamma &value)
 Set Gamma More...
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Balance >::value, int >::type = 0>
const Settings::Processing::Color::Balanceget () const
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Balance::Blue >::value, int >::type = 0>
const Settings::Processing::Color::Balance::Blueget () const
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Balance::Green >::value, int >::type = 0>
const Settings::Processing::Color::Balance::Greenget () const
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Balance::Red >::value, int >::type = 0>
const Settings::Processing::Color::Balance::Redget () const
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Experimental >::value, int >::type = 0>
const Settings::Processing::Color::Experimentalget () const
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Experimental::Mode >::value, int >::type = 0>
const Settings::Processing::Color::Experimental::Modeget () const
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Gamma >::value, int >::type = 0>
const Settings::Processing::Color::Gammaget () const
 
template<size_t i, typename std::enable_if< i==0, int >::type = 0>
const Settings::Processing::Color::Balanceget () const
 
template<size_t i, typename std::enable_if< i==1, int >::type = 0>
const Settings::Processing::Color::Experimentalget () const
 
template<size_t i, typename std::enable_if< i==2, int >::type = 0>
const Settings::Processing::Color::Gammaget () const
 
template<typename F >
void forEach (const F &f) const
 Run the given function on each direct member with the value of the member as parameter More...
 
template<typename F >
void forEach (const F &f)
 Run the given function on each direct member with the value of the member as parameter More...
 
bool operator== (const Color &other) const
 Equality operator More...
 
bool operator!= (const Color &other) const
 Inequality operator More...
 
std::string toString () const
 Get the value as string More...
 

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::group
 The type of this node More...
 
static constexpr const char * path { "Processing/Color" }
 The full path for this value More...
 
static constexpr const char * name { "Color" }
 The name of this value More...
 
static constexpr const char * description { R"description(Color settings)description" }
 The description for this value More...
 

Friends

struct DataModel::Detail::Befriend< Color >
 
std::ostream & operator<< (std::ostream &stream, const Color &value)
 Operator to send the value as string to a stream More...
 

Detailed Description

Color settings

Member Typedef Documentation

◆ Descendants

Constructor & Destructor Documentation

◆ Color() [1/2]

Zivid::Settings::Processing::Color::Color ( )

Default constructor

◆ Color() [2/2]

template<typename... Args>
Zivid::Settings::Processing::Color::Color ( Args &&...  args)
inlineexplicit

Constructor taking variadic number of arguments

One or more descendant types can be provided. All types not provided will be set to their default value. The result is the same as default constructing Color then invoking set(args).

The provided arguments must be descendants of Color. These types can be provided:

Member Function Documentation

◆ balance() [1/2]

Balance & Zivid::Settings::Processing::Color::balance ( )
inline

Get Balance

◆ balance() [2/2]

const Balance & Zivid::Settings::Processing::Color::balance ( ) const
inline

Get Balance

◆ copyWith()

template<typename... Args>
Color Zivid::Settings::Processing::Color::copyWith ( Args &&...  args) const
inline

Returns a copy of this object with the given argument(s) set to the new value(s)

Creates a copy of this Color object, then invokes set(args) on the copy, and finally returns the copy. This method does not modify the original object.

The provided arguments must be descendants of Color. These types can be provided:

◆ experimental() [1/2]

Experimental & Zivid::Settings::Processing::Color::experimental ( )
inline

◆ experimental() [2/2]

const Experimental & Zivid::Settings::Processing::Color::experimental ( ) const
inline

◆ forEach() [1/2]

template<typename F >
void Zivid::Settings::Processing::Color::forEach ( const F &  f)
inline

Run the given function on each direct member with the value of the member as parameter

◆ forEach() [2/2]

template<typename F >
void Zivid::Settings::Processing::Color::forEach ( const F &  f) const
inline

Run the given function on each direct member with the value of the member as parameter

◆ gamma() [1/2]

Gamma & Zivid::Settings::Processing::Color::gamma ( )
inline

Get Gamma

◆ gamma() [2/2]

const Gamma & Zivid::Settings::Processing::Color::gamma ( ) const
inline

Get Gamma

◆ get() [1/10]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Balance >::value, int >::type = 0>
const Settings::Processing::Color::Balance & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [2/10]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Balance::Blue >::value, int >::type = 0>
const Settings::Processing::Color::Balance::Blue & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [3/10]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Balance::Green >::value, int >::type = 0>
const Settings::Processing::Color::Balance::Green & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [4/10]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Balance::Red >::value, int >::type = 0>
const Settings::Processing::Color::Balance::Red & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [5/10]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Experimental >::value, int >::type = 0>
const Settings::Processing::Color::Experimental & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [6/10]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Experimental::Mode >::value, int >::type = 0>
const Settings::Processing::Color::Experimental::Mode & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [7/10]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Color::Gamma >::value, int >::type = 0>
const Settings::Processing::Color::Gamma & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [8/10]

template<size_t i, typename std::enable_if< i==0, int >::type = 0>
const Settings::Processing::Color::Balance & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [9/10]

template<size_t i, typename std::enable_if< i==1, int >::type = 0>
const Settings::Processing::Color::Experimental & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ get() [10/10]

template<size_t i, typename std::enable_if< i==2, int >::type = 0>
const Settings::Processing::Color::Gamma & Zivid::Settings::Processing::Color::get ( ) const
inline

◆ operator!=()

bool Zivid::Settings::Processing::Color::operator!= ( const Color other) const

Inequality operator

◆ operator==()

bool Zivid::Settings::Processing::Color::operator== ( const Color other) const

Equality operator

◆ set() [1/8]

template<typename... Args>
void Zivid::Settings::Processing::Color::set ( Args &&...  args)
inline

◆ set() [2/8]

Color & Zivid::Settings::Processing::Color::set ( const Balance value)
inline

Set Balance

◆ set() [3/8]

Color & Zivid::Settings::Processing::Color::set ( const Balance::Blue value)
inline

◆ set() [4/8]

Color & Zivid::Settings::Processing::Color::set ( const Balance::Green value)
inline

◆ set() [5/8]

Color & Zivid::Settings::Processing::Color::set ( const Balance::Red value)
inline

◆ set() [6/8]

Color & Zivid::Settings::Processing::Color::set ( const Experimental value)
inline

◆ set() [7/8]

Color & Zivid::Settings::Processing::Color::set ( const Experimental::Mode value)
inline

◆ set() [8/8]

Color & Zivid::Settings::Processing::Color::set ( const Gamma value)
inline

Set Gamma

◆ toString()

std::string Zivid::Settings::Processing::Color::toString ( ) const

Get the value as string

Friends And Related Function Documentation

◆ DataModel::Detail::Befriend< Color >

friend struct DataModel::Detail::Befriend< Color >
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
const Color value 
)
friend

Operator to send the value as string to a stream

Member Data Documentation

◆ description

constexpr const char* Zivid::Settings::Processing::Color::description { R"description(Color settings)description" }
staticconstexpr

The description for this value

◆ name

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

The name of this value

◆ nodeType

constexpr DataModel::NodeType Zivid::Settings::Processing::Color::nodeType = DataModel::NodeType::group
staticconstexpr

The type of this node

◆ path

constexpr const char* Zivid::Settings::Processing::Color::path { "Processing/Color" }
staticconstexpr

The full path for this value


The documentation for this class was generated from the following file: