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

C++ wrapper for tpbrt_film_t. More...

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

Public Types

using crop_window_type = array< tpbrt_float_t[4], float_t >
 Type used to read crop_window parameter.
 
using pixel_bounds_type = array< tpbrt_uint_t[4], uint_t >
 Type used to read pixel_bounds parameter.
 

Public Member Functions

constexpr crop_window_type crop_window () const noexcept
 Returns crop_window value.
 
constexpr pixel_bounds_type pixel_bounds () const noexcept
 Returns pixel_bounds value.
 
constexpr string file_name () const noexcept
 Returns file_name value.
 
constexpr uint_t x_resolution () const noexcept
 Returns x_resolution value.
 
constexpr uint_t y_resolution () const noexcept
 Returns y_resolution value.
 
constexpr float_t diagonal () const noexcept
 Returns diagonal value.
 
constexpr float_t iso () const noexcept
 Returns iso value.
 
constexpr float_t white_balance () const noexcept
 Returns white_balance value.
 
constexpr float_t max_component_value () const noexcept
 Returns max_component_value value.
 
constexpr film_sensor sensor () const noexcept
 Returns sensor value.
 
constexpr bool_t save_fp16 () const noexcept
 Returns save_fp16 value.
 
constexpr film_type type () const noexcept
 Returns type value.
 
constexpr bool_t is_gbuffer () const noexcept
 Returns true if type is gbuffer.
 
constexpr bool_t is_spectral () const noexcept
 Returns true if type is spectral.
 
constexpr std::optional< film_gbuffer_params > as_gbuffer () const noexcept
 Returns film parameters as gbuffer.
 
constexpr std::optional< film_spectral_params > as_spectral () const noexcept
 Returns film parameters as spectral.
 
constexpr variant_type to_variant () const noexcept
 Conversion to variant.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_film_t.

Member Typedef Documentation

◆ crop_window_type

Type used to read crop_window parameter.

◆ pixel_bounds_type

Type used to read pixel_bounds parameter.

Member Function Documentation

◆ crop_window()

constexpr crop_window_type tpbrt::film::crop_window ( ) const
inlineconstexprnoexcept

Returns crop_window value.

◆ pixel_bounds()

constexpr pixel_bounds_type tpbrt::film::pixel_bounds ( ) const
inlineconstexprnoexcept

Returns pixel_bounds value.

◆ file_name()

constexpr string tpbrt::film::file_name ( ) const
inlineconstexprnoexcept

Returns file_name value.

◆ x_resolution()

constexpr uint_t tpbrt::film::x_resolution ( ) const
inlineconstexprnoexcept

Returns x_resolution value.

Examples
examples/cpp/quickstart/main.cpp.

◆ y_resolution()

constexpr uint_t tpbrt::film::y_resolution ( ) const
inlineconstexprnoexcept

Returns y_resolution value.

Examples
examples/cpp/quickstart/main.cpp.

◆ diagonal()

constexpr float_t tpbrt::film::diagonal ( ) const
inlineconstexprnoexcept

Returns diagonal value.

◆ iso()

constexpr float_t tpbrt::film::iso ( ) const
inlineconstexprnoexcept

Returns iso value.

◆ white_balance()

constexpr float_t tpbrt::film::white_balance ( ) const
inlineconstexprnoexcept

Returns white_balance value.

◆ max_component_value()

constexpr float_t tpbrt::film::max_component_value ( ) const
inlineconstexprnoexcept

Returns max_component_value value.

◆ sensor()

constexpr film_sensor tpbrt::film::sensor ( ) const
inlineconstexprnoexcept

Returns sensor value.

◆ save_fp16()

constexpr bool_t tpbrt::film::save_fp16 ( ) const
inlineconstexprnoexcept

Returns save_fp16 value.

◆ type()

constexpr film_type tpbrt::film::type ( ) const
inlineconstexprnoexcept

Returns type value.

◆ is_gbuffer()

constexpr bool_t tpbrt::film::is_gbuffer ( ) const
inlineconstexprnoexcept

Returns true if type is gbuffer.

◆ is_spectral()

constexpr bool_t tpbrt::film::is_spectral ( ) const
inlineconstexprnoexcept

Returns true if type is spectral.

◆ as_gbuffer()

constexpr std::optional< film_gbuffer_params > tpbrt::film::as_gbuffer ( ) const
inlineconstexprnoexcept

Returns film parameters as gbuffer.

◆ as_spectral()

constexpr std::optional< film_spectral_params > tpbrt::film::as_spectral ( ) const
inlineconstexprnoexcept

Returns film parameters as spectral.

◆ to_variant()

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

Conversion to variant.

◆ reflect()

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

Conversion to tuple.


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