86. gui.menus.Tools — Menu with graphical tools for pyFormex.

This menu contains a bunch of graphical tools for pyFormex. In many cases the implementation is in the pyformex.plugins.tools module and the menu is just a convenient way to call and use that tool.

86.1. Functions defined in module gui.menus.Tools

gui.menus.Tools.labelPointsDialog()[source]

Present the dialog for labeling existing points

gui.menus.Tools.labelPoints2DDialog(default='point')[source]

Present the dialog for creating and labeling new points

This is a convenient way to set proper options for pyformex.plugins.tools.labelPoints2D(). It uses the global Labels from the Tools menu. This function is usually be called from the Tools->Query 2D menu.

gui.menus.Tools.setpropCollection(K, prop)[source]

Set the property of a collection.

prop should be a single non-negative integer value or None. If None is given, the prop attribute will be removed from the objects in collection even the non-selected items. If a selected object does not have a setProp method, it is ignored.

gui.menus.Tools.setprop_selection()[source]

Set the property of the current selection.

A property value is asked from the user and all items in the selection that have property have their value set to it.

gui.menus.Tools.focus_selection(K=None)[source]

Focus on the specified or current selection.

gui.menus.Tools.grow_selection()[source]

Show and execute the Grow selection dialog

If a current selection exists, it can be grown it the object has a growSelection method. This includes Mesh type objects. The dialogs lets the user set the frontal method: using node or edge connections and the number of steps. After growing, the new current selection is highlighted.

See also

tools.growCollection

the function used to grow the selection.

gui.menus.Tools.partition_selection()[source]

Partition the current selection and show the result.

gui.menus.Tools.get_partition()[source]

Select some partitions from the current selection and show the result.