neuray API Programmer's Manual

mi::neuraylib::Bsdf_isotropic_data Class Reference

[Miscellaneous]

Description

Example implementation of the abstract interface mi::neuraylib::IBsdf_isotropic_data. The resolution and type of the BSDF data are specified in the constructor and cannot be changed later. This simple implementation creates (the interface owning) the memory block holding all values in its constructor and keeps it for its lifetime. More advanced implementations might convert the data from other representations on the fly in get_bsdf_buffer() and might return a temporary instance of mi::neuraylib::IBsdf_buffer without keeping a reference to that instance.

See also:

mi::neuraylib::IBsdf_isotropic_data

Public Constructors

 Bsdf_isotropic_data( Uint32 resolution_theta, Uint32 resolution_phi, Bsdf_type type)
Constructor.

Public Member Functions

virtual const Bsdf_bufferget_bsdf_buffer() const
Returns the buffer containing the values (const).
Bsdf_bufferget_bsdf_buffer()
Returns the buffer containing the values (mutable).
virtual Uint32 get_resolution_phi() const
Returns the number of values in phi direction.
virtual Uint32 get_resolution_theta() const
Returns the number of values in theta direction.
virtual Bsdf_type get_type() const
Returns the type of the values.

Constructors

mi::​neuraylib::​Bsdf_isotropic_data::Bsdf_isotropic_data( Uint32 resolution_theta, Uint32 resolution_phi, Bsdf_type type) [inline]

Constructor.

Member Functions

virtual const Bsdf_buffer* mi::​neuraylib::​Bsdf_isotropic_data::get_bsdf_buffer() const [inline, virtual]

Returns the buffer containing the values (const).

Bsdf_buffer* mi::​neuraylib::​Bsdf_isotropic_data::get_bsdf_buffer() [inline]

Returns the buffer containing the values (mutable).

virtual Uint32 mi::​neuraylib::​Bsdf_isotropic_data::get_resolution_phi() const [inline, virtual]

Returns the number of values in phi direction.

virtual Uint32 mi::​neuraylib::​Bsdf_isotropic_data::get_resolution_theta() const [inline, virtual]

Returns the number of values in theta direction.

virtual Bsdf_type mi::​neuraylib::​Bsdf_isotropic_data::get_type() const [inline, virtual]

Returns the type of the values.