24 #include <ThirdPartyWarningsDisable.h>
26 #include <ThirdPartyWarningsRestore.h>
714 const char* imagePropertyTypeClassName,
715 void** imagePropertyExtension);
MLint32 MLErrorCode
Type of an ML Error code.
MLEXPORT size_t MLFieldGetValueSize(mlField *field)
Returns the string length of field value coded as string of field field.
MLEXPORT MLErrorCode MLGetPageMemorySize(mlField *outField, size_t *numBytes)
MLEXPORT void MLImageFreeTile(void *data)
MLEXPORT MLErrorCode MLLoadLibraryWOErrorExt(const char *name, MLLibraryHandle *libHandle)
#define mlModule
A macro name for a void pointer to an ml::Module in the ML to make the pointer more readable.
MLEXPORT void MLDeleteModule(mlModule *module)
MLEXPORT void * MLPointerFieldGetPtr(mlField *field)
MLEXPORT MLErrorCode MLImageGetVoxelToWorldMatrix(mlField *outField, MLfloat[16])
Returns the VoxelToWorldMatrix of the image represented by output field outField.
MLEXPORT MLint64 MLFieldGetIntValue64(mlField *field)
MLEXPORT void MLFieldSetIntValue(mlField *field, MLint32 value)
MLEXPORT MLint32 MLFieldGetIntValue(mlField *field)
MLEXPORT void MLFieldSetValue(mlField *field, const char *value)
Sets the value of field field to value.
MLEXPORT MLErrorCode MLImageGetSize(mlField *outField, int *x, int *y, int *z, int *c)
Like MLImageGetSize6D, only for 4D. The last two extents are ignored.
MLEXPORT mlType * MLTypeGetParentType(mlType *type)
MLEXPORT void MLHostUpdateProgress(const char *info1, const char *info2)
MLEXPORT MLfloat MLFieldGetFloatValue(mlField *field)
MLEXPORT const char * MLBaseGetType(mlBase *base)
MLEXPORT mlField * MLFieldSensorGetField(mlSensor *sensor)
MLEXPORT void MLSoNodeFieldSetPtr(mlField *field, const void *value)
MLEXPORT MLuint64 MLCacheGetCurrentSizeKB()
Returns the number of kilobytes currently allocated within the ML cache.
MLEXPORT void MLSendMessagesToCout(MLint32 on)
MLEXPORT MLint32 MLAreMessagesSentToCerr()
MLEXPORT void MLBeginLoadFields(mlModule *module)
MLEXPORT void MLDeleteFieldSensor(mlSensor *sensor)
MLEXPORT mlModule * MLCreateModuleFromType(mlType *type)
MLEXPORT void MLFieldSetEnumValue(mlField *field, int val)
MLEXPORT void MLPointerFieldSetPtr(mlField *field, const void *value)
MLEXPORT void MLHostSetBreakCheckCB(void *userData, MLHostBreakCheckCB *callback)
Sets a callback to provide break checking of current calculation.
MLEXPORT MLuint32 MLGetMaxNumThreads()
MLEXPORT void MLEndLoadFields(mlModule *module)
MLEXPORT MLErrorCode MLGetMemoryImgSize(mlField *outField, size_t *numBytes)
MLEXPORT void MLBaseFieldSetPtr(mlField *baseField, const void *value)
MLEXPORT void MLHostSetProgressCB(void *userData, MLHostProgressCB *callback)
Sets a callback to provide feedback of the host calculation progress.
MLEXPORT MLErrorCode MLUnLoadLibrary(const char *name, MLLibraryHandle libHandle, char **errStr)
MLEXPORT MLErrorCode MLClearPagesAndMemoryImg(mlField *outField)
MLEXPORT const char * MLBaseGetParentType(mlBase *base)
MLEXPORT mlField * MLModuleGetField(mlModule *module, const char *name)
MLEXPORT mlModule * MLCreateModuleFromName(const char *className)
MLEXPORT MLErrorCode MLImageGetVoxelSizeInDoubles(mlField *outField, MLdouble *x, MLdouble *y, MLdouble *z)
MLEXPORT const char * MLBaseFieldGetPersistentState(mlField *baseField)
MLEXPORT void MLBeginSaveFields(mlModule *module)
MLEXPORT MLuint64 MLCacheGetMaxSizeKB()
MLEXPORT void MLModuleSetFieldValue(mlModule *module, char *fieldName, char *value)
MLEXPORT void MLEndSaveFields(mlModule *module)
MLEXPORT MLErrorCode MLImageGetType(mlField *outField, MLDataType *dtype, size_t *dsize)
#define mlBase
A macro name for a void pointer to a base object in the ML to make the pointer more readable.
MLEXPORT void MLFieldSensorAttach(mlSensor *sensor, mlField *field)
MLEXPORT MLErrorCode MLImageGetTile6D(mlField *outField, void **memory, MLint x, MLint y, MLint z, MLint c, MLint t, MLint u, MLint nx, MLint ny, MLint nz, MLint nc, MLint nt, MLint nu, MLDataType datatype)
MLEXPORT mlSensor * MLCreateFieldSensor(void *userData, MLSensorCB *callback)
MLEXPORT void MLFieldSensorDetach(mlSensor *sensor)
MLEXPORT MLErrorCode MLLoadLibraryWOError(const char *name)
Same as MLLoadLibraryWOErrorExt with libHandle=NULL.
MLEXPORT MLint32 MLLoadLibrary(const char *name)
MLEXPORT MLdouble MLFieldGetDoubleValue(mlField *field)
MLEXPORT const char * MLTypeGetName(mlType *type)
MLEXPORT const char * MLGetImageStateString(mlField *outField)
MLEXPORT int MLFieldGetEnumValue(mlField *field)
MLEXPORT const char * MLTypeGetDllName(mlType *type)
#define mlType
A macro name for a void pointer to a runtime type in the ML to make the pointer more readable.
MLEXPORT void MLSendMessagesToCerr(MLint32 on)
MLEXPORT void MLBaseFieldSetPersistentState(mlField *baseField, const char *state)
MLEXPORT MLint32 MLTypeIsDerivedFrom(mlType *type, const char *parent)
MLEXPORT MLErrorCode MLImageGetMaxValue(mlField *outField, MLdouble *maxValue)
Returns the maximum voxel value maxValue of the image represented by output field outField.
MLEXPORT MLErrorCode MLImageGetScaledTile4D(mlField *outField, void **memory, MLint x, MLint y, MLint z, MLint c, MLint nx, MLint ny, MLint nz, MLint nc, MLDataType datatype, MLdouble srcMin, MLdouble srcMax, MLdouble dstMin, MLdouble dstMax)
Like MLImageGetScaledTile6D(), only for four dimensional regions (i.e., t=u=0 and nt=nt=1).
MLEXPORT MLint32 MLTypeIsAbstract(mlType *type)
MLEXPORT MLErrorCode MLClearMemoryImg(mlField *outField)
MLEXPORT mlField * MLModuleGetIndexedField(mlModule *module, MLint32 n)
MLEXPORT void * MLSoNodeFieldGetPtr(mlField *field)
MLEXPORT mlType * MLBaseGetTypeObject(mlBase *base)
MLEXPORT MLint32 MLBaseIsDerivedFrom(mlBase *base, const char *superClassName)
MLEXPORT MLErrorCode MLImageGetMinValue(mlField *outField, MLdouble *minValue)
Returns the minimum voxel value minValue of the image represented by output field outField.
MLEXPORT void MLBaseFieldClearPersistentState(mlField *baseField, char *state)
MLEXPORT void * MLBaseFieldGetPtr(mlField *field)
MLEXPORT MLErrorCode MLImageMapVoxelToWorldInDoubles(mlField *outField, MLdouble srcX, MLdouble srcY, MLdouble srcZ, MLdouble *dstX, MLdouble *dstY, MLdouble *dstZ)
MLEXPORT void MLFieldSetDoubleValue(mlField *field, MLdouble value)
#define mlField
A macro name for a void pointer to a field in the ML to make the pointer more readable.
MLEXPORT MLErrorCode MLImageGetScaledTile6D(mlField *outField, void **memory, MLint x, MLint y, MLint z, MLint c, MLint t, MLint u, MLint nx, MLint ny, MLint nz, MLint nc, MLint nt, MLint nu, MLDataType datatype, MLdouble srcMin, MLdouble srcMax, MLdouble dstMin, MLdouble dstMax)
MLEXPORT MLint32 MLAreMessagesSentToCout()
MLEXPORT MLErrorCode MLImageGetScaledTile(mlField *outField, void **memory, MLint x, MLint y, MLint z, MLint nx, MLint ny, MLint nz, MLDataType datatype, MLdouble srcMin, MLdouble srcMax, MLdouble dstMin, MLdouble dstMax)
Exactly like MLImageGetScaledTile3D().
MLEXPORT const char * MLTypeGetParentName(mlType *type)
MLEXPORT MLErrorCode MLImageGetWorldToVoxelMatrix(mlField *outField, MLfloat[16])
Returns the WorldToVoxelMatrix of the image represented by output field outField.
MLEXPORT MLErrorCode MLClearPages(mlField *outField)
MLEXPORT void MLClearCache()
Removes all cached pages from all module outputs.
MLEXPORT void MLFieldSetFloatValue(mlField *field, MLfloat value)
MLEXPORT MLint32 MLFieldConnectFrom(mlField *inField, mlField *outField)
MLEXPORT MLErrorCode MLImageGetPageSize6D(mlField *outField, int *x, int *y, int *z, int *c, int *t, int *u)
MLEXPORT MLErrorCode MLImageGetTile(mlField *outField, void **memory, MLint x, MLint y, MLint z, MLint nx, MLint ny, MLint nz, MLDataType datatype)
Exactly like MLImageGetTile3D().
MLEXPORT void MLFieldDisconnect(mlField *inField)
MLEXPORT size_t MLFieldGetNumEnums(mlField *field)
MLEXPORT MLint32 MLImageFieldConnectFromNoNotify(mlField *inField, mlField *outField)
MLEXPORT MLint32 MLDestroy()
MLEXPORT MLErrorCode MLImageGetVoxelSize(mlField *outField, MLfloat *x, MLfloat *y, MLfloat *z)
MLEXPORT MLuint32 MLSetIsCurrentlyUnloadingLibrary(MLuint32 enable)
MLEXPORT MLErrorCode MLGetImageState(mlField *outField)
MLEXPORT MLint32 MLInit(MLint32 majorVersion, MLint32 majorCAPIVersion, MLint32 revCAPI)
MLEXPORT void MLFieldSetIntValue64(mlField *field, MLint64 value)
MLEXPORT const char * MLFieldGetEnumName(mlField *field, MLint32 i, int *value)
MLEXPORT MLErrorCode MLSetMaxNumThreads(MLuint32 numThreads)
MLEXPORT MLErrorCode MLImageGetWorldToVoxelMatrixInDoubles(mlField *outField, MLdouble[16])
Returns the WorldToVoxelMatrix of the image represented by output field outField.
MLEXPORT MLErrorCode MLImageMapWorldToVoxel(mlField *outField, MLfloat srcX, MLfloat srcY, MLfloat srcZ, MLfloat *dstX, MLfloat *dstY, MLfloat *dstZ)
MLEXPORT void MLFieldTouch(mlField *field)
MLEXPORT MLErrorCode MLImageGetTile4D(mlField *outField, void **memory, MLint x, MLint y, MLint z, MLint c, MLint nx, MLint ny, MLint nz, MLint nc, MLDataType datatype)
Like MLImageGetTile6D(), only for four dimensional regions (i.e., t=u=0 and nt=nt=1).
MLEXPORT MLErrorCode MLImageMapVoxelToWorld(mlField *outField, MLfloat srcX, MLfloat srcY, MLfloat srcZ, MLfloat *dstX, MLfloat *dstY, MLfloat *dstZ)
MLEXPORT MLErrorCode MLImageGetFirstImagePropertyExtensionByType(mlField *outField, const char *imagePropertyTypeClassName, void **imagePropertyExtension)
MLEXPORT void MLCacheSetMaxSizeKB(MLuint64 size)
MLEXPORT MLErrorCode MLImageGetScaledTile3D(mlField *outField, void **memory, MLint x, MLint y, MLint z, MLint nx, MLint ny, MLint nz, MLDataType datatype, MLdouble srcMin, MLdouble srcMax, MLdouble dstMin, MLdouble dstMax)
Like MLImageGetScaledTile6D(), only for three dimensional regions (i.e., t=u=0 and nt=nt=1).
MLEXPORT MLErrorCode MLImageMapWorldToVoxelInDoubles(mlField *outField, MLdouble srcX, MLdouble srcY, MLdouble srcZ, MLdouble *dstX, MLdouble *dstY, MLdouble *dstZ)
#define mlSensor
A macro name for a void pointer to a sensor in the ML to make the pointer more readable.
MLEXPORT const char * MLFieldGetType(mlField *field)
Returns the runtime data type of field field as string.
MLEXPORT mlType * MLTypeFromName(const char *name)
Returns the type object for given name. 0 will be returned if the type described by name is unknown.
MLEXPORT size_t MLFieldGetValue(mlField *field, char *value, size_t bufferSize)
MLEXPORT MLErrorCode MLImageGetSize6D(mlField *outField, int *x, int *y, int *z, int *c, int *t, int *u)
MLEXPORT MLuint32 MLIsCurrentlyUnloadingLibrary()
MLEXPORT const char * MLFieldGetName(mlField *field)
Returns the name of field field.
MLEXPORT MLErrorCode MLImageGetTile3D(mlField *outField, void **memory, MLint x, MLint y, MLint z, MLint nx, MLint ny, MLint nz, MLDataType datatype)
Like MLImageGetTile6D(), only for three dimensional regions (i.e., c=t=u=0 and nc=nt=nu=1).
MLEXPORT size_t MLModuleGetNumFields(mlModule *module)
MLEXPORT MLErrorCode MLImageGetVoxelToWorldMatrixInDoubles(mlField *outField, MLdouble[16])
Returns the VoxelToWorldMatrix of the image represented by output field outField.
#define MLEXPORT
Code it as import symbol if compiled elsewhere.
UINT64 MLuint64
Introduce platform-independent 64-bit unsigned integer type.
MLint32 MLHostBreakCheckCB(void *usrData, void **hitField)
void MLSensorCB(void *usrData, void *sensor)
INT64 MLint64
Include 64-bit integer support for Windows or Unix.
void MLHostProgressCB(void *usrData, const char *info1, const char *info2)