MeVisLabToolboxReference
WEM Base Modules

Notifications

The communication of WEM modules in a MeVisLab network is performed mostly via touching fields. But for synchronizing visualization modules, it is essentially that those modules are able to communicate 'horizontally'. This is archieved by using an observer pattern. A module can register itself as an observer on the WEM. If certain notifications are fired (like repaint or selection), the module can react in its individual way.

While firing a notification, a std::vector of WEMEventContainer is propagated through the network. In this container class the event can be described per patch.

WEMModule

This is the base class for the WEMGenerator, WEMProcessor and WEMInspector. In this class the processing state and the elapsed processing time is maintained.

WEMGenerator

Modules should derive from the WEMGenerator class if a new WEM is generated here. Accordingly, this class provides a module skeleton with one WEM output.

WEMProcessor

The WEMProcessor class provides one WEM input and one WEM output and is meant for modules that alter a WEM.

WEMInspector

The WEMInspector class provides just one WEM input and is meant to be used for modules that compute and display information on the WEM, or perform a rendering.