43 Commits

Author SHA1 Message Date
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
28c2788989 Spelling 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
a6d61c000a Start on registry for 2d point cloud renderers 2020-11-13 02:59:05 +10:00
Nyall Dawson
70e6cc7304 Implement QgsMapLayer methods required for saving/loading renderer properties 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
0169347f5b Hookup API for point cloud data providers to create default renderers for associated layers 2020-11-13 02:59:05 +10:00
Nyall Dawson
c2fe0d3749 Hook QgsPointCloudRenderer into QgsPointCloudLayerRenderer (non-functional for now) 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
8bb7edbbc6 Expose QgsPointCloudBlock to Python 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
Nyall Dawson
38e6b6b93e Add proxy model for filtering QgsPointCloudAttributeModel by attribute type 2020-11-12 17:33:37 +10:00
Nyall Dawson
d8f6a2e152 Add attribute index role to point cloud attribute model 2020-11-12 17:33:37 +10:00
Nyall Dawson
b9a7a365c0 Add attributes() member to QgsPointCloudDataProvider, QgsPointCloudLayer
Gives direct access to point cloud attributes
2020-11-12 17:33:37 +10:00
Nyall Dawson
819fc50b0e Don't use generic "QgsMapLayer" class name in map layer Python repr
strings

Rather use actual layer subclass type, e.g. QgsVectorLayer
2020-11-12 16:05:52 +10:00
Nyall Dawson
8d54dc8f9a Fix sip build 2020-11-10 02:17:10 +10:00
Nyall Dawson
59601bf17d Add QgsPointCloudAttributeComboBox widget
A reusable widget for selecting an attribute from a point cloud layer
2020-11-10 02:17:10 +10:00
Nyall Dawson
aa428a060e Add QgsPointCloudAttributeModel model for display of attributes in
a point cloud layer
2020-11-10 02:17:10 +10:00
Nyall Dawson
d0d7aa6ca9 Expose QgsPointCloudAttribute/QgsPointCloudAttributeCollection to sip 2020-11-10 02:17:10 +10:00
Peter Petrik
3dec432cb6 [pointclouds] add basic structure for PDAL layer 2020-11-04 21:56:09 +01:00
Nyall Dawson
09e87b8394 Remove non-functional loadDefaultStyle from QgsPointCloudLayer
We should use the base class version for point cloud layers
2020-10-27 14:57:06 +10:00
Nyall Dawson
56f5010947 Show information in point cloud layer properties 2020-10-27 05:29:14 +10:00
Nyall Dawson
23dfbf8e09 Make setting point cloud layer data source follow expected behavior
for map layers

Will make it possible to repair point cloud layer sources
2020-10-27 05:29:14 +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
Nyall Dawson
5a714372e3 Minor api cleanups 2020-10-27 05:29:14 +10:00
Peter Petrik
8536c564fb add ept provider 2020-10-27 05:29:14 +10:00
Martin Dobias
a86149b452 Fix qgis_core python and project loading with point cloud layer 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
9c27d4ae91 bunch of other file skeletons 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