Commit graph

337 commits

Author SHA1 Message Date
Theo
d9ac616620 [ui] Viewer2D: add option to display landmarks 2020-04-29 20:25:46 +02:00
Fabien Castan
07d78f9161 [ui] Features display with Qt >= 5.14 2020-04-29 20:25:46 +02:00
Theo
150e142f92 wip [ui] display global stats from sfm: residuals,landmarks per view 2020-04-29 20:25:46 +02:00
Theo
f07b959a2b [ui] New SfMStatsView 2020-04-29 20:25:46 +02:00
Fabien Castan
9ef6eb48fc [ui] Viewer Fisheye Circle: disable MouseArea when unused
As the events cannot be propagated all the time as needed, at least unload the MouseArea when unused so the events are propagated.
2020-03-24 21:12:37 +01:00
Fabien Castan
f19797c58f [ui] Viewer2D: fix Circle Viewer when image has an orientation 2020-03-24 16:03:01 +01:00
Fabien Castan
bb60c9b78d [ui] Add visualisation for automatically detected fisheye circle 2020-03-23 19:25:57 +01:00
Fabien Castan
b98c1e57ed [ui] Viewer2D: fisheye circle is enabled only when the option is activated 2020-03-20 17:59:32 +01:00
Fabien Castan
e88651ba01 [ui] Viewer2D: allow to change the size of the Fisheye circle with Ctrl+Wheel
* also add forceActiveFocus() to release other focus areas
2020-03-18 20:23:37 +01:00
Fabien Castan
4f443baa1e [ui] Viewer2D: fix navigation with FloatImage
The internal MouseArea in the FloatImage is used to retrieve the mouse over events but should not catch the other mouse events.
2020-03-17 20:03:01 +01:00
Fabien Castan
9843b29670 [ui] Viewer2D: ensure that featureViewerLoader is ready
FeaturesInfoOverlay relies on the FeatureViewer, so we ensure that it is loaded first.
2020-03-17 19:58:17 +01:00
Fabien Castan
1b5ba3788e [ui] force unload of features & hdr viewers
This is necessary since version 5.14 of Qt, otherwise the model is not updated and remains empty.
2020-03-17 19:55:11 +01:00
Fabien Castan
0e434908a5 [ui] improve open recent files
* fix path conversion on windows
* remove invalid paths from the list on error
* explicit error message for "No Such File"
2020-03-17 14:07:00 +01:00
Fabien Castan
dcf91c244e [nodes] PanoramaInit: fisheyeCenterOffset x/y are now 2 parameters on command line
Avoid error with negative values on "y" interpreted as a new argument
2020-03-11 12:14:09 +01:00
Grégoire De Lillo
042111671a [ui] Viewer2D: Add Fisheye Circle display on PanoramaInit node 2020-03-10 17:29:33 +01:00
Fabien Castan
1fb1304599 [ui] Viewer2D: rename ImageToolbar into HdrImageToolbar 2020-03-10 12:33:37 +01:00
Fabien Castan
57e867df66 [ui] Viewer2D: change min value of gamma in HDR Image Toolbar 2020-03-10 12:33:37 +01:00
Fabien Castan
85dd992927 [ui] Viewer2D: add MouseArea on zoom item
* reset zoom to fit image on left click
* right click menu
2020-03-10 12:11:31 +01:00
Fabien Castan
c9061f3fec [ui] Viewer2D: improve toolbar alignment/spacing
Conflicts:
	meshroom/ui/qml/Viewer/Viewer2D.qml
2020-03-10 12:10:56 +01:00
Fabien Castan
eae0f4b1f4 [ui] Viewer2D: if imageType is disabled switch back to "image" type 2020-03-10 12:09:04 +01:00
Fabien Castan
540c0d1744 [ui] Viewer2D: minor adjustments
* more explicit variable name for hdrImageToolbar
* adjust padding, so the viewer2D.bottomToolbar is aligned with the
ImageGallery toolbar
* update tooltip for HDR image viewer
2020-03-10 12:08:56 +01:00
Fabien Castan
d70c625fac [ui] Viewer2D: refactoring to simplify layouts
* fix mousearea order
* add alpha backgroud
* move HDR as a tool button

Conflicts:
	meshroom/ui/qml/Viewer/CircleGizmo.qml
	meshroom/ui/qml/Viewer/Viewer2D.qml
2020-03-10 12:08:14 +01:00
Fabien Castan
c9c24b7ff0 [ui] Viewer2D: avoid error on empty metadata 2020-03-10 12:02:48 +01:00
Fabien Castan
ac82890461 [ui] Viewer2D: simplify naming
Conflicts:
	meshroom/ui/qml/Viewer/Viewer2D.qml
