16 #ifndef QGSRULEBASEDCHUNKLOADER_H
17 #define QGSRULEBASEDCHUNKLOADER_H
41 class QgsFeature3DHandler;
51 class QgsRuleBasedChunkLoaderFactory :
public QgsChunkLoaderFactory
56 ~QgsRuleBasedChunkLoaderFactory()
override;
59 virtual QgsChunkLoader *createChunkLoader( QgsChunkNode *node )
const override;
63 std::unique_ptr<QgsRuleBased3DRenderer::Rule> mRootRule;
76 class QgsRuleBasedChunkLoader :
public QgsChunkLoader
80 QgsRuleBasedChunkLoader(
const QgsRuleBasedChunkLoaderFactory *factory, QgsChunkNode *node );
81 ~QgsRuleBasedChunkLoader()
override;
83 virtual void cancel()
override;
84 virtual Qt3DCore::QEntity *createEntity( Qt3DCore::QEntity *parent )
override;
87 const QgsRuleBasedChunkLoaderFactory *mFactory;
89 Qgs3DRenderContext mContext;
90 std::unique_ptr<QgsVectorLayerFeatureSource> mSource;
91 bool mCanceled =
false;
92 QFutureWatcher<void> *mFutureWatcher =
nullptr;
93 std::unique_ptr<QgsRuleBased3DRenderer::Rule> mRootRule;
108 class QgsRuleBasedChunkedEntity :
public QgsChunkedEntity
115 ~QgsRuleBasedChunkedEntity();
120 #endif // QGSRULEBASEDCHUNKLOADER_H