neuray API Programmer's Manual

imdle_api.h File Reference

Description

API component that gives access to the MDL Encapsulator API.

Code Example

imdle_api.h

‎/***************************************************************************************************
 * Copyright 2024 NVIDIA Corporation. All rights reserved.
 **************************************************************************************************/

#ifndef MI_NEURAYLIB_IMDLE_API_H
#define MI_NEURAYLIB_IMDLE_API_H

#include <mi/base/interface_declare.h>
#include <mi/base/enums.h>

namespace mi {

class IStructure;

namespace neuraylib {

class IMdl_execution_context;
class IReader;
class ITransaction;


class IMdle_api : public
    base::Interface_declare<0xda82106c,0x658d,0x449d,0x8e,0x1,0xfb,0x55,0x1,0x61,0x9b,0x97>
{
public:

    virtual Sint32 
               export_mdle(
        ITransaction* transaction,
        const char* file_name,
        const IStructure* mdle_data,
        IMdl_execution_context* context) const = 0;

    virtual Sint32 
               validate_mdle(
        const char* file_name,
        IMdl_execution_context* context) const = 0;

    virtual IReader* get_user_file(
        const char* mdle_file_name,
        const char* user_file_name,
        IMdl_execution_context* context) const = 0;

    virtual Sint32 
               compare_mdle(
        const char* mdle_file_name_a,
        const char* mdle_file_name_b,
        IMdl_execution_context* context) const = 0;

    virtual Sint32 
               get_hash(
        const char* mdle_file_name,
        base::Uuid& hash,
        IMdl_execution_context* context) const = 0;
};
 // end group mi_neuray_mdl_misc

} // namespace neuraylib
} // namespace mi

#endif // MI_NEURAYLIB_IMDLE_API_H

Namespaces

namespace 
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH. More...
namespace 
Namespace for the neuray API. More...

Classes

class 
Provides access to functions related to the creation of encapsulated MDL modules (MDLE). More...