Commit graph

1130 commits

Author SHA1 Message Date
Matthieu Hog
5172f5190a added semantic logic to display multiple 3d objects
fixed pyhon case in boolean
2024-02-14 12:17:31 +01:00
Matthieu Hog
bd21a977b2 added ply to list of supported files 2024-02-13 10:27:57 +01:00
Candice Bentéjac
0d24c1eabf
Merge pull request #2282 from alicevision/fix/crfGraph
Use the correct response file to display the graph of the Camera Response Function
2024-01-03 11:36:45 +01:00
Candice Bentéjac
8bb0b546be [Viewer] Provide a resolved response file path to Camera Response Graph
Instead of providing the `LdrToHdrCalibration` node to the Camera Response
Graph and retrieving the path of the response file within the widget,
retrieve the path and resolve it before activating the Camera Response
Graph component.
2023-12-21 16:24:01 +01:00
Candice Bentéjac
6c723df0f5 [Viewer] Viewer2D: Fix check on image status to display the loading icon 2023-12-21 10:33:33 +01:00
Candice Bentéjac
c87e279ee7 [Viewer] Viewer2D: Fix check on image status for the Color Checker Viewer 2023-12-20 18:47:05 +01:00
Candice Bentéjac
d4addec996 [Viewer] Viewer2D: Fix check on image status for the resolution display 2023-12-20 18:03:11 +01:00
Candice Bentéjac
9c99efb3e4 [Viewer] SequencePlayer: Fix check on the image status for SequencePlayer 2023-12-20 18:02:07 +01:00
Candice Bentéjac
5600c58e8f [Viewer] Viewer2D: Fix QML warnings related to FloatImageViewer's status 2023-12-20 17:39:48 +01:00
Candice Bentéjac
181a68cdb8 [Viewer] Viewer2D: Use newest MaterialIcon for the PanoramaViewer 2023-12-20 17:33:23 +01:00
Candice Bentéjac
2d60ce4f5e [Viewer] PanoramaViewer: Fix check on the image status for the pano viewer 2023-12-20 17:32:58 +01:00
Candice Bentéjac
ea8fbf8b2e [Viewer] Viewer2D: Fix check on the image status for the color picker 2023-12-20 16:54:28 +01:00
Fabien Castan
342367ddd8 fix duplicated icon 2023-12-20 14:42:05 +01:00
Fabien Castan
17a5f65b71
Merge pull request #2247 from alicevision/dev/updateMaterialIcons
[MaterialIcons] Add script to generate the list of available MaterialIcons and update it
2023-12-20 09:39:07 +01:00
Fabien Castan
c98e4a12c8
Add path to MaterialIcons codepoints file 2023-12-20 09:36:14 +01:00
Candice Bentéjac
64c56e0a73 [Viewer] Display error labels when an image cannot be loaded
Based on QtAliceVision's global status for the FloatImageViewer, display
a specific label when an error has been encountered. The content of the
label depends on the type of the error.
2023-12-14 10:56:33 +00:00
Candice Bentéjac
0fcbbbcd3c [MaterialIcons] Update list of available MaterialIcons 2023-12-11 16:49:10 +01:00
Candice Bentéjac
4668c77477 [MaterialIcons] Add script to parse codepoints and generate the QML file 2023-12-11 16:49:10 +01:00
Candice Bentéjac
7d0ff8ccbb [Viewer3D] SfmDataLoader: Add comment to explain magic number 2023-11-21 15:58:23 +01:00
Candice Bentéjac
e0ebf1446d [Viewer3D] MediaLoader: Bind the display status of the resection ID slider 2023-11-21 14:44:55 +01:00
Candice Bentéjac
e4d0243e3c [Viewer3D] Connect any change of the selected view ID to the SfmDataLoader 2023-11-17 11:36:16 +01:00
Candice Bentéjac
a579ea349d [Viewer3D] Inspector3D: Update resection ID slider upon any index update 2023-11-16 15:16:22 +01:00
Candice Bentéjac
45b267a49b [Viewer3D] Inspector3D: Replace resectionID-related labels with ToolLabels 2023-11-07 17:00:59 +01:00
Candice Bentéjac
45f857c183 [MaterialIcons] Add auto_awesome_motion icon 2023-11-07 16:45:40 +01:00
Candice Bentéjac
3d67f83090 [Viewer3D] Display resection IDs of the active 3D model
Instead of displaying the resection IDs of the 3D model that was loaded
last, update the display whenever the active model selection changes.
2023-11-07 16:45:40 +01:00
Candice Bentéjac
c8ac11ca05 [Viewer3D] Inspector3D: Replace Group by ExpandableGroup when relevant
The content of the "DISPLAY" and "CAMERA" groups is hidden by default.
Instead of customizing the `Group` object's toolbar to hide/expand these
groups, the `ExpandableGroup` object, which is specifically made to handle
these cases, is used. The groups can be expanded either by clicking
the dedicated tool button or anywhere on the toolbar.
2023-11-07 16:45:31 +01:00
Candice Bentéjac
4f4e31a249 [Controls] Add a custom ExpandableGroup object
The `ExpandableGroup` is based on QML's `GroupBox`. It is very similar
to the `Group` object, with the difference that it can be hidden/expanded
by clicking on the group's title/label.
2023-11-07 16:45:01 +01:00
Candice Bentéjac
610523e3ea [Viewer3D] Add slider to display cameras based on their resection IDs
If any model with cameras is displayed in the 3D Viewer, a slider can
be used to filter the cameras that are being currently displayed based
on their resection IDs. This allows to visualize the order in which the
cameras have been added, and the groups in which they have been added.
2023-11-07 11:16:16 +01:00
Candice Bentéjac
e463f0dce2 [qml] Clean-up: Harmonize syntax across all files 2023-11-06 16:31:10 +01:00
Candice Bentéjac
e9d80611c7 [GraphEditor] Clean-up: Harmonize syntax across all files 2023-11-06 16:28:22 +01:00
Candice Bentéjac
2bdf061d2e [ImageGallery] Clean-up: Harmonize syntax across all files 2023-11-06 16:28:22 +01:00
Candice Bentéjac
2908aa94a3 [Controls] Clean-up: Harmonize syntax across all files 2023-11-06 16:28:22 +01:00
Candice Bentéjac
856641bc9d [Charts] Clean-up: Harmonize syntax across all files 2023-11-06 16:28:21 +01:00
Candice Bentéjac
8313e42d8c [Utils] Clean-up: Harmonize syntax across all files 2023-11-06 16:28:21 +01:00
Candice Bentéjac
d8709434a3 [Viewer] FeaturesInfoOverlay: Ensure node exists before getting its label
This fixes a "TypeError: Cannot read property 'label' of null" issue.
2023-11-06 16:28:21 +01:00
Candice Bentéjac
13b8266d14 [Viewer] Clean-up: Harmonize syntax across all the files 2023-11-06 16:28:21 +01:00
Candice Bentéjac
9d2974d282 [Viewer3D] Clean-up: Harmonize syntax across all the files 2023-11-06 16:28:20 +01:00
Candice Bentéjac
9249615baf [Viewer] ImageMetadataView: Check that value is set before assigning it
This commit fixes the following errors:
- "<Unknown File>: Can't assign to existing role 'value' of different
type [VariantMap -> String]" which occurs whenever the metadata view is
enabled and appears if at least one of the metadata keys has an empty
value;
- "Unable to assign [undefined] to QString" which occurs whenever the
search bar is cleared.
2023-11-06 16:28:20 +01:00
Candice Bentéjac
b916a923e1 [GraphEditor] AttributeItemDelegate: Fix binding loop warning 2023-11-06 16:28:20 +01:00
Fabien Castan
4269b8300c
Merge pull request #2230 from alicevision/fix/3dViewerLoading
[ui] Don't load a node's output in the 3DViewer if it has no 3D output
2023-10-27 14:31:02 +02:00
Candice Bentéjac
0aba9a053f [ui] Don't load node's output in the 3DViewer if it has no 3D output 2023-10-26 17:15:51 +02:00
Candice Bentéjac
5c3159dc9b [Viewer3D] Remove AlembicLoader which has been replaced with SfmDataLoader 2023-10-24 17:32:22 +02:00
Fabien Castan
c02aa1f229
Merge pull request #2145 from alicevision/fix/cameraInitIdx
[ui] Preserve last `CameraInit` index when updating the CameraInits list
2023-10-19 10:58:33 +02:00
Candice Bentéjac
80fae32c2d [Viewer3D] SfmDataLoader: Remove dead code and outdated comments 2023-10-16 16:15:46 +02:00
Fabien SERVANT
aee197e063 Use qmlSfmData 2023-10-16 14:55:09 +02:00
Fabien Castan
5ccbfe408a
Merge pull request #2221 from alicevision/dev/clearImagesGallery
[ui] ImageGallery: Add "Remove All Images" menu to clear all images
2023-10-11 19:45:46 +02:00
Candice Bentéjac
66ffe017a4 [ui] Rename "Clear Images" actions into "Remove All Images"
Update the names of the commands that remove images in the "File"
menu to match with those in the Image Gallery menu.

