17903 Commits

Author SHA1 Message Date
Alessandro Pasotti
c3b7cb1c87 Server: add path() accessor to request handler
just for convenience
2020-08-06 14:52:07 +02:00
Martin Dobias
0aad0305c5
Merge pull request #38087 from NEDJIMAbelgacem/skybox-feature
[3D feature] Skybox feature
2020-08-06 13:00:09 +02:00
Etienne Trimaille
6180938400 Plugin installer - rephrase error message when plugin is not found 2020-08-06 15:30:14 +10:00
NEDJIMAbelgacem
d7787f2477 Use path resolver's read/writePath()
Remove QSkyboxEntity include
Use deleteLater() instead of delete
Remove unneeded todo
Add \since to skyboxSettings in qgs3dmapsettings.h
2020-08-06 01:09:20 +01:00
NEDJIMAbelgacem
5be696d33f Fix compilation error for ubuntu system packages users 2020-08-05 10:45:51 +01:00
Nyall Dawson
97915e3203 Add a iface method to directly set a specific GPS connection to connect
to in the GPS Information panel

Allows for plugins to create subclasses of QgsGpsConnection and then
hook these into the existing GPS panel widget
2020-08-05 18:52:29 +10:00
Nyall Dawson
50d4bf0f10 Treat item crs as matching annotation layer CRS 2020-08-05 16:27:09 +10:00
Nyall Dawson
ca384b2452 Address review comments 2020-08-05 16:27:09 +10:00
Nyall Dawson
ea392ea17a Dox 2020-08-05 16:27:09 +10:00
Nyall Dawson
f2d172fcd3 Implement layer extent calculation 2020-08-05 16:27:09 +10:00
Nyall Dawson
f0d2f3d21d Allow removing items from annotation layers 2020-08-05 16:27:09 +10:00
Nyall Dawson
5e9264dfb7 Add unit tests for annotation layer 2020-08-05 16:27:09 +10:00
Nyall Dawson
c924ec3087 Add unit tests for marker/line/polygon items 2020-08-05 16:27:09 +10:00
Nyall Dawson
c31ee84b46 Don't return reference 2020-08-05 16:27:09 +10:00
Nyall Dawson
a90555bf95 Remove data provider from annotation layer -- this is no longer required 2020-08-05 16:27:09 +10:00
Nyall Dawson
8300856615 Code shuffle 2020-08-05 16:27:09 +10:00
Nyall Dawson
ef58029369 Minor cleanups 2020-08-05 16:27:09 +10:00
Nyall Dawson
e6c8113260 Tweak api, add tests for annotation item registry 2020-08-05 16:27:09 +10:00
Nyall Dawson
6f90139fe9 Dox, build fixes 2020-08-05 16:27:09 +10:00
Nyall Dawson
fe5b423e33 Hookup initial marker item in registry 2020-08-05 16:27:09 +10:00
Nyall Dawson
b0e2a8b5a9 Add registry for annotation item classes 2020-08-05 16:27:09 +10:00
Nyall Dawson
96cf240b39 Dox cleanup 2020-08-05 16:27:09 +10:00
Nyall Dawson
c523063401 Basic storage and restore of annotation layers in projects 2020-08-05 16:27:09 +10:00
Nyall Dawson
4c04254b8b Add sip cast code for QgsAnnotationLayer 2020-08-05 16:27:09 +10:00
Nyall Dawson
bc745a14e1 Create minimal data provider for annotation layers 2020-08-05 16:27:09 +10:00
Nyall Dawson
83e48c0254 Add missing Transfer annotation 2020-08-05 16:27:09 +10:00
Nyall Dawson
c8e86aefc7 Move QgsAnnotationItem to its own file 2020-08-05 16:27:09 +10:00
Nyall Dawson
21a2599d0d Move annotation layer renderer to own file 2020-08-05 16:27:09 +10:00
Nyall Dawson
35d9a657c8 Add AnnotationLayer to layer item type enum, silence warnings 2020-08-05 16:27:09 +10:00
Nyall Dawson
9f943f72a8 First steps towards free-form graphics item layer
Based on a port from the downstream Kadas application's item layer
type

Kudos to @manisandro
2020-08-05 16:27:09 +10:00
nirvn
38a7e7212a [console] Fix error when console history file is missing
from the user profile directory (fixes #38142)
2020-08-05 10:18:38 +07:00
Sylvain POULAIN
78cea71e00 Missing options for r.neighbors in processing
All options added : https://grass.osgeo.org/grass78/manuals/r.neighbors.html
2020-08-05 06:28:12 +10:00
NEDJIMAbelgacem
58d280be60 Fix merge conflict
Merge branch 'master' into skybox-feature
2020-08-04 08:33:53 +01:00
Matthias Kuhn
63f939e8a2
Merge pull request #37041 from olivierdalang/rotated_ticks
Support for rotated ticks/annotation
2020-08-04 09:25:48 +02:00
NEDJIMAbelgacem
4ac66d08c8 Add SIP_NO_FILE and fix bindings 2020-08-04 07:07:51 +01:00
Andrea Giudiceandrea
ef11ad32b1 Don't load GRASS algs if GRASS is not installed
Fixes qgis_process that incorrectly lists GRASS algorithms among the available processing algs even when GRASS is not installed in the system
2020-08-04 14:51:34 +10:00
Martin Dobias
dbe1ef8aa2
Merge pull request #37685 from vcloarec/curveMapToolCapture
digitizing and splitting feature with curves
2020-08-03 22:41:04 +02:00
Nyall Dawson
53a8343eac Fix see also 2020-08-03 16:34:10 +10:00
Nyall Dawson
cafa347441 Add sip casting code for material types 2020-08-03 16:34:10 +10:00
Nyall Dawson
b07e0a20d0 Split textured phong material class from basic phong material class 2020-08-03 16:34:10 +10:00
Nyall Dawson
4d5518531f Split simple line material out from phong material 2020-08-03 16:34:10 +10:00
Nyall Dawson
c87a8f6afb Code shuffle to move all material classes to separate subdirectory 2020-08-03 16:34:10 +10:00
Nyall Dawson
798ed57155 Rename terrain texture for clarity 2020-08-03 16:34:10 +10:00
Nyall Dawson
7c08046a47 Don't show texture controls in terrain shading widget 2020-08-03 16:34:10 +10:00
Nyall Dawson
2455170df1 Fix broken see also link 2020-08-03 16:34:10 +10:00
Nyall Dawson
ada2c601fb Move some texture handling methods to base class 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
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