Commit graph

487 commits

Author SHA1 Message Date
Candice Bentéjac
1fbcdbb734 [Viewer] SfmStats: Add missing imports to load widgets correctly 2024-11-25 15:02:37 +01:00
Grégoire De Lillo
39b7dfd512 [ui] Viewer: Add PhongImageViewer and toolbars to Viewer2D 2024-11-14 10:49:56 +00:00
Grégoire De Lillo
b6b9d1b34f [ui] Viewer: Add PhongImageViewer component 2024-11-14 10:49:56 +00:00
Grégoire De Lillo
765a1f96d5 [ui] Viewer: Add PhongImageViewerToolbar component 2024-11-14 10:49:56 +00:00
Candice Bentéjac
65a014d9b1 [qt6][Viewer] Viewer2D: Fix fit() with the Sequence Player
With the Sequence Player always enabled by default, the `fit()` function
must be triggered at the right moment, and only once the layout has
been correctly initialized; otherwise, zoom factors may become negative
and the images will not be placed correctly in the viewer.

Changes in the orientation tag must be handled independently from the
state of the zoom factor.
2024-11-13 18:48:07 +01:00
Candice Bentéjac
36f7f4e420 [qt6][Viewer] Viewer2D: Fix automatic fitting for missing orientation tags 2024-11-07 18:19:08 +01:00
Fabien Servant
d4eb365ada [qt6][Viewer] Fix zoom in 8bits viewer 2024-11-07 18:15:45 +01:00
Candice Bentéjac
5a0b1c0c95 [qt6][qml] Clean-up code and harmonize comments 2024-11-07 18:15:37 +01:00
Candice Bentéjac
b12d1fed06 [qt6][qml] Remove unnecessary module imports 2024-11-07 18:13:36 +01:00
Candice Bentéjac
49a3fcb72f [qt6][Viewer] Viewer2D: Remove outdated sfmRequired property 2024-11-07 18:13:31 +01:00
Candice Bentéjac
9fb8ea83fb [qt6][Viewer] Fix display of metadata 2024-11-07 18:13:24 +01:00
Candice Bentéjac
77bd2a7145 [qt6][Viewer] Viewer2D: Trigger auto-fit() on correct events
The fit must be automatically triggered when the size of the image
changes. In case the image size remains the same but the orientation tag
is updated, this means that the displayed size of the image has changed
(with the orientation taken into account, the width and height might end
up being inverted), so the fit should also be triggered.
2024-11-07 18:12:59 +01:00
Candice Bentéjac
3ff279d99a [qt6] Use JS functions format to declare explicit parameters in slots 2024-11-07 18:09:10 +01:00
Candice Bentéjac
0e71f2a520 [qt6] Update versions for all the imported modules
Qt3D.Extras cannot be updated to 2.6 yet, otherwise there are errors.
2024-11-07 18:09:01 +01:00
Candice Bentéjac
6d845376eb [qt6] Use JS functions format to declare explicit parameters in slots
This fixes all the "Injection of parameters into signal handlers
is deprecated. Use JavaScript functions with formal parameters instead."
warnings.
2024-11-07 18:08:59 +01:00
Candice Bentéjac
1b9e75cd4f [qt6] Replace Qt.labs.settings with QtCore.Settings 2024-11-07 18:08:58 +01:00
Fabien Servant
457b640002 enable sequence player by default 2024-11-04 15:27:33 +01:00
Fabien Servant
eef1e6414e if player is at the end go back to 0 on play 2024-11-04 15:27:33 +01:00
Fabien Servant
11c28cb979 use scale instead of targetSize 2024-11-04 15:27:32 +01:00
Candice Bentéjac
b02a0eef88 [Viewer] SequencePlayer: Prevent null accesses
When the SequencePlayer isn't available (when QtAliceVision has not been
loaded), the `viewer` element is null. All accesses to properties of this
object should thus be prevented.
2024-10-15 16:05:40 +02:00
Fabien Castan
4502e98a4c
Merge pull request #2243 from alicevision/dev/ps_sh
[Photometric Stereo] MultiView fusion in Texturing
2024-09-06 22:03:39 +02:00
Fabien Castan
48d08b1f88 [ui] GraphEditor: improve alignments
Reduce usage of anchors (except centerIn/fill).
Display of Next/Previous for IntSelector.
2024-09-02 17:08:02 +02:00
Aurore LAFAURIE
019e137386 [ui/core] First version of For Loop implementation
If you connect a list to an attribute, you can iterate over the list as a for loop
2024-09-02 17:08:01 +02:00
Fabien Castan
cf24a66f3d [ui] SphereDetection: output is now directly the filepath 2024-08-26 15:41:46 +02:00
Fabien Castan
5ca38189ac fix missing frameRange update for sequence use case 2024-08-19 19:39:44 +02:00
Fabien Castan
15c1ce16b5 [ui] Improve sequence display
- allows multiple "*" in the files search expression
- fix a bug if we only provide a folder
- keep the current frame if the frame range has not changed
2024-08-16 17:22:21 +02:00
Candice Bentéjac
a2b4974429 [Viewer] Update error values for QtAV's EStatus enum 2024-08-02 16:37:53 +02:00
Aurore LAFAURIE
2d9a03fb3b [Viewer2D] Only reset index of currentFrame if the currentFrame is after max of frameRange 2024-07-26 12:12:31 +02:00
Aurore LAFAURIE
d52ad9ad8d [Viewer] Current frame for Sequence should not be set during changes of Image Gallery 2024-07-19 17:30:55 +02:00
Candice Bentéjac
f53dbf6a01
Merge pull request #2463 from alicevision/fix/envVarSequencePlayer
[ui] Add MESHROOM_USE_SEQUENCE_PLAYER environment variable
2024-07-15 16:59:23 +02:00
Aurore LAFAURIE
3c5e1ad273 [ui] Format GB to string for occupied cache size 2024-07-11 17:06:47 +02:00
Aurore LAFAURIE
ac7aeddb45 [ui] Clean up for displayedAttr use instead 2024-07-11 14:33:30 +02:00
Aurore LAFAURIE
a5d5c947db [ui] Text Area selectable for FPS and frame number 2024-07-11 14:33:29 +02:00
Aurore LAFAURIE
a43117b298 [ui] Add MESHROOM_USE_SEQUENCE_PLAYER environment variable 2024-07-09 16:31:11 +02:00
Candice Bentéjac
42157809b9 [Viewer] SequencePlayer: Clean-up: Harmonize syntax 2024-06-28 12:33:33 +02:00
Candice Bentéjac
0e06ae8747 [Viewer] SequencePlayer: Fix QML errors when accessing undefined objects 2024-06-28 12:33:32 +02:00
Candice Bentéjac
9af65092b9 [Viewer] Clean-up: Harmonize syntax for the Viewer2D 2024-06-27 17:28:26 +02:00
Candice Bentéjac
cfb44d8b54 [ui] Add currentViewPath property
Add a property that contains the path of the image that is currently
displayed in the viewer. If no image is displayed, the property is set
with an empty string.

