tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt::filter Struct Reference

C++ wrapper for tpbrt_filter_t. More...

#include <tinypbrt/detail/cpp/filter.hpp>

Public Member Functions

constexpr float_t x_radius () const noexcept
 Returns x_radius value.
 
constexpr float_t y_radius () const noexcept
 Returns y_radius value.
 
constexpr filter_type type () const noexcept
 Returns type value.
 
constexpr bool_t is_gaussian () const noexcept
 Returns true if type is gaussian.
 
constexpr bool_t is_mitchell () const noexcept
 Returns true if type is mitchell.
 
constexpr bool_t is_sinc () const noexcept
 Returns true if type is sinc.
 
constexpr std::optional< filter_gaussian_params > as_gaussian () const noexcept
 Returns gaussian parameters (std::nullopt if the type is different).
 
constexpr std::optional< filter_mitchell_params > as_mitchell () const noexcept
 Returns mitchell parameters (std::nullopt if the type is different).
 
constexpr std::optional< filter_sinc_params > as_sinc () const noexcept
 Returns sinc parameters (std::nullopt if the type is different).
 
constexpr variant_type to_variant () const noexcept
 Conversion to variant.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_filter_t.

Member Function Documentation

◆ x_radius()

constexpr float_t tpbrt::filter::x_radius ( ) const
inlineconstexprnoexcept

Returns x_radius value.

◆ y_radius()

constexpr float_t tpbrt::filter::y_radius ( ) const
inlineconstexprnoexcept

Returns y_radius value.

◆ type()

constexpr filter_type tpbrt::filter::type ( ) const
inlineconstexprnoexcept

Returns type value.

◆ is_gaussian()

constexpr bool_t tpbrt::filter::is_gaussian ( ) const
inlineconstexprnoexcept

Returns true if type is gaussian.

◆ is_mitchell()

constexpr bool_t tpbrt::filter::is_mitchell ( ) const
inlineconstexprnoexcept

Returns true if type is mitchell.

◆ is_sinc()

constexpr bool_t tpbrt::filter::is_sinc ( ) const
inlineconstexprnoexcept

Returns true if type is sinc.

◆ as_gaussian()

constexpr std::optional< filter_gaussian_params > tpbrt::filter::as_gaussian ( ) const
inlineconstexprnoexcept

Returns gaussian parameters (std::nullopt if the type is different).

◆ as_mitchell()

constexpr std::optional< filter_mitchell_params > tpbrt::filter::as_mitchell ( ) const
inlineconstexprnoexcept

Returns mitchell parameters (std::nullopt if the type is different).

◆ as_sinc()

constexpr std::optional< filter_sinc_params > tpbrt::filter::as_sinc ( ) const
inlineconstexprnoexcept

Returns sinc parameters (std::nullopt if the type is different).

◆ to_variant()

constexpr variant_type tpbrt::filter::to_variant ( ) const
inlineconstexprnoexcept

Conversion to variant.

◆ reflect()

constexpr auto tpbrt::filter::reflect ( ) const
inlineconstexprnoexcept

Conversion to tuple.


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