2020-03-10 12:02:09 +01:00
Fabien Castan
a4b42b3347 [ui] Viewer2D: disable menu when the plugin is not available 2020-03-03 17:41:03 +01:00
Fabien Castan
302aaabd60 [ui] Viewer2D: add color picker to floating point image toolbar 2020-03-03 11:07:19 +01:00
Grégoire De Lillo
7a2fca185b [ui] Viewer2D : Add a FloatImageViewer and an ImageToolbar
Use an ImageViewerWrapper to handle the `FloatImageViewer` or the standard one.
2020-02-28 12:34:19 +01:00
Grégoire De Lillo
d21ef2e333 [ui] Add ImageToolbar component 2020-02-28 12:34:19 +01:00
Grégoire De Lillo
7a93ff3d3a [ui] Add FloatImage component 2020-02-28 12:34:19 +01:00
Fabien Castan
9bcad1ca4a [ui] Viewer2D: minor warning fixes 2020-01-27 13:16:25 +01:00
Fabien Castan
18ab1d1793 [ui] Viewer: update min values 2020-01-27 13:16:25 +01:00
Fabien Castan
dabf19dae9 [ui] Viewer: use RowLayout instead of manual relative sizes 2020-01-27 13:16:24 +01:00
Fabien Castan
fcdb3721c3 [ui] Viewer: use flat combobox for better integration in the Viewer 2020-01-27 13:16:24 +01:00
Fabien Castan
9c70ce5693 remove trailing comments 2020-01-27 13:16:24 +01:00
Fabien Castan
8fd7071787 [ui] Viewer: use label for DepthMap node instead of name 2020-01-27 13:16:23 +01:00
Fabien Castan
7bea135993 [ui] viewer: move depthmap to 3D to the right and remove "Map" from combobox 2020-01-27 13:16:22 +01:00
ChemicalXandco
5c279f3584 use Filepath.stringToUrl instead of "file:///"+ 2020-01-27 13:16:22 +01:00
ChemicalXandco
4ddd25fb73 use getImageFile function to set image source 2020-01-27 13:16:22 +01:00
ChemicalXandco
b2db142cc2 add button on 2D Viewer to view depth maps in the 3D Viewer 2020-01-27 13:16:21 +01:00
ChemicalXandco
5652770a42 add ComboBox to select depth map file 2020-01-27 13:16:21 +01:00
Yann Lanthony
f5607cb127
[ui] downgrade QtQuick import version for retro-compatibility 2019-07-24 18:13:23 +02:00
Yann Lanthony
4563d32e3e
[ui] Viewer2D: add FeaturesViewer + dedicated overlay
Make FeaturesViewer available in Viewer2D to display the feature points of the current view, based on the current FeatureExtraction node.

* FeaturesInfoOverlay: overlay that displays info and provides controls over a FeaturesViewer component.
* ColorChart: color picker based on a set of predefined colors.
2019-07-04 18:25:02 +02:00
Yann Lanthony
8dd0a4be22
[ui] New FeaturesViewer component
FeaturesViewer wraps QtAliceVision plugin's FeaturesViewer component to display the extracted feature points of a View.
2019-07-04 17:51:44 +02:00
Yann Lanthony
b46a2dbba1 [ui] Controls: add SearchBar component + better keyboard focus handling
* use it in MetadataListView and GraphEditor 'add Node' menu
* GraphEditor: forward MenuItem key events to searchBar to be able to continue editing the filter even if it lost active focus
2019-01-07 16:48:17 +01:00
Yann Lanthony
7415c1d391 [ui] split 2D and 3D viewers into separate modules
+ remove historical MayaCameraController
2018-11-23 14:26:57 +01:00
Yann Lanthony
c0c28b5dcf [ui] Viewer3D: minor fixes
* remove unneeded hack to clear the SceneLoader
* don't display sfm checkbox if alembicPlugin is not available
2018-08-03 17:24:04 +02:00
Fabien Castan
44e34d7eb3 [ui] use shift to pan (instead of Ctrl) 2018-08-03 14:38:08 +02:00
Fabien Castan
10026e3281 [ui] mouse: add "Ctrl+Left click" as an alternative to Middle click 2018-07-21 14:54:28 +02:00
Yann Lanthony
2f2390e465 [ui] fix Palette propagation
* bugfix: in latest PySide2 versions, application palette is not properly applied to all QtQuick Controls 2 components. Force this by exposing QApplication palette and bind it to the root ApplicationWindow.
* rename all "palette" ids to "activePalette" to avoid clashes with "palette" property on QtQuick Controls 2
* use parent component palette when it makes sense to propagate active/disabled style (instead of always using Active SystemPalette)
2018-05-28 15:30:09 +02:00
Yann Lanthony
f87024b0c5 [ui] highlight selected view in 3D + 3D picking
Spawn a cube on each camera to display which one is selected + allow picking from the 3D view
2018-04-21 13:14:29 +02:00