Commit graph

2540 commits

Author SHA1 Message Date
Loïc Vital
a94be6c6a0 [nodes] update desc for nodes in panoramaHDR pipeline to visualize their output 2022-10-19 09:50:17 +01:00
Loïc Vital
a36abd99a6 [ui] disable outputAttributes ComboBox when it is empty 2022-10-19 09:50:17 +01:00
Loïc Vital
400c68a40a [ui] do nothing when double clicking attribute 2022-10-19 09:50:16 +01:00
Loïc Vital
8abe45da51 [ui] update outputAttributes when displayedNode is undefined 2022-10-19 09:50:15 +01:00
Loïc Vital
6b7d4d66a8 [ui] prevent loading image output attributes in 3D viewer 2022-10-19 09:50:15 +01:00
Loïc Vital
44c0086f40 [ui] always enable outputAttribute ComboBox 2022-10-19 09:50:14 +01:00
Loïc Vital
f899e24bd6 [ui] replaced depthMapNodeName Label with displayedNodeName Label 2022-10-19 09:50:14 +01:00
Loïc Vital
b1a800d4fc [ui] fix outputAttribute.name property updating 2022-10-19 09:50:13 +01:00
Loïc Vital
9de858efe4 [ui] minor code cleanup 2022-10-19 09:50:13 +01:00
Loïc Vital
f90942bd2d [ui] only load in 2D viewer nodes that output images 2022-10-19 09:50:12 +01:00
Loïc Vital
f1c6b48324 [ui] ensure viewpoints are always accessible in 2D viewer using combobox 2022-10-19 09:50:12 +01:00
Loïc Vital
4e19cf44b9 [ui] update selected view from grid when using keys 2022-10-19 09:50:10 +01:00
Loïc Vital
592dc1121e [ui] check node is computed or running before loading in viewer2D 2022-10-19 09:50:10 +01:00
Loïc Vital
e35c5a7299 [ui] adapt combobox width to contained attr names 2022-10-19 09:50:09 +01:00
Loïc Vital
22226d5cdb applied visualization workflow to PrepareDenseScene 2022-10-19 09:50:09 +01:00
Loïc Vital
b4f0b5377e added some comments 2022-10-19 09:50:08 +01:00
Loïc Vital
a574c0fc9b use semantic field in file attributes to specify images and store displayed node in 2D viewer to adapt UI 2022-10-19 09:50:08 +01:00
Loïc Vital
fc5ab540f5 added outputImageTypes in node desc to update the viewer2D imageType combo box when double clicking a node 2022-10-19 09:50:07 +01:00
Fabien Castan
ab0e132121
Merge pull request #1787 from alicevision/dev/lv/colorLog
[ui] Elapsed time indicators in log
2022-10-12 09:53:56 +02:00
Fabien Castan
3a40a3f2f1 [ui] utils: update duration color scale 2022-10-12 08:48:50 +01:00
Loïc Vital
24f31213cd [ui] use grey-green-yellow-red for duration color scale 2022-10-11 11:46:32 +02:00
Fabien Castan
7382511417
Merge pull request #1788 from alicevision/dev/centerCopyPasteNodes
[ui] Paste nodes at the center of the Graph Editor when it does not contain the mouse
2022-10-10 20:46:28 +02:00
Fabien Castan
33e3ba5413
Merge pull request #1790 from alicevision/dev/updateTemplates
[pipelines] Update CameraInit version from 7.0 to 8.0 in templates
2022-10-10 09:42:07 +02:00
Loïc Vital
3a654ca8f8 minor correction for improving quality in static code analysis 2022-10-04 17:05:22 +02:00
Loïc Vital
6250190519 [ui] default value for undefined log-line to remove qml warnings 2022-10-04 11:06:04 +02:00
Loïc Vital
3e2478bd24 [ui] show tooltip when hovering over line number or color bar 2022-10-04 10:54:00 +02:00
Loïc Vital
f4b8cb080d [ui] interpolated color scale from grey to red 2022-10-03 17:55:28 +02:00
Loïc Vital
5b973cb349 [ui] using coherent format for elapsed time 2022-10-03 16:26:57 +02:00
Loïc Vital
c2f8c0f97a [ui] color bar fills line heigt 2022-10-03 16:11:08 +02:00
Candice Bentéjac
4fe1ad1eef [pipelines] Update CameraInit version from 7.0 to 8.0 in templates 2022-10-03 15:05:09 +02:00
Candice Bentéjac
021770a424 [ui] Center pasted nodes in GraphEditor when it does not contain the mouse
When using the Edit > Paste menu, or when pressing Ctrl+V while the Graph
Editor has the focus but the mouse is not contained in it, there is no
current mouse position in the GraphEditor so the position that is provided
to the "pasteNodes" function is the last known mouse position, which is
oftentimes on the border of the GraphEditor.

