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

C++ wrapper for tpbrt_camera_t. More...

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

Public Member Functions

constexpr float_t shutter_open () const noexcept
 Returns shutter_open value.
 
constexpr float_t shutter_close () const noexcept
 Returns shutter_close value.
 
constexpr transform_animated transform () const noexcept
 Returns transform value.
 
constexpr media_handle interior_media_handle () const noexcept
 Returns interior_media_handle value.
 
constexpr media_handle exterior_media_handle () const noexcept
 Returns exterior_media_handle value.
 
constexpr camera_type type () const noexcept
 Returns type value.
 
constexpr bool_t is_orthographic () const noexcept
 Returns true if type is orthographic.
 
constexpr bool_t is_perspective () const noexcept
 Returns true if type is perspective.
 
constexpr bool_t is_spherical () const noexcept
 Returns true if type is spherical.
 
constexpr bool_t is_realistic () const noexcept
 Returns true if type is realistic.
 
constexpr std::optional< camera_orthographic_params > as_orthographic () const noexcept
 Returns camera parameters as orthographic.
 
constexpr std::optional< camera_perspective_params > as_perspective () const noexcept
 Returns camera parameters as perspective.
 
constexpr std::optional< camera_spherical_params > as_spherical () const noexcept
 Returns camera parameters as spherical.
 
constexpr std::optional< camera_realistic_params > as_realistic () const noexcept
 Returns camera parameters as realistic.
 
constexpr variant_type to_variant () const noexcept
 Conversion to variant.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_camera_t.

Member Function Documentation

◆ shutter_open()

constexpr float_t tpbrt::camera::shutter_open ( ) const
inlineconstexprnoexcept

Returns shutter_open value.

◆ shutter_close()

constexpr float_t tpbrt::camera::shutter_close ( ) const
inlineconstexprnoexcept

Returns shutter_close value.

◆ transform()

constexpr transform_animated tpbrt::camera::transform ( ) const
inlineconstexprnoexcept

Returns transform value.

◆ interior_media_handle()

constexpr media_handle tpbrt::camera::interior_media_handle ( ) const
inlineconstexprnoexcept

Returns interior_media_handle value.

◆ exterior_media_handle()

constexpr media_handle tpbrt::camera::exterior_media_handle ( ) const
inlineconstexprnoexcept

Returns exterior_media_handle value.

◆ type()

constexpr camera_type tpbrt::camera::type ( ) const
inlineconstexprnoexcept

Returns type value.

◆ is_orthographic()

constexpr bool_t tpbrt::camera::is_orthographic ( ) const
inlineconstexprnoexcept

Returns true if type is orthographic.

◆ is_perspective()

constexpr bool_t tpbrt::camera::is_perspective ( ) const
inlineconstexprnoexcept

Returns true if type is perspective.

◆ is_spherical()

constexpr bool_t tpbrt::camera::is_spherical ( ) const
inlineconstexprnoexcept

Returns true if type is spherical.

◆ is_realistic()

constexpr bool_t tpbrt::camera::is_realistic ( ) const
inlineconstexprnoexcept

Returns true if type is realistic.

◆ as_orthographic()

constexpr std::optional< camera_orthographic_params > tpbrt::camera::as_orthographic ( ) const
inlineconstexprnoexcept

Returns camera parameters as orthographic.

◆ as_perspective()

constexpr std::optional< camera_perspective_params > tpbrt::camera::as_perspective ( ) const
inlineconstexprnoexcept

Returns camera parameters as perspective.

◆ as_spherical()

constexpr std::optional< camera_spherical_params > tpbrt::camera::as_spherical ( ) const
inlineconstexprnoexcept

Returns camera parameters as spherical.

◆ as_realistic()

constexpr std::optional< camera_realistic_params > tpbrt::camera::as_realistic ( ) const
inlineconstexprnoexcept

Returns camera parameters as realistic.

◆ to_variant()

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

Conversion to variant.

◆ reflect()

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

Conversion to tuple.


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