Nyall Dawson
ada2c601fb
Move some texture handling methods to base class
2020-08-03 16:34:10 +10:00
Nyall Dawson
201ab0d05c
Fix warning
2020-08-03 16:34:10 +10:00
Nyall Dawson
b9a147659f
Fix sipifaction of enum class
2020-08-03 16:34:10 +10:00
Nyall Dawson
51cde6fbd2
[3d][FEATURE] Add CAD style ("Gooch") material for polygons/extruded lines
...
From the qt docs:
"The Gooch lighting model uses both color and brightness to help show the
curvature of 3D surfaces. This is often better than models such as Phong
that rely purely upon changes in brightness. In situations such as in CAD
and CAM applications where photorealism is not a goal, the Gooch shading
model in conjunction with some kind of silhouette edge inking is a popular
solution.
The Gooch lighting model is explained fully in the original Gooch paper.
The Gooch model mixes a diffuse object color with a user-provided cool
color and warm color to produce the end points of a color ramp that is
used to shade the object based upon the cosine of the angle between the
vector from the fragment to the light source and the fragment's normal
vector. Optionally, a specular highlight can be added on top. The
relative contributions to the cool and warm colors by the diffuse color
are controlled by the alpha and beta properties respecitvely."""
The TLDR: the shader works well for revealing 3d details of objects
which may otherwise be hidden due to the scene's lighting. Ultimately,
it's an easier material to work with as you don't need to worry
about setting up appropriate scene lighting in order to visualise features.
2020-08-03 16:34:10 +10:00
Nyall Dawson
d9af7f7170
Gooch shading!
2020-08-03 16:34:10 +10:00
Nyall Dawson
daf38a9f23
Rework QgsAbstractMaterialSettings class to handle different rendering techniques
...
Restrict choice of material in widgets based on the symbol's required technique,
and hide material settings in phong widget which don't apply to certain
rendering techniques (e.g. hiding all but the ambient color for simple 3d line
symbols)
2020-08-03 16:34:10 +10:00
Nyall Dawson
d85228654b
Add an icon in the 3d material combo box
2020-08-03 16:34:10 +10:00
Alexander Bruy
c1e91425b6
Merge pull request #37298 from alexbruy/split-vector
...
use attribute value in the output file name for Split vector layer algorithm (fix #37296 )
2020-08-03 09:33:39 +03:00
Peter Petrik
8ed274bb60
automatically add MACOS environment variables if folders/dirs present in bundle ( #37918 )
2020-08-03 06:20:23 +02:00
Nyall Dawson
4f34b8a7f8
[3d][api] Split api from specifying 3d map layers to render from api
...
for specifying terrain layers to render
Previously the one method was used for both, which made it very
difficult to have a different set of layers used for terrain
generation vs 3d entity generation (you had to manually create a map
theme, which is very messy)
2020-08-03 13:13:11 +10:00
Alexander Bruy
29ccd61cd6
use more robust WKT export option
2020-08-03 09:47:58 +10:00
Alexander Bruy
fc4d0f5388
address review comments
2020-08-03 09:47:58 +10:00
Alexander Bruy
b1f08378f7
use more descriptive representation of the current layer CRS
2020-08-03 09:47:58 +10:00
Alexander Bruy
92bf631ecf
show current layer CRS in the layer context menu and allow to change it
...
directly to one of the recently used CRSs (fix #13882 )
2020-08-03 09:47:58 +10:00
Juergen E. Fischer
48619cf552
debian packaging fixes:
...
* include qgis-server-wmts
* fix Qt53DExtras cmake module lookup
2020-08-02 21:50:19 +02:00
Matthias Kuhn
532f548dac
Fix warning in parse_dash_results
2020-08-02 13:55:27 +02:00
Matthias Kuhn
2677de9a6c
Allow adding a new set of control images
2020-08-02 13:55:14 +02:00
Matthias Kuhn
23acbf1b5a
Capitalization in parse_dash_results
2020-08-02 13:54:23 +02:00
Matthias Kuhn
c1bd69cbb6
Allow to maximize parse_dash_results window
2020-08-02 13:53:56 +02:00
Matthias Kuhn
148028b792
Cleanup leftover images
2020-08-02 12:46:14 +02:00
Matthias Kuhn
46a91533d6
Merge pull request #38080 from uclaros/georef-restore
...
Don't restore georeferencer window if it was maximized
2020-08-01 15:00:04 +02:00
uclaros
1ccfb71b1c
Don't restore georeferencer window if it was maximized
2020-08-01 10:50:52 +03:00
rldhont
acc750c7e3
Merge pull request #37919 from rldhont/fix-processing-gdal-assignprojection-project-layer
...
[Processing] Fix GDAL Assign Projection: update QgsRasterLayer crs
2020-08-01 09:37:56 +02:00
nirvn
8f97788225
[ui] Make the obstacle checkbox label wrap to avoid overly large minimum width
2020-08-01 08:34:30 +10:00
omar
eaab778a47
Remove extra bracket from stdev statistic option
2020-08-01 08:34:09 +10:00
rldhont
f5b819fc4c
[Tests] Check that GDAL Assign Projection updates QgsRasterLayer info
2020-07-31 14:32:48 +02:00
rldhont
6c44073ff0
[Processing] Fix GDAL Assign Projection: update QgsRasterLayer crs
...
Even if the projection is assign, the QgsRasterLayer and the QgsRasterDataProvider was not updated.
The fix reloads the QgsRasterDataProvider's data and updates the QgsRasterLayer's crs.
Fixed #37920
2020-07-31 14:32:48 +02:00
Matthias Kuhn
f13c40007f
Update test masks
2020-07-31 10:12:25 +02:00
olivierdalang
41f72bf2b2
[layout] rotated grid ticks/annotations - update expected images masks AGAIN
2020-07-31 10:12:24 +02:00
olivierdalang
44a61ea77d
[layout] rotated grid ticks/annotations - update expected images masks
...
(thanks parse_dash_results.py)
2020-07-31 10:12:12 +02:00
olivierdalang
90cc33b3a8
[layout] rotated grid ticks/annotations (rebased)
2020-07-31 10:10:44 +02:00
Nyall Dawson
e19f27d289
[processing] Fix hidden column names show in batch processing dialog,
...
throwing the table contents out of sync with the headers
Also make code a bit more robust
Fixes #38054
2020-07-31 16:03:28 +10:00
Nyall Dawson
b9f1f2ca32
[processing] Fix destination layer name ignored in Load Layer into Project
...
algorithm
Fixes #38046
2020-07-31 16:03:16 +10:00
Nyall Dawson
7087d5d087
[3d] Fix polygon edge lines are rendered vertically offset from polygons
2020-07-31 11:57:45 +10:00
nirvn
e0de9c5c26
[locator] add degree minute second coordinate support to goto locator
2020-07-31 08:06:32 +07:00
nirvn
6916305eaf
[delimitedtext] Rely on QgscoordinateUtils' degree/minute/second to double function
2020-07-31 08:06:32 +07:00
nirvn
07ab4b3255
[FEATURE][expression] Add a to_decimal() function to convert degree/minute/second strings
2020-07-31 08:06:32 +07:00
Matthias Kuhn
f7ca8b6786
Make test folder detection more robust
2020-07-31 07:10:26 +10:00
Matthias Kuhn
2f99a327b0
Improve cli of parse_dash_results
2020-07-31 07:10:26 +10:00
Nyall Dawson
d2238d8f14
Fix parse_dash_result helper script layout issues, add handling
...
of multiple matching images
2020-07-31 07:10:26 +10:00
Alexander Bruy
510c61ef1b
show line numbers in the query are of the virtual layer dialog ( fix #23185 )
2020-07-31 07:04:56 +10:00
Alexander Bruy
c942185947
allow to copy all line measurements at once ( fix #20498 )
2020-07-31 07:04:40 +10:00
vcloarec
0348ab0dd6
fix doc and more cleaning
2020-07-31 05:43:38 +10:00
vcloarec
eb24446f84
renaming and cleaning of Triangulation class and export to QgsMesh
2020-07-31 05:43:38 +10:00
Harrissou Sant-anna
a4372d21b7
Fully explain the examples
...
avoiding use of $geometry function in explanation
2020-07-31 03:07:46 +10:00
Harrissou Sant-anna
490c8ff8d2
Replace geom parameter with geometry, for harmonization
2020-07-31 03:07:46 +10:00
Nyall Dawson
813ee5a68d
[expressions] Silently alias "geom" named across to "geometry"
...
So that was can standardize on using "geometry" as the named argument
insted of mixing "geom" and "geometry" in the public docs.
2020-07-31 03:07:46 +10:00
Nyall Dawson
fd19167c0a
[processing] Show some more warnings when spatial indexes are missing but desirable
2020-07-31 03:07:07 +10:00
Nyall Dawson
8cbafe7a44
Fix item name
2020-07-31 03:06:31 +10:00
Nyall Dawson
ed2cca49c0
[feature][layouts] Expose option to clip maps to a shape or polygon item
...
in UI
Allows users to clip a map item to a shape or polygon item from their layout,
allowing for non-rectangular maps in the layout
2020-07-31 03:06:31 +10:00