Sampling settings.
More...
#include <Zivid/Settings2D.h>
|
class | Color |
| Choose how to sample colors for the 2D image. The rgb option gives an image with full colors. The grayscale option gives a grayscale (r=g=b) image, which can be acquired faster than full colors. More...
|
|
class | Pixel |
| Use this setting to obtain an image that matches a point cloud captured with the equivalent sampling setting. More...
|
|
|
| Sampling () |
| Default constructor.
|
|
template<typename... Args> |
| Sampling (Args &&...args) |
| Constructor taking variadic number of arguments.
|
|
template<typename... Args> |
void | set (Args &&...args) |
| Set multiple arguments.
|
|
template<typename... Args> |
Sampling | copyWith (Args &&...args) const |
| Returns a copy of this object with the given argument(s) set to the new value(s)
|
|
const Color & | color () const |
| Get Color.
|
|
Color & | color () |
| Get Color.
|
|
Sampling & | set (const Color &value) |
| Set Color.
|
|
const Pixel & | pixel () const |
| Get Pixel.
|
|
Pixel & | pixel () |
| Get Pixel.
|
|
Sampling & | set (const Pixel &value) |
| Set Pixel.
|
|
template<typename T , typename std::enable_if< std::is_same< T, Settings2D::Sampling::Color >::value, int >::type = 0> |
const Settings2D::Sampling::Color & | get () const |
|
template<typename T , typename std::enable_if< std::is_same< T, Settings2D::Sampling::Pixel >::value, int >::type = 0> |
const Settings2D::Sampling::Pixel & | get () const |
|
template<size_t i, typename std::enable_if< i==0, int >::type = 0> |
const Settings2D::Sampling::Color & | get () const |
|
template<size_t i, typename std::enable_if< i==1, int >::type = 0> |
const Settings2D::Sampling::Pixel & | get () 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.
|
|
template<typename F > |
void | forEach (const F &f) |
| Run the given function on each direct member with the value of the member as parameter.
|
|
bool | operator== (const Sampling &other) const |
| Equality operator.
|
|
bool | operator!= (const Sampling &other) const |
| Inequality operator.
|
|
std::string | toString () const |
| Get the value as string.
|
|
◆ Descendants
◆ Sampling() [1/2]
Zivid::Settings2D::Sampling::Sampling |
( |
| ) |
|
◆ Sampling() [2/2]
template<typename... Args>
Zivid::Settings2D::Sampling::Sampling |
( |
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 Sampling
then invoking set(args)
.
The provided arguments must be descendants of Sampling
. These types can be provided:
◆ color() [1/2]
Color & Zivid::Settings2D::Sampling::color |
( |
| ) |
|
|
inline |
◆ color() [2/2]
const Color & Zivid::Settings2D::Sampling::color |
( |
| ) |
const |
|
inline |
◆ copyWith()
template<typename... Args>
Sampling Zivid::Settings2D::Sampling::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 Sampling 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 Sampling
. These types can be provided:
◆ forEach() [1/2]
template<typename F >
void Zivid::Settings2D::Sampling::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::Settings2D::Sampling::forEach |
( |
const F & | f | ) |
const |
|
inline |
Run the given function on each direct member with the value of the member as parameter.
◆ get() [1/4]
◆ get() [2/4]
◆ get() [3/4]
template<size_t i, typename std::enable_if< i==0, int >::type = 0>
◆ get() [4/4]
template<size_t i, typename std::enable_if< i==1, int >::type = 0>
◆ operator!=()
bool Zivid::Settings2D::Sampling::operator!= |
( |
const Sampling & | other | ) |
const |
◆ operator==()
bool Zivid::Settings2D::Sampling::operator== |
( |
const Sampling & | other | ) |
const |
◆ pixel() [1/2]
Pixel & Zivid::Settings2D::Sampling::pixel |
( |
| ) |
|
|
inline |
◆ pixel() [2/2]
const Pixel & Zivid::Settings2D::Sampling::pixel |
( |
| ) |
const |
|
inline |
◆ set() [1/3]
template<typename... Args>
void Zivid::Settings2D::Sampling::set |
( |
Args &&... | args | ) |
|
|
inline |
Set multiple arguments.
The method invokes set(arg)
with each of the provided arguments.
The provided arguments must be descendants of Sampling
. These types can be provided:
◆ set() [2/3]
Sampling & Zivid::Settings2D::Sampling::set |
( |
const Color & | value | ) |
|
|
inline |
◆ set() [3/3]
Sampling & Zivid::Settings2D::Sampling::set |
( |
const Pixel & | value | ) |
|
|
inline |
◆ toString()
std::string Zivid::Settings2D::Sampling::toString |
( |
| ) |
const |
◆ DataModel::Detail::Befriend< Sampling >
friend struct DataModel::Detail::Befriend< Sampling > |
|
friend |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const Sampling & | value ) |
|
friend |
Operator to send the value as string to a stream.
◆ description
const char* Zivid::Settings2D::Sampling::description |
|
staticconstexpr |
Initial value:{ R"description(Sampling settings.
)description" }
The description for this value.
◆ name
const char* Zivid::Settings2D::Sampling::name { "Sampling" } |
|
staticconstexpr |
◆ nodeType
◆ path
const char* Zivid::Settings2D::Sampling::path { "Sampling" } |
|
staticconstexpr |
The full path for this value.
The documentation for this class was generated from the following file: