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

Abstract interface for callbacks used by on-demand meshes. More...

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

Public Member Functions

virtual const ISimple_mesh call () const =0
  Returns the mesh represented by this callback. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x7cadfdf7, 0xd26f, 0x48ac, 0x91, 0x18, 0x2d, 0x6d, 0x6f, 0x7a, 0x78, 0xf4 >
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< 0x7cadfdf7, 0xd26f, 0x48ac, 0x91, 0x18, 0x2d, 0x6d, 0x6f, 0x7a, 0x78, 0xf4 >
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

Abstract interface for callbacks used by on-demand meshes.

See Also
mi::IOn_demand_mesh, mi::ISimple_mesh

Member Function Documentation

virtual const ISimple_mesh* mi::IOn_demand_mesh_callback::call ( ) const
pure virtual

Returns the mesh represented by this callback.

The method may return NULL which is treated like an empty mesh.

Note
The callback is required to always return an equivalent mesh. It does not need to be exactly the same instance, but the represented geometry and all properties must be identical. If you want to change the mesh, you need to install a new instance of this callback object via mi::IOn_demand_mesh::set_callback().