NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::Bsdf_buffer Class Reference

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

Inheritance diagram for mi::Bsdf_buffer:
Inheritance graph
[legend]

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< IBsdf_buffer >
  Interface_implement (Uint32 initial=1)
  Constructor. More...
 
  Interface_implement (const Interface_implement< IBsdf_buffer > &other)
  Copy constructor. More...
 
Interface_implement
< IBsdf_buffer > & 
operator= (const Interface_implement< 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...
 

Detailed Description

Example implementation of the abstract interface mi::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::IBsdf_buffer

Constructor & Destructor Documentation

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

Constructor.

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

Destructor.

Member Function Documentation

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

Gives access to the memory block (const).

Implements mi::IBsdf_buffer.

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

Gives access to the memory block (mutable).