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

Data Structures

struct  tpbrt::camera_orthographic_params
 C++ wrapper for tpbrt_camera_orthographic_params_t. More...
 
struct  tpbrt::camera_perspective_params
 C++ wrapper for tpbrt_camera_perspective_params_t. More...
 
struct  tpbrt::camera_spherical_params
 C++ wrapper for tpbrt_camera_spherical_params_t. More...
 
struct  tpbrt::camera_realistic_aperture
 C++ wrapper for tpbrt_camera_realistic_aperture_t. More...
 
struct  tpbrt::camera_realistic_params
 C++ wrapper for tpbrt_camera_realistic_params_t. More...
 
struct  tpbrt::camera
 C++ wrapper for tpbrt_camera_t. More...
 

Enumerations

enum class  tpbrt::camera_type : uchar_t {
  tpbrt::camera_type::ORTHOGRAPHIC = TPBRT_CAMERA_TYPE_ORTHOGRAPHIC , tpbrt::camera_type::PERSPECTIVE = TPBRT_CAMERA_TYPE_PERSPECTIVE , tpbrt::camera_type::REALISTIC = TPBRT_CAMERA_TYPE_REALISTIC , tpbrt::camera_type::SPHERICAL = TPBRT_CAMERA_TYPE_SPHERICAL ,
  tpbrt::camera_type::MAX_NUM = TPBRT_CAMERA_TYPE_MAX_NUM
}
 Used to declare camera type. More...
 
enum class  tpbrt::camera_spherical_mapping : uchar_t { tpbrt::camera_spherical_mapping::EQUAL_AREA = TPBRT_CAMERA_SPHERICAL_MAPPING_EQUAL_AREA , tpbrt::camera_spherical_mapping::EQUI_RECTANGULAR = TPBRT_CAMERA_SPHERICAL_MAPPING_EQUI_RECTANGULAR , tpbrt::camera_spherical_mapping::MAX_NUM = TPBRT_CAMERA_SPHERICAL_MAPPING_MAX_NUM }
 Spherical camera mapping. More...
 
enum class  tpbrt::camera_realistic_aperture_type : uchar_t { tpbrt::camera_realistic_aperture_type::FILE_NAME = TPBRT_CAMERA_REALISTIC_APERTURE_TYPE_FILE_NAME , tpbrt::camera_realistic_aperture_type::BUILTIN = TPBRT_CAMERA_REALISTIC_APERTURE_TYPE_BUILTIN , tpbrt::camera_realistic_aperture_type::MAX_NUM = TPBRT_CAMERA_REALISTIC_APERTURE_TYPE_MAX_NUM }
 Realistic camera aperture value type. More...
 
enum class  tpbrt::camera_realistic_aperture_builtin : uchar_t {
  tpbrt::camera_realistic_aperture_builtin::CIRCULAR = TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_CIRCULAR , tpbrt::camera_realistic_aperture_builtin::GAUSSIAN = TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_GAUSSIAN , tpbrt::camera_realistic_aperture_builtin::SQUARE = TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_SQUARE , tpbrt::camera_realistic_aperture_builtin::PENTAGON = TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_PENTAGON ,
  tpbrt::camera_realistic_aperture_builtin::STAR = TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_STAR , tpbrt::camera_realistic_aperture_builtin::MAX_NUM = TPBRT_CAMERA_REALISTIC_APERTURE_BUILTIN_MAX_NUM
}
 Realistic camera aperture builtin type. More...
 

Functions

constexpr std::string_view tpbrt::to_string (const camera_type type) noexcept
 Converts camera_type enum value to string.
 
constexpr std::string_view tpbrt::to_string (const camera_spherical_mapping mapping) noexcept
 Converts camera_spherical_mapping enum value to string.
 
constexpr std::string_view tpbrt::to_string (const camera_realistic_aperture_type type) noexcept
 Converts camera_realistic_aperture_type enum value to string.
 
constexpr std::string_view tpbrt::to_string (const camera_realistic_aperture_builtin builtin) noexcept
 Converts camera_realistic_aperture_builtin enum value to string.
 

Detailed Description

Enumeration Type Documentation

◆ camera_type

enum class tpbrt::camera_type : uchar_t
strong

Used to declare camera type.

Enumerator
ORTHOGRAPHIC 

Orthographic camera.

PERSPECTIVE 

Perspective camera.

REALISTIC 

Realistic camera.

SPHERICAL 

Spherical camera.

MAX_NUM 

Count of available camera types.

◆ camera_spherical_mapping

Spherical camera mapping.

Enumerator
EQUAL_AREA 

An area-preserving mapping based on an octahedral encoding of the unit sphere is used.

EQUI_RECTANGULAR 

An equirectangular mapping.

MAX_NUM 

Count of available spherical camera mappings.

◆ camera_realistic_aperture_type

Realistic camera aperture value type.

Enumerator
FILE_NAME 

Aperture will be read from given file specifying an image to be used to specify the shape.

BUILTIN 

Aperture value is a builtin aperture.

MAX_NUM 

Count of available realistic camera apertures.

◆ camera_realistic_aperture_builtin

Realistic camera aperture builtin type.

Enumerator
CIRCULAR 

Circular aperture shape.

GAUSSIAN 

Gaussian aperture shape.

SQUARE 

Square aperture shape.

PENTAGON 

Pentagon aperture shape.

STAR 

Star aperture shape.

MAX_NUM 

Count of available realistic camera builtin apertures.

Function Documentation

◆ to_string() [1/4]

constexpr std::string_view tpbrt::to_string ( const camera_type  type)
constexprnoexcept

Converts camera_type enum value to string.

Parameters
typeCamera type.
Returns
String value of camera type.

◆ to_string() [2/4]

constexpr std::string_view tpbrt::to_string ( const camera_spherical_mapping  mapping)
constexprnoexcept

Converts camera_spherical_mapping enum value to string.

Parameters
mappingCamera spherical mapping.
Returns
String value of camera spherical mapping.

◆ to_string() [3/4]

constexpr std::string_view tpbrt::to_string ( const camera_realistic_aperture_type  type)
constexprnoexcept

Converts camera_realistic_aperture_type enum value to string.

Parameters
typeCamera realistic aperture type.
Returns
String value of camera realistic aperture type.

◆ to_string() [4/4]

constexpr std::string_view tpbrt::to_string ( const camera_realistic_aperture_builtin  builtin)
constexprnoexcept

Converts camera_realistic_aperture_builtin enum value to string.

Parameters
builtinCamera realistic aperture builtin.
Returns
String value of camera realistic aperture builtin.