Example implementation of the abstract interface mi::neuraylib::IBsdf_buffer. More...
Public Member Functions | |
Bsdf_buffer (Size size) | |
Constructor. More... |
|
~Bsdf_buffer () | |
Destructor. More... |
|
const Float32 * | get_data () const |
Gives access to the memory block (const). More... |
|
Float32 * | get_data () |
Gives access to the memory block (mutable). More... |
|
Public Member Functions inherited from mi::base::Interface_implement< neuraylib::IBsdf_buffer > | |
Interface_implement (Uint32 initial=1) | |
Constructor. More... |
|
Interface_implement (const Interface_implement< neuraylib::IBsdf_buffer > &other) | |
Copy constructor. More... |
|
Interface_implement < neuraylib::IBsdf_buffer > & |
operator= (const Interface_implement< neuraylib::IBsdf_buffer > &other) |
Assignment operator. More... |
|
virtual Uint32 | retain () const |
Increments the reference count. More... |
|
virtual Uint32 | release () const |
Decrements the reference count. More... |
|
virtual const IInterface * | get_interface (const Uuid &interface_id) const |
Acquires a const interface. More... |
|
virtual IInterface * | get_interface (const Uuid &interface_id) |
Acquires a mutable interface. More... |
|
Uuid | get_iid () const |
Returns the interface ID of the most derived interface. More... |
|
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0xdf3e6121, 0x464e, 0x424b, 0x87, 0x6f, 0x6e, 0x8f, 0x6e, 0x66, 0xe2, 0x9a > | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, IInterface > |
Self |
Own type. More... |
|
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > |
IID |
Declares the interface ID (IID) of this interface. More... |
|
Static Public Member Functions inherited from mi::base::Interface_declare< 0xdf3e6121, 0x464e, 0x424b, 0x87, 0x6f, 0x6e, 0x8f, 0x6e, 0x66, 0xe2, 0x9a > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... |
|
Example implementation of the abstract interface mi::neuraylib::IBsdf_buffer.
The size of the memory block is specified in the constructor and cannot be changed later. This simple implementation simply contains the memory block returned by get_data().
|
inline |
Constructor.
size | The number of mi::Float32 elements in the memory block. |
|
inline |
Destructor.
|
inlinevirtual |
Gives access to the memory block (const).
Implements mi::neuraylib::IBsdf_buffer.
|
inline |
Gives access to the memory block (mutable).