Appendix A. Basics about ML Programming and Projects

Table of Contents

A.1. Creating an ML Project by Using MeVisLab
A.2. Programming Examples
A.3. Exporting Library Symbols
A.4. General Rules for ML Programming
A.5. How to Document an ML Module
A.6. Updating from Older ML Versions
A.7. Version Control

Objectives of This Appendix

This appendix will provide further information that is needed for ML programming even though it is not directly related to it.

A.1. Creating an ML Project by Using MeVisLab

The development version of MeVisLab fully supports easy creation of running ML projects for developers:

  • Go to the File menu of the MeVisLab application and select Run Module Wizard . See corresponding chapter in the document Getting Started.

  • Select Inventor, Macro Module, ML or Load Setting to create

    • C++ and project code for an Inventor node for 2D/3D visualization. See also the Open Inventor™ Toolmaker book which describes how you implement your own visualization node.

    • MDL (module description language) and Python code for a MeVisLab macro.

    • C++ code and project files for an ML image processing module.

    • or if you want to load project settings of a project you previously created.

  • Follow the instructions and fill in parameters as shown in the module wizard.

  • See the MeVisLab SDK (Software Development Kit) for additional information on project and software development in MeVisLab.

The wizard will open the directories where files have been created.

If you work with Visual C++™, you can open the project file <ProjectName>.vcxproj and compile the project.

If you work with Linux, you can compile the project with the created makefile.

If you work with Mac OS X, you can open and compile the project with the <ProjectName>.xcodeproj.

Then you can start MeVisLab and look for your module in the menu entries or the MeVisLab Module search.

Have a close look at the comments within the source code to get familiar with module programming. See Chapter 3, Deriving Your Own Module from Module for details.

Also have a look at the document Getting Started to learn the necessary steps in detail (and much more with regard to using MeVisLab).