55 Commits

Author SHA1 Message Date
Nyall Dawson
046883fa9c Promote QgsWkbTypes enums to enum class, move to Qgis 2023-02-22 12:39:21 +10:00
Jean Felder
5d14d84bde
symbols: rename material to material settings (#50977)
* qgspoint3dsymbol: Rename mMaterial attribute to mMaterialSettings

mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.

* qgspoint3dsymbol: Rename materialSettings getter and setter

See previous commit.

* qgsline3dsymbol: Rename mMaterial attribute to mMaterialSettings

mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.

* qgsline3dsymbol: Rename materialSettings getter and setter

See previous commit.

* qgspolygon3dsymbol: Rename mMaterial attribute to mMaterialSettings

mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.

* qgspolygon3dsymbol: Rename materialSettings getter and setter

See previous commit.

* qgsmesh3dsymbol: Rename mMaterial attribute to mMaterialSettings

mMaterial is not a material but an attribute to handle material
settings. Renaming it makes it easier to understand its usage.

* qgsmesh3dsymbol: Rename materialSettings getter and setter

See previous commit.

* qgsgoochmaterialsettings: fix indentation
2022-11-30 16:45:32 +01:00
uclaros
c16e9a204c Sync pointcloud layer's 3d renderer style with 2d renderer 2022-04-04 02:57:00 -07:00
vcloarec
bfbc62d613 add direction in shader for classification 2022-03-08 07:53:50 -08:00
vcloarec
c8ff57b8d0 sipify 2022-03-08 07:53:50 -08:00
vcloarec
475b82bcef fix spelling and doc 2022-03-08 07:53:50 -08:00
vcloarec
fe64784e93 filter by height 2022-03-08 07:53:50 -08:00
vcloarec
bbd2f579ee fix point cloud triangulation with classification
sipify
2022-03-08 07:53:50 -08:00
vcloarec
434e7028dc filter before triangulation
no vertical filter before and remove exterior triangles


finalize


leftover


typo, const and other leftovers


fix big triangles filter


Stefanos review
2022-03-08 07:53:50 -08:00
Nyall Dawson
63e2d1ec16 Newly created 3d symbols for a vector layer default to inheriting
appropriate parameters from the layer's elevation settings
2022-03-03 06:15:10 +10:00
Nyall Dawson
5395d87d7f Move altitude clamping/binding enums to Qgis namespace, promote to enum
class
2022-03-03 06:15:10 +10:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00
Nyall Dawson
b5dfe8f155 Refactor enum handling
- Add enums to qgis.h instead of qgscoreenums, so that they belong to
a Qgis namespace
- Split up the various symbol headers into multiple files so that we
can fine-tune their inclusion and forward declare more readily, speeding
up recompilation
- Move QgsSymbol enums to qgis
2021-05-18 16:59:22 +10:00
Denis Rouzaud
ba8a445850 run sipify 2021-03-22 21:13:52 +01:00
Nyall Dawson
39307900c6 When a point cloud is first added to a project, default to setting
a 3d renderer on it to match its 2d renderer

It just makes sense!
2020-12-10 04:03:40 +10:00
NEDJIMAbelgacem
752c42c3d7 Fix categories filtering performance 2020-12-07 15:17:15 +01:00
NEDJIMAbelgacem
e1776dfcad fix broken see also links 2020-12-07 15:17:15 +01:00
NEDJIMAbelgacem
df3c30e113 Add docs 2020-12-07 15:17:15 +01:00
NEDJIMAbelgacem
e3dcb5b028 categories selection handling (visible/hidden) 2020-12-07 15:17:15 +01:00
NEDJIMAbelgacem
69f4476b59 initial 3d classification rendering implementation 2020-12-07 15:17:15 +01:00
Nyall Dawson
da162726e4 Support contrast enhancement and manual selection of RGB attributes
in 3d RBB point cloud renderer
2020-12-04 16:07:07 +07:00
Nyall Dawson
2f14a53467 Cleanup identification handling of 3d point cloud symbol subclasses,
and fix loss of symbol type when saving/restoring projects
2020-12-04 16:36:41 +10:00
NEDJIMAbelgacem
14a770282b fix doc 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
05d6edc604 refactor storing rendering style enum 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
955eaff38f Address reviews 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
d6a6d9ba64 fix SIP 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
70f96b0179 Use rendering context instead of passing the symbol to the handler 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
a271e819bb split the point cloud handler 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
67a4cc44ce refactor the attributes and vertex buffer code 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
7b9725a245 move material stuff to symbol classes 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
f4b9f72211 move point size to QgsPointCloud3DSymbol 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
d97b29139b remove NoRendering symbol 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
d0cb30e189 Add RGB rendering 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
015f306f84 fix documentation check 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
5e76bc6fcb Change rendering parameter to point cloud attributes 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
376671215a fix broken see also 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
095ac5230e Add NoRendering symbol 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
3979b47ed1 Split QgsPointCloud3DSymbol into different classes 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
7e2528427c Implement color ramp shader stuff 2020-12-03 22:27:20 +01:00
NEDJIMAbelgacem
9655a1e8d0 sipify qgspointcloud3dsymbol 2020-11-17 17:22:44 +01:00
Martin Dobias
836666e782
Merge pull request #37588 from NEDJIMAbelgacem/export-scene-feature
[Feature] Export 3D scene feature
2020-07-30 09:32:15 +02:00
Nyall Dawson
93022ea707 Add method to determine compatible vector layer types for a 3d symbol 2020-07-29 10:27:17 +10:00
NEDJIMAbelgacem
750f21d467 Add SIP_SKIP to QgsPolygon3DSymbol::exportGeometries and its overloads 2020-07-28 17:07:23 +01:00
NEDJIMAbelgacem
a656da3b75 Moved finding geometries from parseVectorLayerEntity to each symbol class 2020-07-28 01:45:11 +01:00
Nyall Dawson
f2e4ac606e [3d] Abstract out material settings
Opens the possibilities for non-phong based materials for 3d symbols
2020-07-24 16:28:18 +10:00
Nyall Dawson
0528fe284c Populate 3D symbol registry, and use to create symbols 2020-07-23 07:53:20 +10:00
Nyall Dawson
f60b79fcea Move QgsAbstract3DSymbol to core 2020-07-23 07:53:20 +10:00
Nedjima Belgacem
cc96e9e1c1
[Feature] texturing support for vector layer (#36981)
* [Feature] texturing support for vector layer

* Fixed tesselation test not passing issue

* Fixed diffuse_texture_path typo

* Refactoring according to code review

* [Bugfix] the texture coordinates are not setup properly for certain walls

* Added seperation between roofs and walls

* [Feature] texture coordinates rotation

* took back the seperation of texture rotation between walls and roofs because the user will be specifying them with different symbols anyway

* Fixed docs test not passing issue

* Fixed compilation problem

* Fixed compilation problem

* Executed sipify_all trying to fix test not passing issue

* [ui] Harmonize play button across the board

* [ui] Better network logger icon

* [ui] Harmonize loop widget of 3D map view

* [ui] Add a record icon and use it in the network logger panel

* [ui] Move icon-less network logger toolbar actions under settings menu

* [ui] Reflect playback stay in the 3D map view's play button

* Fix azure

* Use prefix increment operator to fix cppcheck warnings related to postfixOperator

* [afs] Read field aliases from layer definition

* Fix ui build warning

* [FEATURE][processing] Add modeler algorithm to set a project expression variable

Allows a model to set Project-level expression variables during execution. Especially
useful with the new Export Print Layout algorithms to allow models which dynamically set variables
used in a layout prior to export.

* Add test

* Refactoring according to code review

Co-authored-by: nirvn <nirvn.asia@gmail.com>
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2020-07-09 21:12:49 +02:00