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

Contains a filter that removes points likely introduced by reflections (useful for shiny materials). More...

#include <Zivid/Settings.h>

Classes

class  Removal
 Discard points likely introduced by reflections (useful for shiny materials). More...
 

Public Types

using Descendants
 

Public Member Functions

 Reflection ()
 Default constructor.
 
template<typename... Args>
 Reflection (Args &&...args)
 Constructor taking variadic number of arguments.
 
template<typename... Args>
void set (Args &&...args)
 Set multiple arguments.
 
template<typename... Args>
Reflection copyWith (Args &&...args) const
 Returns a copy of this object with the given argument(s) set to the new value(s)
 
const Removalremoval () const
 Get Removal.
 
Removalremoval ()
 Get Removal.
 
Reflectionset (const Removal &value)
 Set Removal.
 
Reflectionset (const Removal::Enabled &value)
 Set Removal::Enabled.
 
Reflectionset (const Removal::Mode &value)
 Set Removal::Mode.
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Filters::Reflection::Removal >::value, int >::type = 0>
const Settings::Processing::Filters::Reflection::Removalget () const
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Filters::Reflection::Removal::Enabled >::value, int >::type = 0>
const Settings::Processing::Filters::Reflection::Removal::Enabledget () const
 
template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Filters::Reflection::Removal::Mode >::value, int >::type = 0>
const Settings::Processing::Filters::Reflection::Removal::Modeget () const
 
template<size_t i, typename std::enable_if< i==0, int >::type = 0>
const Settings::Processing::Filters::Reflection::Removalget () 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 Reflection &other) const
 Equality operator.
 
bool operator!= (const Reflection &other) const
 Inequality operator.
 
std::string toString () const
 Get the value as string.
 

Static Public Attributes

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

Friends

struct DataModel::Detail::Befriend< Reflection >
 
std::ostream & operator<< (std::ostream &stream, const Reflection &value)
 Operator to send the value as string to a stream.
 

Detailed Description

Contains a filter that removes points likely introduced by reflections (useful for shiny materials).

Member Typedef Documentation

◆ Descendants

Initial value:
std::tuple<
Settings::Processing::Filters::Reflection::Removal,
Settings::Processing::Filters::Reflection::Removal::Enabled,
Settings::Processing::Filters::Reflection::Removal::Mode>

Constructor & Destructor Documentation

◆ Reflection() [1/2]

Zivid::Settings::Processing::Filters::Reflection::Reflection ( )

Default constructor.

◆ Reflection() [2/2]

template<typename... Args>
Zivid::Settings::Processing::Filters::Reflection::Reflection ( 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 Reflection then invoking set(args).

The provided arguments must be descendants of Reflection. These types can be provided:

Member Function Documentation

◆ copyWith()

template<typename... Args>
Reflection Zivid::Settings::Processing::Filters::Reflection::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 Reflection 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 Reflection. These types can be provided:

◆ forEach() [1/2]

template<typename F >
void Zivid::Settings::Processing::Filters::Reflection::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::Settings::Processing::Filters::Reflection::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]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Filters::Reflection::Removal >::value, int >::type = 0>
const Settings::Processing::Filters::Reflection::Removal & Zivid::Settings::Processing::Filters::Reflection::get ( ) const
inline

◆ get() [2/4]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Filters::Reflection::Removal::Enabled >::value, int >::type = 0>
const Settings::Processing::Filters::Reflection::Removal::Enabled & Zivid::Settings::Processing::Filters::Reflection::get ( ) const
inline

◆ get() [3/4]

template<typename T , typename std::enable_if< std::is_same< T, Settings::Processing::Filters::Reflection::Removal::Mode >::value, int >::type = 0>
const Settings::Processing::Filters::Reflection::Removal::Mode & Zivid::Settings::Processing::Filters::Reflection::get ( ) const
inline

◆ get() [4/4]

template<size_t i, typename std::enable_if< i==0, int >::type = 0>
const Settings::Processing::Filters::Reflection::Removal & Zivid::Settings::Processing::Filters::Reflection::get ( ) const
inline

◆ operator!=()

Inequality operator.

◆ operator==()

Equality operator.

◆ removal() [1/2]

Removal & Zivid::Settings::Processing::Filters::Reflection::removal ( )
inline

Get Removal.

◆ removal() [2/2]

const Removal & Zivid::Settings::Processing::Filters::Reflection::removal ( ) const
inline

Get Removal.

◆ set() [1/4]

template<typename... Args>
void Zivid::Settings::Processing::Filters::Reflection::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 Reflection. These types can be provided:

◆ set() [2/4]

Reflection & Zivid::Settings::Processing::Filters::Reflection::set ( const Removal & value)
inline

Set Removal.

◆ set() [3/4]

Reflection & Zivid::Settings::Processing::Filters::Reflection::set ( const Removal::Enabled & value)
inline

◆ set() [4/4]

Reflection & Zivid::Settings::Processing::Filters::Reflection::set ( const Removal::Mode & value)
inline

◆ toString()

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

Get the value as string.

Friends And Related Symbol Documentation

◆ DataModel::Detail::Befriend< Reflection >

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

◆ operator<<

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

Operator to send the value as string to a stream.

Member Data Documentation

◆ description

constexpr const char* Zivid::Settings::Processing::Filters::Reflection::description
staticconstexpr
Initial value:
{
R"description(Contains a filter that removes points likely introduced by reflections (useful for shiny materials).)description"
}

The description for this value.

◆ name

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

The name of this value.

◆ nodeType

constexpr DataModel::NodeType Zivid::Settings::Processing::Filters::Reflection::nodeType = DataModel::NodeType::group
staticconstexpr

The type of this node.

◆ path

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

The full path for this value.


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