Zivid C++ API 2.12.0+6afd4961-1
|
Choose how to sample colors for the pointcloud. The rgb
option gives all colors for a regular Zivid camera. The disabled
option gives no colors and can allow for faster captures. It is also useful if you want to avoid projecting white light in the subsampling modes under Sampling::Pixel
.
More...
#include <Zivid/Settings.h>
Public Types | |
enum class | ValueType { rgb , disabled } |
The type of the underlying value. More... | |
Public Member Functions | |
Color ()=default | |
Default constructor. | |
constexpr | Color (ValueType value) |
Constructor. | |
ValueType | 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 Color &other) const |
Comparison operator. | |
bool | operator!= (const Color &other) const |
Comparison operator. | |
Static Public Member Functions | |
static std::set< ValueType > | validValues () |
All valid values of Color. | |
Static Public Attributes | |
static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::leafValue |
The type of this node. | |
static constexpr const char * | path { "Sampling/Color" } |
The full path for this value. | |
static constexpr const char * | name { "Color" } |
The name of this value. | |
static constexpr const char * | description |
The description for this value. | |
static const Color | rgb |
rgb | |
static const Color | disabled |
disabled | |
Friends | |
struct | DataModel::Detail::Befriend< Color > |
std::ostream & | operator<< (std::ostream &stream, const Color::ValueType &value) |
Operator to serialize ValueType to a stream. | |
std::ostream & | operator<< (std::ostream &stream, const Color &value) |
Operator to serialize the value to a stream. | |
Choose how to sample colors for the pointcloud. The rgb
option gives all colors for a regular Zivid camera. The disabled
option gives no colors and can allow for faster captures. It is also useful if you want to avoid projecting white light in the subsampling modes under Sampling::Pixel
.
|
default |
Default constructor.
Constructor.
bool Zivid::Settings::Sampling::Color::hasValue | ( | ) | const |
Check if the value is set.
Comparison operator.
Comparison operator.
void Zivid::Settings::Sampling::Color::reset | ( | ) |
Reset the node to unset state.
std::string Zivid::Settings::Sampling::Color::toString | ( | ) | const |
Get the value as string.
All valid values of Color.
ValueType Zivid::Settings::Sampling::Color::value | ( | ) | const |
Get the value.
If this object does not contain a value (see hasValue) then this method throws an exception.
Operator to serialize the value to a stream.
|
friend |
Operator to serialize ValueType to a stream.
The description for this value.
The name of this value.
|
staticconstexpr |
The type of this node.
The full path for this value.