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

C++ wrapper for tpbrt_light_source_t. More...

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

Public Member Functions

constexpr transform_handle transform () const noexcept
 Returns transform value.
 
constexpr float_t scale () const noexcept
 Returns scale value.
 
constexpr opt_float power_illuminance () const noexcept
 Returns power_illuminance 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 light_source_type type () const noexcept
 Returns type value.
 
constexpr bool_t is_distant () const noexcept
 Returns true if type is distant.
 
constexpr bool_t is_goniometric () const noexcept
 Returns true if type is goniometric.
 
constexpr bool_t is_infinite () const noexcept
 Returns true if type is infinite.
 
constexpr bool_t is_point () const noexcept
 Returns true if type is point.
 
constexpr bool_t is_projection () const noexcept
 Returns true if type is projection.
 
constexpr bool_t is_spot () const noexcept
 Returns true if type is spot.
 
constexpr std::optional< light_source_distant_params > as_distant () const noexcept
 Returns light parameters as distant.
 
constexpr std::optional< light_source_goniometric_params > as_goniometric () const noexcept
 Returns light parameters as goniometric.
 
constexpr std::optional< light_source_infinite_params > as_infinite () const noexcept
 Returns light parameters as infinite.
 
constexpr std::optional< light_source_point_params > as_point () const noexcept
 Returns light parameters as point.
 
constexpr std::optional< light_source_projection_params > as_projection () const noexcept
 Returns light parameters as projection.
 
constexpr std::optional< light_source_spot_params > as_spot () const noexcept
 Returns light parameters as spot.
 
constexpr variant_type to_variant () const noexcept
 Conversion to variant.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

Member Function Documentation

◆ transform()

constexpr transform_handle tpbrt::light_source::transform ( ) const
inlineconstexprnoexcept

Returns transform value.

◆ scale()

constexpr float_t tpbrt::light_source::scale ( ) const
inlineconstexprnoexcept

Returns scale value.

◆ power_illuminance()

constexpr opt_float tpbrt::light_source::power_illuminance ( ) const
inlineconstexprnoexcept

Returns power_illuminance value.

◆ interior_media_handle()

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

Returns interior_media_handle value.

◆ exterior_media_handle()

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

Returns exterior_media_handle value.

◆ type()

constexpr light_source_type tpbrt::light_source::type ( ) const
inlineconstexprnoexcept

Returns type value.

◆ is_distant()

constexpr bool_t tpbrt::light_source::is_distant ( ) const
inlineconstexprnoexcept

Returns true if type is distant.

◆ is_goniometric()

constexpr bool_t tpbrt::light_source::is_goniometric ( ) const
inlineconstexprnoexcept

Returns true if type is goniometric.

◆ is_infinite()

constexpr bool_t tpbrt::light_source::is_infinite ( ) const
inlineconstexprnoexcept

Returns true if type is infinite.

◆ is_point()

constexpr bool_t tpbrt::light_source::is_point ( ) const
inlineconstexprnoexcept

Returns true if type is point.

◆ is_projection()

constexpr bool_t tpbrt::light_source::is_projection ( ) const
inlineconstexprnoexcept

Returns true if type is projection.

◆ is_spot()

constexpr bool_t tpbrt::light_source::is_spot ( ) const
inlineconstexprnoexcept

Returns true if type is spot.

◆ as_distant()

constexpr std::optional< light_source_distant_params > tpbrt::light_source::as_distant ( ) const
inlineconstexprnoexcept

Returns light parameters as distant.

◆ as_goniometric()

constexpr std::optional< light_source_goniometric_params > tpbrt::light_source::as_goniometric ( ) const
inlineconstexprnoexcept

Returns light parameters as goniometric.

◆ as_infinite()

constexpr std::optional< light_source_infinite_params > tpbrt::light_source::as_infinite ( ) const
inlineconstexprnoexcept

Returns light parameters as infinite.

◆ as_point()

constexpr std::optional< light_source_point_params > tpbrt::light_source::as_point ( ) const
inlineconstexprnoexcept

Returns light parameters as point.

◆ as_projection()

constexpr std::optional< light_source_projection_params > tpbrt::light_source::as_projection ( ) const
inlineconstexprnoexcept

Returns light parameters as projection.

◆ as_spot()

constexpr std::optional< light_source_spot_params > tpbrt::light_source::as_spot ( ) const
inlineconstexprnoexcept

Returns light parameters as spot.

◆ to_variant()

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

Conversion to variant.

◆ reflect()

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

Conversion to tuple.


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