This is a small yet handy dockable widget. It is focused on two major functions:
- Displaying properties of selected entity in quick manner;
- Collection of arbitrary coordinates picked from drawing.
Thus, the widget operates in two modes.
Small demo clip that illustrates the widget functions is located there: https://youtu.be/H06BQGNLBQ4
There are several common operations for both modes:
- Clearing displayed content;
- Copying displayed content to clipboard.
- Setting relative zero for coordinate value
- Highlighting points with specific displayed coordinate in drawing;
- Support of various coordinates modes;
- Support of context popup menu on view widget by right mouse button (additional menu items are shown if menu is invoked on link).
This mode of widget is used for displaying the set of properties for selected entity.
Properties are shown to one entity only. Entity may be selected either (according to setting):
- If no specific action is in progress (so default action is executed) - just as entity under mouse cursor;
- For entity under cursor in default action if CTRL/META key is pressed together with mouse move;
- By explicit selection via action provided by the widget.
Supported way of entity's selection is controlled by appropriate settings.
As soon as the entity is selected, the widget displays set of entity properties.
The list of properties depends on type of selected entity.
Using options, it is possible to define whether:
- Entity boundaries (minV, MaxV) should be shown;
- For polyline entity - whether detailed information about polyline segments (lines and arc) should be shown in addition to vertexes.
Property values that represent coordinates may be used for setting new position of relative zero.
Also, it is possible to insert coordinates and single values of properties to input control of Cmd widget.
Additional operations:
- Selection of entity that is used for displaying properties in drawing.
- Invocation of Edit Properties dialog for selected entities.
For the entity, all relevant coordinates may be shown either as:
- absolute ones
- relative to relative zero point.
In some cases, displayed properties of entity may be outdated. The most possible reason for this - editing of entity via different operations. So far internal technical implementation does various operations on individual actions level, therefore it is technically challenged to insure proper realtime refreshing entity properties.
Therefore, in order to see the actual properties of entities after editing operations, it better to select respecting entity again.
This mode of the widget allows to pick the set of coordinates from the drawing for later use.
Coordinates selection is performed via appropriate action invoked from the widget interface. For picking the coordinate, the user should do mouse click in specific location.
Actually picked coordinate is extracted according to currently used snap mode.
If SHIFT key is pressed, FREE snap is used.
This mode, the widget displays zero point (that depends on used coordinates mode) and the list of picked coordinates. Also, the total length of path between selected points is displayed.
Based on settings, the list of coordinates may also include distance and angle from zero point to each picked coordinate.
In addition to picking specific coordinate, the following operations are supported:
- Copying all displayed content to the clipboard;
- Removing specific coordinate (available via popup content menu);
- Inserting coordinate in specific position of the list (available via popup content menu);
- Highlighting coordinate on drawing;
- Setting relative zero point in specific coordinate.
For coordinates mode, collected coordinates may be displayed in several ways, as:
- Absolute coordinates;
- Relative coordinates to relative zero point;
- Relative coordinates to first picked point in the list;
- Relative coordinate to previous picked point in the list.
Using settings, it is possible to control:
- Integration of the widget with default action and entity selection way;
- Entity display options (boundary coordinates, polyline details)
- Displaying distance/angel for collected points;
- Preview for collected point;
- Pen used for highlighting coordinate values.
At the moment, the content is copied to the clipboard in the same format as it is displayed by the widget. However, if it will be useful, support of additional formats (csv, xml etc.) may be added (as well as support of saving it to some file).