- WidgetHelper.add_plane_widget(callback, normal='x', origin=None, bounds=None, factor=1.25, color=None, assign_to_axis=None, tubing=False, outline_translation=False, origin_translation=True, implicit=True, pass_widget=False, test_callback=True, normal_rotation=True)¶
Add a plane widget to the scene.
This is useless without a callback function. You can pass a callable function that takes two arguments, the normal and origin of the plane in that order output from this widget, and performs a task with that plane.
The method called every time the plane is updated. Takes two arguments, the normal and origin of the plane in that order.
The starting normal vector of the plane.
The starting coordinate of the center of the place.
Length 6 tuple of the bounding box where the widget is placed.
An inflation factor to expand on the bounds when placing.
Either a string, rgb list, or hex color string.
Assign the normal of the plane to be parallel with a given axis: options are
(1, 'y'), or
When using an implicit plane wiget, this controls whether or not tubing is shown around the plane’s boundaries.
False, the plane widget cannot be translated and is strictly placed at the given bounds. Only valid when using an implicit plane.
False, the plane widget cannot be translated by its origin and is strictly placed at the given origin. Only valid when using an implicit plane.
vtkImplicitPlaneWidgetis used and when
True, the widget will be passed as the last argument of the callback.
True, run the callback function after the widget is created.
Set the opacity of the normal vector arrow to 0 such that it is effectively disabled. This prevents the user from rotating the normal. This is forced to