3.9. Using Groups

Modules can be grouped. A group is helpful for organizing the network in the workspace, as the group can be moved as one unit. The default color of groups can be set in the Preferences, see Section 4.3.7, “Preferences — Network Appearance”.

Figure 3.40. Modules in Groups

Modules in Groups

Data connections are bundled optically as square, color-coded connectors at the bottom (input) or top (output) of the group. The colors correspond to the connection types: blue for ML, green for Open Inventor, brown for base. Parameter connections are not bundled for groups.

The size of the group is set automatically by the bounding box of the modules and cannot be changed explicitly. To adjust it, move the modules within the group.

[Note]Note

Besides the optical appearance as “group”, the modules are not connected to each other in any special way. Groups are only a visual tool for improving the network handling. Consequently, the group feature should not be used excessively to organize complex networks; for this, groups should be converted to macros which are the recommended way to reduce complexity in the MeVisLab context, see Section 3.9.2, “Editing, Converting and Deleting Groups”.

The group name and color of a group can be scripted, see the Scripting Reference, MLABNetworkModelItemGroup.

3.9.1. Creating Groups and Adding/Removing Modules

Creating groups and adding to/removing modules from groups is done via the context menu of the selected module(s).

Figure 3.41. Network Context Menu — Adding Groups

Network Context Menu — Adding Groups

The additional option Add to Group: <TargetGroup> is available when the module is already positioned within the target group's bounding box.

[Note]Note

The color of modules that are placed over a group but that are not part of any group is rendered slightly more saturated and bright.

Figure 3.42. Network Context Menu — Adding to a Specific Group

Network Context Menu — Adding to a Specific Group

Remove from Group

Removes the selected modules from the group.

[Tip]Tip

To move modules from one group to another, simply select them and add them to another or a new group. Since modules can only be part of one group, this course of action will effectively move the modules.

Add to Group

Adds the selected modules to one of the existing groups, which can be selected in the submenu.

Add to New Group

Creates a new group for the selected modules. Also allows adding the modules to an existing group.

3.9.2. Editing, Converting and Deleting Groups

A group can be edited, converted to macro, or deleted via the context menu of its title.

Figure 3.43. Group Context Menu

Group Context Menu

Edit Title

Allows editing a new group title/name. The title must be unique within the current network.

[Tip]Tip

Refer to chapter Section 25.3, “Module and Network Handling — Shortcuts and Tricks (All Platforms)” for a shortcut for editing a group's title.

Edit Color

Allows editing the color of the group. This has no effect on the default color which is set in the Preferences, see Section 4.3.7, “Preferences — Network Appearance”.

[Note]Note

When changing the color setting, the alpha value is 255 by default, that means the group is opaque. To give the group the appearance of standard groups, enter the original alpha value of 38.

Convert To Macro

Creates a (local) macro from the group, see Section 4.1.11, “Create Local Macro”. The network has to be saved for this.

Delete Group

Deletes the group. Can be undone/redone.

3.9.3. Copying Groups Including Modules

For copying a complete group:

  1. Double-click the group title bar to select all modules of the group.

  2. Duplicate the group via the Edit menu or the respective keyboard shortcuts (on Windows/Linux(KDE): CTRL+D; on Mac OS X: +D).

A number is added automatically to the title of the group copy, for example “title2”, “title3”, etc.