60 : transformContext( transformContext )
69 bool loadDefaultStyle =
true;
82 bool skipCrsValidation =
false;
87 bool skipIndexGeneration =
false;
93 bool skipStatisticsCalculation =
false;
104 Calculating = 1 << 0,
107 Q_ENUM( PointCloudStatisticsCalculationState )
113 const QString &baseName = QString(),
114 const QString &providerLib = QStringLiteral(
"pointcloud" ),
123 SIP_PYOBJECT __repr__();
125 QString str = QStringLiteral(
"<QgsPointCloudLayer: '%1' (%2)>" ).arg( sipCpp->name(), sipCpp->dataProvider() ? sipCpp->dataProvider()->name() : QStringLiteral(
"Invalid" ) );
126 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
138 bool supportsEditing() const override;
139 bool isEditable() const override;
140 bool isModified() const override;
144 bool writeXml( QDomNode &layerNode, QDomDocument &doc, const
QgsReadWriteContext &context ) const override;
146 bool readSymbology( const QDomNode &node, QString &errorMessage,
150 bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage, const
QgsReadWriteContext &context,
156 QString encodedSource( const QString &source, const
QgsReadWriteContext &context ) const override;
157 QString decodedSource( const QString &source, const QString &dataProvider, const
QgsReadWriteContext &context ) const override;
158 QString loadDefaultStyle(
bool &resultFlag
SIP_OUT )
FINAL;
159 QString htmlMetadata() const override;
170 qint64 pointCount() const;
203 bool setSubsetString( const QString &subset );
211 QString subsetString() const;
219 void setSync3DRendererTo2DRenderer(
bool sync );
227 bool sync3DRendererTo2DRenderer() const;
235 bool convertRenderer3DFromRenderer2D();
286 bool commitChanges(
bool stopEditing =
true );
294 QString commitError()
const;
360 bool isReadOnly()
const override {
return true;}
362 void calculateStatistics();
364 void resetRenderer();
366 void loadIndexesForRenderContext(
QgsRenderContext &rendererContext )
const;
372 std::unique_ptr<QgsPointCloudDataProvider> mDataProvider;
374 std::unique_ptr<QgsPointCloudRenderer> mRenderer;
378 LayerOptions mLayerOptions;
380 bool mSync3DRendererTo2DRenderer =
true;
382 PointCloudStatisticsCalculationState mStatisticsCalculationState = PointCloudStatisticsCalculationState::NotStarted;
383 long mStatsCalculationTask = 0;
386 QString mCommitError;
388 friend class TestQgsVirtualPointCloudProvider;
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.