ML Reference
ML Deprecation

ML Deprecation Notes

With MeVisLab 2.1, the ML has been revised and its version number has been set to 2.0.

The most notable change of the new version of the ML is the renaming of numerous classes, methods, and macros in a systematic manner.

We provide a macro module that can be used to identify or rename uses of the deprecated ML API. Have a look at the macro module MLReplaceDeprecatedAPI.

The complete list of deprecated classes, methods, and macros can be found under Deprecated List in the side menu of the Toolbox Reference.

The following table should give an overview over the changes.

General
ext extent
pos position
img image
calc calculate
props properties
Classes
BaseOp Module
PagedImg PagedImage
SubImg SubImage
SubImgBoxf SubImageBoxd
Macros
ML_TRACE_IN_TC ML_TRACE_IN_TIME_CRITICAL
ML_CHECK_RN ML_CHECK_RETURN_NULL
CALC_OUTSUBIMAGE2_CPP ML_CALCULATEOUTPUTSUBIMAGE_NUM_INPUTS_2_CPP
Methods
getInputNum getNumInputImages
getInField getInputImageField
transformToWorldCoord mapVoxelToWorld
getVoidSubImgPos getImagePointer
getSize getNumVoxels
Cursor Methods
moveCursorFX moveCursorX
moveCursorBX reverseMoveCursorX
moveCursorFXLF moveCursorXWrapAround
setCursorVoxel setCursorValue
Field (Container)
addVec3f addVector3
addMat4 addMatrix4
notifyAttachments touch
deactivate/activateAttachments enableNotification(bool)
LinearAlgebra
vec2 Vector2
mat3 Matrix3
Vector ImageVector

Additional notes on changes of the fields:

  • In all fields, the setting of pointers to member variables to be used instead of the variable encapsulated by the field itself has been deprecated
  • The use of setMinValue / setMaxValue has been deprecated for the fields