Factory for MDL interfaces, e.g., modules with presets. More...
Public Member Functions | |
virtual Sint32 | create_presets (ITransaction *transaction, const char *module_name, const IArray *preset_data)=0 |
Creates a new MDL module containing presets. More... |
|
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0xba936279, 0x4b71, 0x42a4, 0x95, 0x37, 0x98, 0x69, 0x97, 0xb3, 0x47, 0x72 > | |
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< 0xba936279, 0x4b71, 0x42a4, 0x95, 0x37, 0x98, 0x69, 0x97, 0xb3, 0x47, 0x72 > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... |
|
Factory for MDL interfaces, e.g., modules with presets.
|
pure virtual |
Creates a new MDL module containing presets.
A preset is basically a clone of another material definition (the prototype) with different defaults.
transaction | The transaction. |
module_name | The fully-qualified MDL name of the new module (including package names, starts with "::"). |
preset_data | A static or dynamic array of structures of type Preset_data . Such a structure has the following members:
|
module_name
is invalid.module_name
.transaction
, module_name
or preset_data
are invalid, preset_data
is empty, or a struct member for the prototype name, defaults, or annotations has an incorrect type.