"Clear Images" becomes "Remove All Images" and "Clear All Images" becomes
"Remove Images From All CameraInit Nodes".
2023-10-11 18:07:18 +02:00
Candice Bentéjac
557a5bd956 [ui] ImageGallery: Use commands to set SfM attributes through the gallery
Prior to this commit, the `StructureFromMotion` and `SfMTransform` nodes'
were directly set without using the dedicated command. This meant that
the actions to set those attributes through the Image Gallery menu were
not added to the stack of commands, and could not be undone.
2023-10-10 15:13:17 +02:00
Candice Bentéjac
d2dc78dd5a [ui] ImageGallery: Add "Remove All Images" menu to clear all images
In addition to the existing "Remove" menu action in the Image Gallery that
deletes the currently selected image, add a "Remove All Images" menu
action that performs the same action as "Clear Images" from the "File"
menu.

The "Del" key was used as a shortcut to remove the currently selected
image when the Image Gallery has the focus, "Shift+Del" can now also be
used to remove all the images at once.
2023-10-09 18:54:06 +02:00
Candice Bentéjac
a606a8f83c [ui] Only update active CameraInit and its index when they are changed
Prior to this commit, when a `CameraInit` node was added to or removed
from the list of `CameraInit` nodes, the active `CameraInit` was always
reset to the first one in the list, independently from its previous
value.

This commit changes that behaviour by only modifying the active
`CameraInit` if no `CameraInit` node has been assigned yet, or if the
active `CameraInit` does not exist anymore (meaning it has been removed).

This requires to emit the `cameraInitChanged` signal every single time
the list of existing `CameraInit` nodes is modified even if the active one
is not changed, and to connect it to the ImageGallery in order to ensure
the index from the combo box always corresponds to the currently active
`CameraInit` node. Indeed, when the list of CameraInits is updated, the
model for the combo box is reset, and it needs to be re-updated with the
correct non-default value.
2023-10-03 18:11:55 +02:00