-
-
Notifications
You must be signed in to change notification settings - Fork 982
Model Designer updates plus text colors #10787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
fdf7a50
d66a00b
e3b3ac6
ad42bd1
f3928f4
5e38721
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -198,6 +198,12 @@ View menu | |
| - | ||
| - | ||
| - Displays comments associated to every algorithm or input in the model designer | ||
| * - |checkbox| :guilabel:`Show Feature Count` | ||
| - | ||
| - | ||
| - Displays the number of features on the links between algorithms, | ||
| for vector layer connections. The model must be run at least once | ||
| to populate the feature counts. | ||
| * - |unchecked| :guilabel:`Enable Snapping` | ||
| - | ||
| - | ||
|
|
@@ -436,13 +442,70 @@ A visual edge follows the cursor and completes the connection when released. | |
| To remove a connection, drag the edge away from the input socket. | ||
| The algorithm dialogs update automatically to reflect changes made using the drag-and-drop interface. | ||
|
|
||
| In the model designer, input and output sockets are color-coded to indicate | ||
| the type of data they accept or produce. The same color coding applies to | ||
| rubber bands and parameter bullets on the canvas. | ||
| The color is a visual aid only; compatibility between sockets is determined | ||
| by the parameter type. | ||
|
|
||
| The following table describes the meaning of each socket color. | ||
|
|
||
| .. list-table:: | ||
| :header-rows: 1 | ||
| :widths: 25 35 40 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unless there was already an order I didn't get, what about trying to sort the table to put close items closer, i.e. number-> text -> boolean -> enum -> vector -> raster -> file type -> others. We can also start with (boolean -> enum). Feel free to adjust suggestion.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I set the same order as in the issue report, but yes it makes sense to reorder it.. |
||
|
|
||
| * - Socket color | ||
| - Data type category | ||
| - Description | ||
| * - :green:`Green` | ||
| - Boolean | ||
| - ``True`` / ``False`` values. | ||
| * - :purple:`Purple` | ||
| - Enumerations | ||
| - Predefined selectable values (enum parameters). The selected value is | ||
| shown using its descriptive label rather than its numeric index. | ||
| * - :blue:`Blue` | ||
| - Numerical types | ||
| - Numbers, matrices, vectors, distances, durations, and other numeric values. | ||
| * - :slate:`Slate blue` | ||
| - Textual types | ||
| - Strings, dates, coordinate reference systems (CRS), HTML content, and other text-based values. | ||
| * - :kaki:`Kaki` | ||
| - Vector and geometry types | ||
| - Vector geometries and vector layers, including meshes, point clouds, extents, vector tiles, and any object containing geometry. | ||
| * - :turquoise:`Turquoise` | ||
| - Raster types | ||
| - Raster images and raster layers. | ||
| * - :darkgray:`Dark gray` | ||
| - File system types | ||
| - File and directory paths. | ||
| * - :midgray:`Mid gray` | ||
| - Other types | ||
| - Parameters that do not fit into the above categories. | ||
|
|
||
| Sockets can only be connected when their data types are compatible. | ||
| Parameter bullets use the same color coding as sockets: a bullet is outlined | ||
| when the parameter holds its default value, and filled when a non-default value | ||
| is set or a parameter box is connected. The label of each parameter is followed | ||
| by its current value, which updates immediately as values are changed or | ||
| parameter boxes are connected. | ||
|
|
||
| When a parameter box is unfolded, its output section also shows the data type | ||
| and current value being passed downstream. | ||
|
|
||
| .. _figure_model_model: | ||
|
|
||
| .. figure:: img/models_model.png | ||
| :align: center | ||
|
|
||
| A complete model | ||
|
|
||
| The model designer can display the number of features flowing through | ||
| the connections between algorithms. Feature counts are shown on the links | ||
| between algorithm inputs and outputs, and apply to vector layers only. | ||
| The model must be run at least once before feature counts can be displayed. | ||
| Feature counts can be toggled on or off via :menuselection:`View --> Show Feature Count`. | ||
|
|
||
| With the :menuselection:`Edit --> Add Group Box` tool, you can add a draggable | ||
| *box* to the canvas. This feature is very | ||
| useful in big models to group related elements in the modeler canvas and to keep the | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if there is a dedicated issue report for this or if it has already been described, but the docked panel on the right showing properties of the selected parameter seems to be a recent feature. Mind checking if it is documented, please? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to address this in the another PR (related to #10814 )