MDL SDK API nvidia_logo_transpbg.gif Up
mi::neuraylib::ITarget_value_layout Class Referenceabstract

Represents the layout of an mi::neuraylib::ITarget_argument_block with support for nested elements. More...

#include <imdl_backend.h>

Inheritance diagram for mi::neuraylib::ITarget_value_layout:

Public Member Functions

virtual Size get_size () const =0
 Returns the size of the target argument block. More...
 
virtual Size get_num_elements (Target_value_layout_state state=Target_value_layout_state()) const =0
 Get the number of arguments / elements at the given layout state. More...
 
virtual Size get_layout (IValue::Kind &kind, Size &arg_size, Target_value_layout_state state=Target_value_layout_state()) const =0
 Get the offset, the size and the kind of the argument / element inside the argument block at the given layout state. More...
 
virtual Target_value_layout_state get_nested_state (Size i, Target_value_layout_state state=Target_value_layout_state()) const =0
 Get the layout state for the i'th argument / element inside the argument value block at the given layout state. More...
 
virtual Sint32 set_value (char *block, IValue const *value, ITarget_resource_callback *resource_callback, Target_value_layout_state state=Target_value_layout_state()) const =0
 Set the value inside the given block at the given layout state. More...
 
- Public Member Functions inherited from mi::base::IInterface
virtual Uint32 retain () const =0
 Increments the reference count. More...
 
virtual Uint32 release () const =0
 Decrements the reference count. More...
 
virtual const IInterfaceget_interface (const Uuid &interface_id) const =0
 Acquires a const interface from another. More...
 
template<class T>
const T * get_interface () const
 Acquires a const interface from another. More...
 
virtual IInterfaceget_interface (const Uuid &interface_id)=0
 Acquires a mutable interface from another. More...
 
template<class T>
T * get_interface ()
 Acquires a mutable interface from another. More...
 
virtual Uuid get_iid () const =0
 Returns the interface ID of the most derived interface. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x1003351f, ... >
typedef Interface_declare< id1, ... > Self
 Own type. More...
 
typedef Uuid_t< id1, ... > IID
 Declares the interface ID (IID) of this interface. More...
 
- Public Types inherited from mi::base::IInterface
typedef Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> IID
 Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x1003351f, ... >
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 
- Static Public Member Functions inherited from mi::base::IInterface
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface. More...
 

Detailed Description

Represents the layout of an mi::neuraylib::ITarget_argument_block with support for nested elements.

The structure of the layout corresponds to the structure of the arguments of the compiled material not of the original material. Especially note, that the i'th argument of a compiled material does not in general correspond to the i'th argument of the original material.

See Instance-compilation and class-compilation for more details.