![]() |
Zivid C++ API
1.8.1+6967bc1b-1
Defining the Future of 3D Machine Vision
|
2D Capture settings More...
#include <Zivid/Settings2D.h>
Classes | |
class | Brightness |
Brightness controls the light output from the projector. More... | |
class | ExposureTime |
Exposure time for the image. More... | |
class | Gain |
Analog gain in the camera More... | |
class | Iris |
Iris (aperture) setting for the camera More... | |
Public Member Functions | |
~Settings2D () | |
Destructor More... | |
Settings2D (const Settings2D &other) | |
Copy constructor More... | |
Settings2D & | operator= (const Settings2D &other) |
Assignment operator More... | |
Settings2D (Settings2D &&other) noexcept | |
Move constructor More... | |
Settings2D & | operator= (Settings2D &&other) noexcept |
Move assignment operator More... | |
Settings2D ()=default | |
Default constructor More... | |
void | set (const std::string &fullPath, const std::string &value) |
Set a value from string by specifying the path More... | |
std::string | getString (const std::string &fullPath) const |
Get a value as string by specifying the path More... | |
template<typename T , typename std::enable_if< std::is_same< T, Settings2D::Brightness >::value, int >::type = 0> | |
const Settings2D::Brightness & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, Settings2D::ExposureTime >::value, int >::type = 0> | |
const Settings2D::ExposureTime & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, Settings2D::Gain >::value, int >::type = 0> | |
const Settings2D::Gain & | get () const |
template<typename T , typename std::enable_if< std::is_same< T, Settings2D::Iris >::value, int >::type = 0> | |
const Settings2D::Iris & | get () const |
template<size_t i, typename std::enable_if< i==0, int >::type = 0> | |
const Settings2D::Brightness & | get () const |
template<size_t i, typename std::enable_if< i==1, int >::type = 0> | |
const Settings2D::ExposureTime & | get () const |
template<size_t i, typename std::enable_if< i==2, int >::type = 0> | |
const Settings2D::Gain & | get () const |
template<size_t i, typename std::enable_if< i==3, int >::type = 0> | |
const Settings2D::Iris & | get () const |
Settings2D (const Brightness &brightness, const ExposureTime &exposureTime, const Gain &gain, const Iris &iris) | |
Constructor More... | |
Settings2D & | set (const Brightness &value) |
Set Brightness More... | |
const Brightness & | brightness () const |
Get Brightness More... | |
Settings2D & | set (const ExposureTime &value) |
Set ExposureTime More... | |
const ExposureTime & | exposureTime () const |
Get ExposureTime More... | |
Settings2D & | set (const Gain &value) |
Set Gain More... | |
const Gain & | gain () const |
Get Gain More... | |
Settings2D & | set (const Iris &value) |
Set Iris More... | |
const Iris & | iris () const |
Get Iris More... | |
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... | |
template<typename F > | |
void | traverseValues (const F &f) const |
Traverse the entire tree using the given function with the value of the member as parameter More... | |
template<typename F > | |
void | traverseValues (const F &f) |
Traverse all members using the given function with the value of the member as parameter More... | |
std::string | toString () const |
Get the value as string More... | |
void | setFromString (const std::string &value) |
Set from the given string More... | |
bool | operator== (const Settings2D &other) const |
Equality operator More... | |
bool | operator!= (const Settings2D &other) const |
Inequality operator More... | |
Settings2D (const std::string &fileName) | |
Construct object by loading from file More... | |
void | save (const std::string &fileName) const |
Save to the given file More... | |
void | load (const std::string &fileName) |
Load from the given file More... | |
Static Public Attributes | |
static constexpr size_t | version { 1 } |
static constexpr bool | isContainer { true } |
Whether this node contains child values More... | |
static constexpr const char * | path { "" } |
The full path for this value More... | |
static constexpr const char * | name { "Settings2D" } |
The name of this value More... | |
static constexpr const char * | description { R"description(2D Capture settings)description" } |
The description for this value More... | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Settings2D &value) |
Operator to send the value as string to a stream More... | |
std::istream & | operator>> (std::istream &stream, Settings2D &value) |
Operator to set the value from a stream More... | |
2D Capture settings
Zivid::Settings2D::~Settings2D | ( | ) |
Destructor
Zivid::Settings2D::Settings2D | ( | const Settings2D & | other | ) |
Copy constructor
|
noexcept |
Move constructor
|
default |
Default constructor
|
explicit |
Constructor
|
explicit |
Construct object by loading from file
|
inline |
Get Brightness
|
inline |
Get ExposureTime
|
inline |
Run the given function on each direct member with the value of the member as parameter
|
inline |
Run the given function on each direct member with the value of the member as parameter
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string Zivid::Settings2D::getString | ( | const std::string & | fullPath | ) | const |
Get a value as string by specifying the path
void Zivid::Settings2D::load | ( | const std::string & | fileName | ) |
Load from the given file
bool Zivid::Settings2D::operator!= | ( | const Settings2D & | other | ) | const |
Inequality operator
Settings2D& Zivid::Settings2D::operator= | ( | const Settings2D & | other | ) |
Assignment operator
|
noexcept |
Move assignment operator
bool Zivid::Settings2D::operator== | ( | const Settings2D & | other | ) | const |
Equality operator
void Zivid::Settings2D::save | ( | const std::string & | fileName | ) | const |
Save to the given file
|
inline |
Set Brightness
|
inline |
Set ExposureTime
|
inline |
Set Gain
|
inline |
Set Iris
void Zivid::Settings2D::set | ( | const std::string & | fullPath, |
const std::string & | value | ||
) |
Set a value from string by specifying the path
void Zivid::Settings2D::setFromString | ( | const std::string & | value | ) |
Set from the given string
std::string Zivid::Settings2D::toString | ( | ) | const |
Get the value as string
|
inline |
Traverse all members using the given function with the value of the member as parameter
|
inline |
Traverse the entire tree using the given function with the value of the member as parameter
|
friend |
Operator to send the value as string to a stream
|
friend |
Operator to set the value from a stream
|
staticconstexpr |
The description for this value
|
staticconstexpr |
Whether this node contains child values
|
staticconstexpr |
The name of this value
|
staticconstexpr |
The full path for this value
|
staticconstexpr |