Skip to content
Permalink
Browse files

Expose QgsPointCloudBlock to Python

  • Loading branch information
nyalldawson committed Nov 12, 2020
1 parent 5924ff7 commit 8bb7edbbc6928d0be91a9c19d840b2fc3b44895c
@@ -0,0 +1,60 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/pointcloud/qgspointcloudblock.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsPointCloudBlock
{
%Docstring
Base class for storing raw data from point cloud nodes

.. note::

The API is considered EXPERIMENTAL and can be changed without a notice

.. versionadded:: 3.18
%End

%TypeHeaderCode
#include "qgspointcloudblock.h"
%End
public:
QgsPointCloudBlock( int count,
const QgsPointCloudAttributeCollection &attributes,
const QByteArray &data );
%Docstring
Ctor
%End
~QgsPointCloudBlock();

const char *data() const;
%Docstring
Returns raw pointer to data
%End

int pointCount() const;
%Docstring
Returns number of points that are stored in the block
%End

QgsPointCloudAttributeCollection attributes() const;
%Docstring
Returns the attributes that are stored in the data block, along with their size
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/pointcloud/qgspointcloudblock.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -445,8 +445,8 @@
%Include auto_generated/mesh/qgsmeshcalculator.sip
%Include auto_generated/pointcloud/qgspointcloudattribute.sip
%Include auto_generated/pointcloud/qgspointcloudattributemodel.sip
%Include auto_generated/pointcloud/qgspointcloudblock.sip
%Include auto_generated/pointcloud/qgspointcloudlayer.sip
%Include auto_generated/pointcloud/qgspointcloudlayerrenderer.sip
%Include auto_generated/pointcloud/qgspointclouddataprovider.sip
%Include auto_generated/pointcloud/qgspointcloudrenderer.sip
%Include auto_generated/metadata/qgsabstractmetadatabase.sip
@@ -25,8 +25,6 @@
#include <QVector>
#include <QByteArray>

#define SIP_NO_FILE

#include "qgspointcloudattribute.h"

/**
@@ -28,11 +28,11 @@
#include <QString>
#include <QPainter>


class QgsRenderContext;
class QgsPointCloudLayer;

#ifndef SIP_RUN
#define SIP_NO_FILE

///@cond PRIVATE

/**
@@ -128,7 +128,5 @@ class CORE_EXPORT QgsPointCloudLayerRenderer: public QgsMapLayerRenderer
void drawData( QPainter *painter, const QgsPointCloudBlock *data, const QgsPointCloudRendererConfig &config );

};
#endif


#endif // QGSPOINTCLOUDLAYERRENDERER_H

0 comments on commit 8bb7edb

Please sign in to comment.
You can’t perform that action at this time.