40 Commits

Author SHA1 Message Date
NEDJIMAbelgacem
8ec26000b4 remove layer and elevation properties 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
839636635b add docs 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
6b7be9c909 fix spelling 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
8178add788 Address Nyall suggestions 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
9358c9bd3e change to variant and remove QgsPointCloudIdentifyResults 2021-01-04 10:20:04 +10:00
NEDJIMAbelgacem
2d274af355 Add classified renderer filtering behaviour 2021-01-04 10:20:04 +10:00
Nyall Dawson
7b141e92f0 Also add scaling factor option, test 2020-12-16 13:58:20 +10:00
Nyall Dawson
1963ef9784 [pointclouds] Add an elevation tab in layer properties, and allow
users to set a manual offset to apply to point cloud z values

This allows for adjustment of the elevation of point clouds, eg so that:
1. They match nicely with point clouds from other datasources
2. Users can use point clouds from sources with arbitrary z values,
eg. a point cloud made by opendronemap without any actual reference
z values available
2020-12-16 13:58:20 +10:00
Nyall Dawson
def587fa77 [pointclouds] Add an extent only 2d renderer for point clouds
Useful when you just want an overview of the bounds of the layer in a
2d map. Also potentially usable as a temporary renderer for las/laz
files while we build the indexed representation of the file in the
background.
2020-12-04 17:44:23 +10:00
Nyall Dawson
c48f29a8b9 Add choice of point style for 2d point cloud renders
Options are Square or Circle shapes
2020-12-03 07:23:44 +01:00
Nyall Dawson
19fdf11976 Code cleanup 2020-12-03 07:23:44 +01:00
Nyall Dawson
666479494b [pointclouds] Add a classified 2d renderer for point clouds
Allows styling point cloud layers by a classification attribute
2020-12-03 07:23:44 +01:00
Nyall Dawson
b3255c4cfd Hookup some more support for toggling point cloud legend items 2020-12-03 07:23:44 +01:00
Nyall Dawson
91048d4be8 Add possibility for point cloud renderers to create checkable legend nodes
(not implemented for any renderers yet)
2020-12-03 07:23:44 +01:00
Nyall Dawson
6a6b77a145 Implement legends for point clouds with the Attribute By Ramp renderer 2020-12-02 21:58:02 +10:00
Nyall Dawson
fc3d61aaea Cleanups, unit tests 2020-12-02 15:54:24 +10:00
Nyall Dawson
8ba9866c6b Move some code to reusable methods in QgsPointCloudRenderer 2020-12-02 15:54:24 +10:00
Nyall Dawson
775320e095 Implement z range filtering for point clouds 2020-11-28 16:45:54 +10:00
Nyall Dawson
acbeebe32a [pointclouds] Expose option to set point size for 2d point cloud renders 2020-11-19 15:49:43 +01:00
Nyall Dawson
4e13ad5555 Spelling, dox 2020-11-16 19:38:07 +10:00
Nyall Dawson
0d3ccf7040 Move setting for maximum screen error to QgsPointCloudRenderer, expose in GUI 2020-11-16 19:38:07 +10:00
Nyall Dawson
bf8ccad89e Add contrast enhancement options for point cloud RGB renderer 2020-11-16 19:38:07 +10:00
Nyall Dawson
5158922428 Default to a RGB renderer for point clouds with Red/Green/Blue attributes present 2020-11-13 02:59:05 +10:00
Nyall Dawson
948a7dc9bc Move some common code to base class 2020-11-13 02:59:05 +10:00
Nyall Dawson
3ca572c0e3 2D RGB Renderer for point clouds 2020-11-13 02:59:05 +10:00
Nyall Dawson
1feccd1ea1 Add more methods to QgsPointCloudRenderer class 2020-11-13 02:59:05 +10:00
Nyall Dawson
1a2d6ec5d5 Add scale, offset and counter for points rendered to QgsPointCloudRenderContext 2020-11-13 02:59:05 +10:00
Nyall Dawson
abbd634b44 API shell for QgsPointCloudRenderer 2d point cloud renderer 2020-11-13 02:59:05 +10:00
Nyall Dawson
5924ff7cf5 Move guts of qgspointcloudrenderer.* to qgspointcloudlayerrenderer.* 2020-11-13 02:59:05 +10:00
Peter Petrik
29113a89c1 fix some checks and building 2020-10-27 05:29:14 +10:00
Nyall Dawson
d7e8c6c8b8 QgsMapLayerRenderer subclasses aren't exposed to python 2020-10-27 05:29:14 +10:00
Nyall Dawson
4e94abc31f Rename QgsPointCloudRenderer to QgsPointCloudLayerRenderer
This follow the pattern of QgsVectorLayerRenderer, QgsRasterLayerRenderer,
etc and disambiguates the layer renderer from the 2d renderer
itself.
2020-10-27 05:29:14 +10:00
Nyall Dawson
b78583e940 Remove write/readXml from QgsPointCloudRenderer -- these don't belong in a QgsMapLayerRenderer subclass 2020-10-27 05:29:14 +10:00
Nyall Dawson
40ff7127d0 Mark QgsPointCloudRendererConfig as private for now 2020-10-27 05:29:14 +10:00
Peter Petrik
8536c564fb add ept provider 2020-10-27 05:29:14 +10:00
Peter Petrik
b796dbb07b add some basic skelet for point cloud data providers 2020-10-27 05:29:14 +10:00
Peter Petrik
b7e8071831 some stubs for 3d classes 2020-10-27 05:29:14 +10:00
Martin Dobias
da969e8595 Fixed few bugs + minor rendering improvements
- using a color ramp to render points
- only rendering nodes that intersect the map extent
2020-10-27 05:29:14 +10:00
Peter Petrik
8a42c5759f port the basic renderer from Martin's prototype 2020-10-27 05:29:14 +10:00
Peter Petrik
de6f4d6ad8 hook point cloud layer type to the rest of the code 2020-10-27 05:29:14 +10:00