GlobalUtilsInterface Class Reference

#include <globalimport.h>

Inheritance diagram for GlobalUtilsInterface:

Detailed Description

GlobalUtils provides some helper functionality to react to global import settings.

Static Public Member Functions

static MAXON_METHOD Result< void > ConvertObjects (BaseArray< BaseObject * > &objList, const Delegate< Result< void >(BaseObject *, BaseObject *)> &customOperation=nullptr)
 
static MAXON_METHOD Result< BaseMaterial * > CreateGenericMaterial (const material::MaterialExchangeData &materialData, Id nodeSpace, BaseDocument &baseDocument)
 
static MAXON_METHOD Result< void > ConvertTextureTosRGB (ImageTextureRef &textureRef)
 

Private Member Functions

 MAXON_INTERFACE (GlobalUtilsInterface, MAXON_REFERENCE_NORMAL, "net.maxon.exchange.interface.globalutils")
 

Private Attributes

 MAXON_INTERFACE_SINGLE_IMPLEMENTATION
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( GlobalUtilsInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.exchange.interface.globalutils"   
)
private

◆ ConvertObjects()

static MAXON_METHOD Result<void> ConvertObjects ( BaseArray< BaseObject * > &  objList,
const Delegate< Result< void >(BaseObject *, BaseObject *)> &  customOperation = nullptr 
)
static

Converts passed object to Redshift Objects.

Parameters
[in]objListThe list of objects to convert.
Returns
The converted list of objects.

◆ CreateGenericMaterial()

static MAXON_METHOD Result<BaseMaterial*> CreateGenericMaterial ( const material::MaterialExchangeData materialData,
Id  nodeSpace,
BaseDocument baseDocument 
)
static

Creates a generic material based on basic material data and node space.

Parameters
[in]materialDataThe properties of the material.
[in]nodeSpaceThe node space ID the material is created for.
[in]baseDocumentThe active document the import is happening. Note: The material will not be inserted into the document!
Returns
The pointer to the created material.

◆ ConvertTextureTosRGB()

static MAXON_METHOD Result<void> ConvertTextureTosRGB ( ImageTextureRef &  textureRef)
static

Convert an ImageTextureRef to an sRGB color profile.

Parameters
[in,out]textureRefThe texture to transform the color profile.
Returns
The error if any.

Member Data Documentation

◆ MAXON_INTERFACE_SINGLE_IMPLEMENTATION

MAXON_INTERFACE_SINGLE_IMPLEMENTATION
private