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

C++ wrapper for tpbrt_shape_t. More...

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

Public Member Functions

constexpr texture_handle alpha () const noexcept
 Returns alpha value.
 
constexpr transform_animated transform () const noexcept
 Returns transform value.
 
constexpr material_handle material () const noexcept
 Returns material value.
 
constexpr area_light_handle area_light () const noexcept
 Returns area_light 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 bool_t reverse_orientation () const noexcept
 Returns reverse_orientation value.
 
constexpr shape_type type () const noexcept
 Returns type value.
 
constexpr bool_t is_bilinear_mesh () const noexcept
 Returns true if type is bilinear_mesh.
 
constexpr bool_t is_curve () const noexcept
 Returns true if type is curve.
 
constexpr bool_t is_cylinder () const noexcept
 Returns true if type is cylinder.
 
constexpr bool_t is_disk () const noexcept
 Returns true if type is disk.
 
constexpr bool_t is_sphere () const noexcept
 Returns true if type is sphere.
 
constexpr bool_t is_triangle_mesh () const noexcept
 Returns true if type is triangle_mesh.
 
constexpr bool_t is_ply_mesh () const noexcept
 Returns true if type is ply_mesh.
 
constexpr bool_t is_loop_subdiv () const noexcept
 Returns true if type is loop_subdiv.
 
constexpr std::optional< shape_bilinear_mesh_params > as_bilinear_mesh () const noexcept
 Returns shape parameters as bilinear_mesh.
 
constexpr std::optional< shape_curve_params > as_curve () const noexcept
 Returns shape parameters as curve.
 
constexpr std::optional< shape_cylinder_params > as_cylinder () const noexcept
 Returns shape parameters as cylinder.
 
constexpr std::optional< shape_disk_params > as_disk () const noexcept
 Returns shape parameters as disk.
 
constexpr std::optional< shape_sphere_params > as_sphere () const noexcept
 Returns shape parameters as sphere.
 
constexpr std::optional< shape_triangle_mesh_params > as_triangle_mesh () const noexcept
 Returns shape parameters as triangle_mesh.
 
constexpr std::optional< shape_ply_mesh_params > as_ply_mesh () const noexcept
 Returns shape parameters as ply_mesh.
 
constexpr std::optional< shape_loop_subdiv_params > as_loop_subdiv () const noexcept
 Returns shape parameters as loop_subdiv.
 
constexpr variant_type to_variant () const noexcept
 Conversion to variant.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

Member Function Documentation

◆ alpha()

constexpr texture_handle tpbrt::shape::alpha ( ) const
inlineconstexprnoexcept

Returns alpha value.

◆ transform()

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

Returns transform value.

◆ material()

constexpr material_handle tpbrt::shape::material ( ) const
inlineconstexprnoexcept

Returns material value.

◆ area_light()

constexpr area_light_handle tpbrt::shape::area_light ( ) const
inlineconstexprnoexcept

Returns area_light value.

◆ interior_media_handle()

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

Returns interior_media_handle value.

◆ exterior_media_handle()

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

Returns exterior_media_handle value.

◆ reverse_orientation()

constexpr bool_t tpbrt::shape::reverse_orientation ( ) const
inlineconstexprnoexcept

Returns reverse_orientation value.

◆ type()

constexpr shape_type tpbrt::shape::type ( ) const
inlineconstexprnoexcept

Returns type value.

◆ is_bilinear_mesh()

constexpr bool_t tpbrt::shape::is_bilinear_mesh ( ) const
inlineconstexprnoexcept

Returns true if type is bilinear_mesh.

◆ is_curve()

constexpr bool_t tpbrt::shape::is_curve ( ) const
inlineconstexprnoexcept

Returns true if type is curve.

◆ is_cylinder()

constexpr bool_t tpbrt::shape::is_cylinder ( ) const
inlineconstexprnoexcept

Returns true if type is cylinder.

◆ is_disk()

constexpr bool_t tpbrt::shape::is_disk ( ) const
inlineconstexprnoexcept

Returns true if type is disk.

◆ is_sphere()

constexpr bool_t tpbrt::shape::is_sphere ( ) const
inlineconstexprnoexcept

Returns true if type is sphere.

◆ is_triangle_mesh()

constexpr bool_t tpbrt::shape::is_triangle_mesh ( ) const
inlineconstexprnoexcept

Returns true if type is triangle_mesh.

◆ is_ply_mesh()

constexpr bool_t tpbrt::shape::is_ply_mesh ( ) const
inlineconstexprnoexcept

Returns true if type is ply_mesh.

◆ is_loop_subdiv()

constexpr bool_t tpbrt::shape::is_loop_subdiv ( ) const
inlineconstexprnoexcept

Returns true if type is loop_subdiv.

◆ as_bilinear_mesh()

constexpr std::optional< shape_bilinear_mesh_params > tpbrt::shape::as_bilinear_mesh ( ) const
inlineconstexprnoexcept

Returns shape parameters as bilinear_mesh.

◆ as_curve()

constexpr std::optional< shape_curve_params > tpbrt::shape::as_curve ( ) const
inlineconstexprnoexcept

Returns shape parameters as curve.

◆ as_cylinder()

constexpr std::optional< shape_cylinder_params > tpbrt::shape::as_cylinder ( ) const
inlineconstexprnoexcept

Returns shape parameters as cylinder.

◆ as_disk()

constexpr std::optional< shape_disk_params > tpbrt::shape::as_disk ( ) const
inlineconstexprnoexcept

Returns shape parameters as disk.

◆ as_sphere()

constexpr std::optional< shape_sphere_params > tpbrt::shape::as_sphere ( ) const
inlineconstexprnoexcept

Returns shape parameters as sphere.

◆ as_triangle_mesh()

constexpr std::optional< shape_triangle_mesh_params > tpbrt::shape::as_triangle_mesh ( ) const
inlineconstexprnoexcept

Returns shape parameters as triangle_mesh.

◆ as_ply_mesh()

constexpr std::optional< shape_ply_mesh_params > tpbrt::shape::as_ply_mesh ( ) const
inlineconstexprnoexcept

Returns shape parameters as ply_mesh.

◆ as_loop_subdiv()

constexpr std::optional< shape_loop_subdiv_params > tpbrt::shape::as_loop_subdiv ( ) const
inlineconstexprnoexcept

Returns shape parameters as loop_subdiv.

◆ to_variant()

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

Conversion to variant.

◆ reflect()

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

Conversion to tuple.


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