This commit automatically sets the mouse's position to the center of
the GraphEditor, and "builds" the zone containing the pasted nodes around
it.
2022-10-03 11:13:52 +02:00
Loïc Vital
d4bdbeef12 [ui] some comments 2022-09-30 12:24:02 +02:00
Loïc Vital
627664e167 [ui] add tooltip on lineNumber Labels to show elapsed time 2022-09-30 11:59:40 +02:00
Loïc Vital
e7c84b9483 [ui] use ListModel for storing log-line and duration to avoid evaluation order issues 2022-09-30 11:06:41 +02:00
Fabien Castan
243c278bcc
Merge pull request #1778 from alicevision/dev/lv/useLastPathForOpenSave
Use most recent project as base folder for file dialogs
2022-09-28 23:06:54 +02:00
Fabien Castan
5079bba633
Merge pull request #1782 from alicevision/fix/copyPasteGraphEditor
[ui] Restrain the "copy/paste nodes" shortcuts to the GraphEditor
2022-09-28 23:01:22 +02:00
Fabien Castan
79e8202d88
Merge pull request #1784 from alicevision/fix/uidNodes
Fix and prevent mismatches between an attribute's type and its default value's type
2022-09-28 22:58:20 +02:00
Candice Bentéjac
1275975c6a [core] Check that ranges of a node's attributes are valid before loading it
For IntParam and FloatParam, which may have ranges, check before loading
the node that the non-null ranges are of the same type as the attribute.
If at least a range is not correct (e.g. "(0, 10, 0.1)" for a FloatParam,
for which "(0.0, 10.0, 0.1)" is expected), then the node is rejected (in
the same manner as when a default value is deemed invalid).
2022-09-28 10:47:00 +02:00
Candice Bentéjac
e7290313bf [nodes] Align FloatParams' and IntParams' ranges with their params' type 2022-09-28 10:41:39 +02:00
Candice Bentéjac
545f3a7218 [core] Check that the description of a node is correct before loading it
At Meshroom's launch, check that every node we attempt to load has a
valid description, i.e. that every parameter has a default value that
matches its parameter's type.

If there is at least one parameter with an incorrect default value,
the node is not loaded and a corresponding message will be displayed.

This prevents the user from loading erroneous nodes that may lead to
unexpected behaviours (such as a change of a node's UID between the
moment when it is written and the moment it is loaded).
2022-09-28 10:39:18 +02:00
Loïc Vital
7b286ff901 [ui] parse log lines to find duration when possible and color line number accordingly 2022-09-27 18:21:18 +02:00
Fabien Castan
77a9796ca3
Merge pull request #1783 from alicevision/dev/ionbuild
add a script to launch meshroom under ion environment
2022-09-27 17:00:46 +02:00
Candice Bentéjac
5b45182bcb [tests] Check that UIDs are identical when writing and loading a graph 2022-09-26 18:18:14 +02:00
Candice Bentéjac
1a63a5f819 [nodes] Align all nodes' default values with their params' type
Fix default values for:
- DepthMap: refineSigma (FloatParam); use float instead of int
- ImageMasking: hsvMaxSaturation (FloatParam); use float instead
of int
- ImageMasking: hsvMaxValue (FloatParam); use float instead of
int
- Meshing: estimateSpaceMinObservationAngle (FloatParam); use
float instead of int
- PanoramaInit: yawCW (BoolParam); use bool instead of int
2022-09-26 18:11:02 +02:00
Candice Bentéjac
83f1876e2c [nodes] CameraInit: set float default values for FloatParams
Fix the parameters with default values that do not correspond to
the parameters' types. For CameraInit, all the default values of
FloatParams that are set with integers are replaced with actual
float values.

These default values with an erroneous type would cause changes
in the CameraInit's UID when the intrinsics' default values were
written (with values of the correct type) and when they were
loaded (with values of the wrong type).
2022-09-26 17:48:57 +02:00
Candice Bentéjac
58784fb6ff [ui] Restrain the "copy/paste nodes" shortcuts to the GraphEditor
If a Ctrl+C or Ctrl+V shortcut is performed outside the GraphEditor,
the performed action should not be a copy or a paste of the nodes, but
the own copy/paste of the current element (e.g. if a Ctrl+C is made on
on the NodeEditor, then the copied element should be the one selected
in the NodeEditor, not the currently selected node).
2022-09-26 09:56:28 +02:00
Fabien Servant
06aa16243d [ION] wrong variable in script 2022-09-26 08:42:19 +01:00
Fabien Servant
595bf4aa1b [ION] adding qt plugin path 2022-09-26 08:39:59 +01:00
Fabien Castan
0f5ffd7d7c
Merge pull request #1777 from alicevision/fix/templateSaving
[core] Set the "template" flag to "false" when saving a project as a regular file
2022-09-24 00:21:10 +02:00
Loïc Vital
d0fcb67d1c [ui] rename Import Scene to Import Project for coherent naming 2022-09-23 11:22:36 +02:00