Drawing Operator

The following Operator inherits the individual manipulation of the detected contours according to the specific requirements.

../../_images/functionality_drawing.png

The following image visualizes an exemplary usage of the operators’ functionality:

../../_images/example_drawing.png

Dockwidget functionalities

The dockwidget inherits the adaption of the vector graphic by changing the vector representation according to the requirements.
Aligned with the safety regulations defined in the detect operator, the drawing operator inherits the functionality of overriding the current graphic which the operator currently contains or adding the newly detected contours to the existing graphics view.

To provide an overview of the total amount of contours, a menu containing the contour’s IDs is provided, including multiple functionalities according to the visualization scenarios, like Show all, Invert visibility, Hide all, and Select all. For further declaration, see the following section Toolbar functionalities.

../../_images/dockwidget_drawing.png

By toggling the On/Off Checkbox, the modifications of this Operator can be hidden for other upcoming operations.

Toolbar functionalities

The drawing menu provides a variety of additional functions to manipulate the appearance of the contour during vector processing. The following table provides an overview of the additional functions available within the drawing menu.

Icon

Action

Description

../../_images/plus.png

Add point

Adds a point on the selected element (line) in the contour.
Single selection: The new point will be set on the mouse position, where the element was selected before.
Multi selection: Selects multiple elements within the same contour or in several contours add the points centered on the line elements each.
../../_images/minus.png

Delete point

Deletes a selected point from the contour.
Single selection: -
Multi selection: -
../../_images/selectAllContours.png

Select all Contours

Selects all available Contours in the current view. Independent from previous selection.
Single selection: -
Multi selection: -
../../_images/selectContour.png

Select Contour

Selects whole contour depending on selected elements.
Single selection: -
Multi selection: Selects even multiple contours by selecting elements from different origins.
../../_images/isolate.png

Isolate Contour

Isolates the contour and hides every other contour, which contains no selected element.
Single selection: -
Multi selection: Isolates even multiple contours by selecting elements from different origins.
../../_images/hideContour.png

Hide Contour

Hides the contour, which contains selected elements.
Single selection: -
Multi selection: Hides even multiple contours by selecting elements from different origins.
../../_images/invertVisible.png

Invert visibility of all Contours

Changes visibility status of each contour (From visible to hidden and vice versa). Independent from previous selection.
Single selection: -
Multi selection: -
../../_images/showContourAll.png

Show all Contours

Show all available Contours in the current view. Independent from previous selection.
Single selection: -
Multi selection: -
../../_images/hideContourAll.png

Hide all Contours

Hide all available Contours in the current view. Independent from previous selection.
Single selection: -
Multi selection: -
../../_images/rotationContour.png

Rotate Contour

Rotates all selected elements in the current view. Can be further specified by a degree input (degree dimension).
Single selection: The rotate axis is the center of the element itself.
Multi selection: The rotate axis is defined by the total center of all selected elements combined.
../../_images/scaleContour.png

Scale Contour

Scales all selected elements in the current view according to the following scale factor input.
Single selection: -
Multi selection: -
../../_images/mirrorHorizontal.png

Mirror Contour horizontally

Mirrors all selected elements in the current view horizontally.
Single selection: The mirror axis is the center of the element itself.
Multi selection: The mirror axis is defined by the total center of all selected elements combined.
../../_images/mirrorVertical.png

Mirror Contour vertically

Mirrors all selected elements in the current view horizontally.
Single selection: The mirror axis is the center of the element itself.
Multi selection: The mirror axis is defined by the total center of all selected elements combined.
../../_images/colorContour.png

Change Contour color

Sets color of whole contour depending on selected elements.
Single selection: -
Multi selection: -
../../_images/lineContour.png

Change Contour line thickness

Sets line thickness of whole contour depending on selected elements.
Single selection: -
Multi selection: -
../../_images/splineShapeControl.png

Change Spline shape

Only available if Contour is Spline! Sets the spline curve length depending on selected elements.
Single selection: -
Multi selection: -
../../_images/offset.png

Offset Contour

Creates an offset of all contours with selected elements. Visualized by a new Contour appearing in the view.
Single selection: -
Multi selection: -
../../_images/duplicateContour.png

Duplicate Contour

Duplicates all contours with selected elements. Visualized by a new Contour appearing in the view with a small position-offset.
Single selection: -
Multi selection: -
../../_images/deleteContour.png

Delete Contour

Deletes all contours which contain selected elements.
Single selection: -
Multi selection: -
../../_images/transformSpline.png

Transform to Spline

Transforms all contours that contain selected elements from a polygon to a spline.
Single selection: -
Multi selection: -
../../_images/transformPolygon.png

Transform to Polygon

Transforms all contours that contain selected elements from a spline to a polygon.
Single selection: -
Multi selection: -