Base class for resource values. More...
Public Member Functions | |
virtual const IType_resource * | get_type () const =0 |
Returns the type of this value. More... | |
virtual const char * | get_value () const =0 |
Returns the name of the DB element representing this resource. More... | |
virtual Sint32 | set_value (const char *value)=0 |
Sets the name of the DB element representing this resource. More... | |
virtual const char * | get_file_path () const =0 |
Returns the absolute MDL file path of the resource, or NULL if not known. More... | |
Additional Inherited Members | |
![]() | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, neuraylib::IValue > | 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 bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Base class for resource values.
|
pure virtual |
Returns the absolute MDL file path of the resource, or NULL
if not known.
|
pure virtual |
Returns the type of this value.
Implements mi::neuraylib::IValue.
Implemented in mi::neuraylib::IValue_bsdf_measurement, mi::neuraylib::IValue_light_profile, and mi::neuraylib::IValue_texture.
|
pure virtual |
Returns the name of the DB element representing this resource.
NULL
if no valid resource is set.
|
pure virtual |
Sets the name of the DB element representing this resource.
Pointing this instance to a different DB element resets the MDL file path returned by get_file_path().
value | The name of the resource, or NULL to release the current resource. |