The path information is set directly from the Viewer2D when an image is
loaded to be displayed.
2024-06-27 17:28:25 +02:00
Aurore LAFAURIE
5a8ceaf287 [ui] Removal of getAttributeByName in Viewer2D 2024-06-20 11:54:31 +02:00
Aurore LAFAURIE
d738f4adac [ui] Sequence with missing files displayable and switching if displayed attribute changed 2024-06-20 11:54:31 +02:00
Aurore LAFAURIE
cc2099534b [ui] Use of pyseq for getting sequences
[ui] To squash
2024-06-20 11:54:30 +02:00
Aurore LAFAURIE
1168ccaacb [ui] Resolve Sequence and ImageList on Python side 2024-06-20 11:54:30 +02:00
Aurore LAFAURIE
4590868317 [ui] Support for imageList and sequence in SequencePlayer 2024-06-20 11:54:30 +02:00
Aurore LAFAURIE
6e89cb68f6 [Viewer] Fix of side effects from output sequence in SequencePlayer
Unsync 3D Viewer and SequencePlayer if it is output sequence and set to 0 the frame displayed when changing sequence
2024-06-20 11:54:29 +02:00
Aurore LAFAURIE
b0063b0dde [ui] Load image sequence from node output in SequencePlayer 2024-06-20 11:54:29 +02:00
Aurore LAFAURIE
a113898773 [ui] No update of gallery while jogging in SequencePlayer timeline 2024-06-19 17:52:25 +02:00
Aurore LAFAURIE
90fd95320a [SequencePlayer] Max Cache Memory as setting and sync with 3D viewer by default 2024-06-19 17:20:11 +02:00
Aurore LAFAURIE
74e0e029c9 [ui] SequencePlayer cache setter, Stats layout, UI improvements
Stats Popup containing max cache size setter, synchronization options, and cache informations
2024-06-19 17:20:11 +02:00
Aurore LAFAURIE
a60dc8a5e2 [ui] Max available memory exposed for Sequence Player 2024-06-19 17:20:11 +02:00
Aurore LAFAURIE
277b9643b0 [ui] Fetch on play in Sequence Player 2024-06-19 17:20:11 +02:00