![]() |
Zivid C++ API 2.12.0+6afd4961-1
|
Use this setting to obtain an image that matches a point cloud captured with the equivalent sampling setting. More...
#include <Zivid/Settings2D.h>
Public Types | |
| enum class | ValueType { all , blueSubsample2x2 , redSubsample2x2 , blueSubsample4x4 , redSubsample4x4 } |
| The type of the underlying value. More... | |
Public Member Functions | |
| Pixel ()=default | |
| Default constructor. | |
| constexpr | Pixel (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 Pixel &other) const |
| Comparison operator. | |
| bool | operator!= (const Pixel &other) const |
| Comparison operator. | |
Static Public Member Functions | |
| static std::set< ValueType > | validValues () |
| All valid values of Pixel. | |
Static Public Attributes | |
| static constexpr DataModel::NodeType | nodeType = DataModel::NodeType::leafValue |
| The type of this node. | |
| static constexpr const char * | path { "Sampling/Pixel" } |
| The full path for this value. | |
| static constexpr const char * | name { "Pixel" } |
| The name of this value. | |
| static constexpr const char * | description |
| The description for this value. | |
| static const Pixel | all |
| all | |
| static const Pixel | blueSubsample2x2 |
| blueSubsample2x2 | |
| static const Pixel | redSubsample2x2 |
| redSubsample2x2 | |
| static const Pixel | blueSubsample4x4 |
| blueSubsample4x4 | |
| static const Pixel | redSubsample4x4 |
| redSubsample4x4 | |
Friends | |
| struct | DataModel::Detail::Befriend< Pixel > |
| std::ostream & | operator<< (std::ostream &stream, const Pixel::ValueType &value) |
| Operator to serialize ValueType to a stream. | |
| std::ostream & | operator<< (std::ostream &stream, const Pixel &value) |
| Operator to serialize the value to a stream. | |
Use this setting to obtain an image that matches a point cloud captured with the equivalent sampling setting.
|
default |
Default constructor.
Constructor.
| bool Zivid::Settings2D::Sampling::Pixel::hasValue | ( | ) | const |
Check if the value is set.
Comparison operator.
Comparison operator.
| void Zivid::Settings2D::Sampling::Pixel::reset | ( | ) |
Reset the node to unset state.
| std::string Zivid::Settings2D::Sampling::Pixel::toString | ( | ) | const |
Get the value as string.
All valid values of Pixel.
| ValueType Zivid::Settings2D::Sampling::Pixel::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.