C++ wrapper for tpbrt_spectrum_t.
More...
#include <tinypbrt/detail/cpp/color.hpp>
|
| constexpr spectrum_type | type () const noexcept |
| | Returns type value.
|
| |
| constexpr bool_t | is_wavelengths () const noexcept |
| | Returns true if type is wavelengths.
|
| |
| constexpr bool_t | is_rgb () const noexcept |
| | Returns true if type is rgb.
|
| |
| constexpr bool_t | is_blackbody () const noexcept |
| | Returns true if type is blackbody.
|
| |
| constexpr bool_t | is_file () const noexcept |
| | Returns true if type is file.
|
| |
| constexpr bool_t | is_builtin () const noexcept |
| | Returns true if type is builtin.
|
| |
| constexpr bool_t | is_constant () const noexcept |
| | Returns true if type is constant.
|
| |
| constexpr std::optional< wavelength_array > | as_wavelengths () const noexcept |
| | Returns spectrum value as wavelengths.
|
| |
| constexpr std::optional< rgb > | as_rgb () const noexcept |
| | Returns spectrum value as rgb.
|
| |
| constexpr std::optional< blackbody > | as_blackbody () const noexcept |
| | Returns spectrum value as blackbody.
|
| |
| constexpr std::optional< string > | as_file () const noexcept |
| | Returns spectrum value as file.
|
| |
| constexpr std::optional< spectrum_builtin > | as_builtin () const noexcept |
| | Returns spectrum value as builtin.
|
| |
| constexpr std::optional< float_t > | as_constant () const noexcept |
| | Returns spectrum value as constant.
|
| |
| constexpr variant_type | to_variant () const noexcept |
| | Conversion to variant.
|
| |
| constexpr auto | reflect () const noexcept |
| | Conversion to tuple.
|
| |
◆ type()
◆ is_wavelengths()
| constexpr bool_t tpbrt::spectrum::is_wavelengths |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns true if type is wavelengths.
◆ is_rgb()
| constexpr bool_t tpbrt::spectrum::is_rgb |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns true if type is rgb.
◆ is_blackbody()
| constexpr bool_t tpbrt::spectrum::is_blackbody |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns true if type is blackbody.
◆ is_file()
| constexpr bool_t tpbrt::spectrum::is_file |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns true if type is file.
◆ is_builtin()
| constexpr bool_t tpbrt::spectrum::is_builtin |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns true if type is builtin.
◆ is_constant()
| constexpr bool_t tpbrt::spectrum::is_constant |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns true if type is constant.
◆ as_wavelengths()
| constexpr std::optional< wavelength_array > tpbrt::spectrum::as_wavelengths |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns spectrum value as wavelengths.
◆ as_rgb()
| constexpr std::optional< rgb > tpbrt::spectrum::as_rgb |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns spectrum value as rgb.
◆ as_blackbody()
| constexpr std::optional< blackbody > tpbrt::spectrum::as_blackbody |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns spectrum value as blackbody.
◆ as_file()
| constexpr std::optional< string > tpbrt::spectrum::as_file |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns spectrum value as file.
◆ as_builtin()
| constexpr std::optional< spectrum_builtin > tpbrt::spectrum::as_builtin |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns spectrum value as builtin.
◆ as_constant()
| constexpr std::optional< float_t > tpbrt::spectrum::as_constant |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns spectrum value as constant.
◆ to_variant()
| constexpr variant_type tpbrt::spectrum::to_variant |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ reflect()
| constexpr auto tpbrt::spectrum::reflect |
( |
| ) |
const |
|
inlineconstexprnoexcept |
The documentation for this struct was generated from the following file: