88810 Commits

Author SHA1 Message Date
Jean Felder
dfce7dc231 qgs3dmapscene: Compute max clip planes
The number of available clip planes depends on the OpenGL
implementation.

This change Introduces a new function in Qgs3DUtils function called
`Qgs3DUtils::getOpenGLMaxClipPlanes` to compute this
number (`GL_MAX_CLIP_PLANES`) and use it in the 3D scene.

See: https://registry.khronos.org/OpenGL-Refpages/gl2.1/xhtml/glClipPlane.xml
2024-11-21 17:08:41 +01:00
Withalion
6b477c7868 Change number of decimals in camera info spinboxes 2024-11-21 15:28:03 +01:00
Withalion
fb14ac5ba1 Fix review issues 2024-11-21 15:28:03 +01:00
Withalion
a6fac72d9b Add option to update camera through debug panel 2024-11-21 15:28:03 +01:00
qgis-bot
70d7f59e06 auto sipify 🍺 2024-11-21 14:10:03 +00:00
Denis Rouzaud
a5b4ab01d1
Call build_artifact_comment.yml only for PRs (#59549) 2024-11-21 15:06:53 +01:00
Mathieu Pellerin
7d190f9171
[qml] Upgrade QgsLocatorResult to a Q_GADGET (#59547) 2024-11-21 15:03:52 +01:00
qgis-bot
a497042d42 auto sipify 🍺 2024-11-21 12:12:36 +00:00
Jean Felder
be22822327 qgsprojectelevationsettingswidget: Check elevation range values
Make the widget invalid if the elevation lower value if greater than
the upper one.
2024-11-21 13:09:23 +01:00
Jean Felder
936affa860 qgsdoublespinbox: Introduce isCleared method 2024-11-21 13:09:23 +01:00
qgis-bot
14ab3d40de auto sipify 🍺 2024-11-21 08:33:56 +00:00
Withalion
0a1f1ccfa8 Move documentation into header file 2024-11-21 09:30:45 +01:00
Withalion
5f6259ac10 Fix issues found in review 2024-11-21 09:30:45 +01:00
Withalion
7d9d87491b Fix code to best practices 2024-11-21 09:30:45 +01:00
Withalion
1551449df3 Move debug panel icon from toolbar
Debug panel in 3d map view can be set in advanced settings or by
keyboard shortcut CTRL + SHIFT + d
2024-11-21 09:30:45 +01:00
Withalion
7292ba50f8 Add minor UI improvements
Debug camera info is always shown
Debug depth map widget's default position is moved to bottom left
corner, so it won't collide with axis widget
Docking icon is moved to the last position
Toolbar icon size is finally correct, changes with the window docked state as
it should
2024-11-21 09:30:45 +01:00
Withalion
edac3f7f7b Connect debug widget to Qgs3dMapSettings 2024-11-21 09:30:45 +01:00
Withalion
9b18fdd1f9 [feature] Create new debug widget for 3D map View
This commit adds new debug side panel (similar to navigation widget), which moves several existing options from settings/navigation panel here. Camera Info has been moved from navigation panel and from table changed into input elements (preparation for another feature). Show map tile info, Show bounding boxes, Show camera's view/rotation center, Show light sources, Show debug overlay, Debug shadow map, Debug Depth map options have been moved from advanced sub-category of options. New Stop scene updates option has been created.
2024-11-21 09:30:45 +01:00
Withalion
66cc502dba Connect stop updates setting to the scene
Currently this bricks the screen render
2024-11-21 09:30:45 +01:00
Withalion
c76455bcc6 Add stop updates checkbox in 3D View options 2024-11-21 09:30:45 +01:00
Denis Rouzaud
fd18e3e05b
perl is not required anymore by sipify (#59544) 2024-11-21 08:49:23 +01:00
qgis-bot
2eef9e12d3 auto sipify 🍺 2024-11-21 01:15:27 +00:00
Nyall Dawson
646c318405 Pass context by ref 2024-11-21 11:12:18 +10:00
Nyall Dawson
7ce4bb5358 Avoid clazy warnings 2024-11-21 11:12:18 +10:00
Nyall Dawson
0ca2c7bcfc Fix some places we pass large objects by value 2024-11-21 11:12:18 +10:00
Julien Cabieces
d4b8178d63 fix(Vcpkg): Don't install python3 if we build without bindings 2024-11-21 08:18:40 +10:00
Jan Caha
3d92b2b460
Mesh selection actions (#58888)
* add new actions

* icons for actions

* fix styling

* select by expression

* add tests
2024-11-20 16:16:25 +02:00
Mathieu Pellerin
10883253d3 [qml] Upgrade QgsLocatorContext to a Q_GADGET 2024-11-20 21:02:31 +07:00
Julien Cabieces
458185a670
Merge pull request #59484 from nyalldawson/cs_error
Fix QgsCsException messages
2024-11-20 13:12:03 +01:00
Julien Cabieces
25c4a83bdd
Merge pull request #59515 from nyalldawson/cov_errors
Fix a bunch of coverity scan errors
2024-11-20 11:08:11 +01:00
Nyall Dawson
60780fc3af
Fix arguments in wrong order 2024-11-20 16:02:06 +10:00
Nyall Dawson
69d09af5bf
Avoid some unnecessary auto 2024-11-20 15:59:50 +10:00
Nyall Dawson
f7e1550a6d
Fix comparison 2024-11-20 15:53:42 +10:00
Nyall Dawson
a6a18a93bc
Remove dead code 2024-11-20 15:53:34 +10:00
Even Rouault
c4c8f38a65 QgsPointsToPathsAlgorithm: fix copy&paste issue in parameter creation
Fixes Coverity 450635
It warns about a use-after-free, which cannot happen in that situation,
but it looks very much as we have a copy&paste error here.
2024-11-20 15:52:18 +10:00
Nyall Dawson
6ec289d461
Fix integer divide 2024-11-20 15:49:10 +10:00
Nyall Dawson
93bce2ed76
Fix same-on-both sides checks 2024-11-20 15:49:03 +10:00
Nyall Dawson
ba07d876f8
Fix iterator mismatch 2024-11-20 15:45:53 +10:00
Nyall Dawson
a390b403a5
Fix some copy/paste errors identified by coverity scan 2024-11-20 15:31:03 +10:00
Nyall Dawson
5733e3d3f2
Use bool to track errors from fallback operations 2024-11-20 06:24:58 +10:00
Alessandro Pasotti
3a1ccaeaee Update src/core/expression/qgsexpressionfunction.cpp 2024-11-20 05:57:52 +10:00
Alessandro Pasotti
552b63a7e8 Fix crash executeGeomOverlay called without context
Fix unreported crash.
2024-11-20 05:57:52 +10:00
Jean Felder
04446f9d56 qgisapp: Ensure to properly delete 2D MapCanvasDock
When closing a 2D canvas dock, QGIS sometimes crashes. This is because
when the widget helper is closed, the canvas is closed. However, some
signals of the canvas widget may still be called after it is
called. Hence, the crash.

This issue is fixed by calling `deleteLater()` instead of `delete` to
ensure a proper deletion which properly takes into account the
signals.
2024-11-20 05:57:28 +10:00
Julien Cabieces
a34442d0f3
Merge pull request #59259 from Djedouas/snapping-intersection-freeze
Fix freeze on long indexation for snapping on intersections
2024-11-19 15:43:15 +01:00
qgis-bot
7d374b248e auto sipify 🍺 2024-11-19 11:09:39 +00:00
Nyall Dawson
0ead32eb41 Fix qt6 compatibility in test 2024-11-19 21:06:26 +10:00
Nyall Dawson
2abc9d92ca [sld] Don't try to write rules/categorizes without symbolizers
Only create rules/categorized categories/graduated ranges if the
associated symbol could be converted to SLD, and is not an "empty"
symbol.

Otherwise we do not generate a rule, as SLD spec requires a
Symbolizer element to be present.
2024-11-19 21:06:26 +10:00
Jacky Volpes
3b3af5791e Fix freeze on long indexation for snapping on intersections
If snap on intersections is enabled, this specific edge search with the
locator was not in relaxed mode, whereas the standard snapping is
happening in relaxed mode.

As a result, trying to use the snapping during the first indexation was
freezing QGIS while the indexation is happening, waiting for it to end.

On a layer where the indexation is longer than the timeout (30sec, i.e.
a WFS layer as in issue #51179), the locator stops abruptly and resets
itself, crashing the indexation and QGIS.
2024-11-19 11:09:31 +01:00
Mathieu Pellerin
52dd3047ac [expression] Add a to_bool() function to convert various value types into a boolean 2024-11-19 15:09:58 +07:00
Mathieu Pellerin
cdf7c82d7a [vector tiles] Handle 'to-boolean' mapboxgl expressions when importing styles 2024-11-19 15:09:40 +07:00