Zivid C++ API 2.12.0+6afd4961-1
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
Zivid::Settings::Processing::Filters::Reflection::Removal::Mode Class Reference

The reflection filter has two modes: Local and Global. Local mode preserves more 3D data on thinner objects, generally removes more reflection artifacts and processes faster than the Global filter. The Global filter is generally better at removing outlier points in the point cloud. It is advised to use the Outlier filter and Cluster filter together with the Local Reflection filter. More...

#include <Zivid/Settings.h>

Public Types

enum class  ValueType { global , local }
 The type of the underlying value. More...
 

Public Member Functions

 Mode ()=default
 Default constructor.
 
constexpr Mode (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 Mode &other) const
 Comparison operator.
 
bool operator!= (const Mode &other) const
 Comparison operator.
 

Static Public Member Functions

static std::set< ValueTypevalidValues ()
 All valid values of Mode.
 

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
 The type of this node.
 
static constexpr const charpath { "Processing/Filters/Reflection/Removal/Mode" }
 The full path for this value.
 
static constexpr const charname { "Mode" }
 The name of this value.
 
static constexpr const chardescription
 The description for this value.
 
static const Mode global
 global
 
static const Mode local
 local
 

Friends

struct DataModel::Detail::Befriend< Mode >
 
std::ostream & operator<< (std::ostream &stream, const Mode::ValueType &value)
 Operator to serialize ValueType to a stream.
 
std::ostream & operator<< (std::ostream &stream, const Mode &value)
 Operator to serialize the value to a stream.
 

Detailed Description

The reflection filter has two modes: Local and Global. Local mode preserves more 3D data on thinner objects, generally removes more reflection artifacts and processes faster than the Global filter. The Global filter is generally better at removing outlier points in the point cloud. It is advised to use the Outlier filter and Cluster filter together with the Local Reflection filter.

Global mode was introduced in SDK 1.0 and Local mode was introduced in SDK 2.7.

Member Enumeration Documentation

◆ ValueType

The type of the underlying value.

Enumerator
global 
local 

Constructor & Destructor Documentation

◆ Mode() [1/2]

Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::Mode ( )
default

Default constructor.

◆ Mode() [2/2]

constexpr Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::Mode ( ValueType value)
inlineexplicitconstexpr

Constructor.

Member Function Documentation

◆ hasValue()

bool Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::hasValue ( ) const

Check if the value is set.

◆ operator!=()

bool Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::operator!= ( const Mode & other) const
inline

Comparison operator.

◆ operator==()

bool Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::operator== ( const Mode & other) const
inline

Comparison operator.

◆ reset()

void Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::reset ( )

Reset the node to unset state.

◆ toString()

std::string Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::toString ( ) const

Get the value as string.

◆ validValues()

static std::set< ValueType > Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::validValues ( )
inlinestatic

All valid values of Mode.

◆ value()

ValueType Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::value ( ) const

Get the value.

If this object does not contain a value (see hasValue) then this method throws an exception.

Friends And Related Symbol Documentation

◆ DataModel::Detail::Befriend< Mode >

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

◆ operator<< [1/2]

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

Operator to serialize the value to a stream.

◆ operator<< [2/2]

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

Operator to serialize ValueType to a stream.

Member Data Documentation

◆ description

constexpr const char* Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::description
staticconstexpr
Initial value:
{
R"description(The reflection filter has two modes: Local and Global. Local mode preserves more 3D data
on thinner objects, generally removes more reflection artifacts and processes faster than
the Global filter. The Global filter is generally better at removing outlier points in
the point cloud. It is advised to use the Outlier filter and Cluster filter together with the
Local Reflection filter.
Global mode was introduced in SDK 1.0 and Local mode was introduced in SDK 2.7.
)description"
}

The description for this value.

◆ global

const Mode Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::global
static

global

◆ local

const Mode Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::local
static

local

◆ name

constexpr const char* Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::name { "Mode" }
staticconstexpr

The name of this value.

◆ nodeType

constexpr DataModel::NodeType Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::nodeType = DataModel::NodeType::leafValue
staticconstexpr

The type of this node.

◆ path

constexpr const char* Zivid::Settings::Processing::Filters::Reflection::Removal::Mode::path { "Processing/Filters/Reflection/Removal/Mode" }
staticconstexpr

The full path for this value.


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