Example 2: Macro modules
Macro modules and Module Interactions via User Interface and Python Scripting
MeVisLab provides different types of modules, which can be distinguished by their color. The brown modules are called Macro modules. Macro modules condense a whole network into one module. You can open the internal network by pressing the middle mouse button or via right mouse click and select [ Help → Show Internal Network ]. Macro modules provide the possibility to create customized user interfaces and Python interactions.
In Chapter I - Basic Mechanics we built a contour filter and condensed all the modules into one local Macro module. Until now, the local Macro module containing the contour filter can only be used in the current network. In the following chapters, we like to make the Macro module commonly available throughout projects and equip this Macro module with panels and help pages. Commonly available macro modules are called global macros and can be found in MeVisLab [ Module Search ]. Global macros and projects are stored in packages. A package structure makes it easy to exchange projects and different functionalities between people.