Material Definition Language API nvidia_logo_transpbg.gif Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::Bsdf_buffer Class Reference

Example implementation of the abstract interface mi::neuraylib::IBsdf_buffer. More...

Inheritance diagram for mi::neuraylib::Bsdf_buffer:
mi::base::Interface_implement< neuraylib::IBsdf_buffer > mi::neuraylib::IBsdf_buffer mi::base::Interface_declare< 0xdf3e6121, 0x464e, 0x424b, 0x87, 0x6f, 0x6e, 0x8f, 0x6e, 0x66, 0xe2, 0x9a > mi::base::IInterface

Public Member Functions

 Bsdf_buffer (Size size)
 Constructor. More...
 
 ~Bsdf_buffer ()
 Destructor. More...
 
const Float32get_data () const
 Gives access to the memory block (const). More...
 
Float32get_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 IInterfaceget_interface (const Uuid &interface_id) const
 Acquires a const interface. More...
 
virtual IInterfaceget_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...
 
- Protected Member Functions inherited from mi::base::Interface_implement< neuraylib::IBsdf_buffer >
Atom32refcount () const
 Get the current refcount. More...
 

Detailed Description

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().

See Also
mi::neuraylib::IBsdf_buffer

Constructor & Destructor Documentation

mi::neuraylib::Bsdf_buffer::Bsdf_buffer ( Size  size)
inline

Constructor.

Parameters
sizeThe number of mi::Float32 elements in the memory block.
mi::neuraylib::Bsdf_buffer::~Bsdf_buffer ( )
inline

Destructor.

Member Function Documentation

const Float32* mi::neuraylib::Bsdf_buffer::get_data ( ) const
inlinevirtual

Gives access to the memory block (const).

Implements mi::neuraylib::IBsdf_buffer.

Float32* mi::neuraylib::Bsdf_buffer::get_data ( )
inline

Gives access to the memory block (mutable).