QGIS API Documentation 3.39.0-Master (73c886ac97c)
Loading...
Searching...
No Matches
qgstiledscenedataitems.h
Go to the documentation of this file.
1/***************************************************************************
2 qgstiledscenedataitems.h
3 ---------------------
4 begin : June 2023
5 copyright : (C) 2023 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef QGSTILEDSCENEDATAITEMS_H
16#define QGSTILEDSCENEDATAITEMS_H
17
18#include "qgsconnectionsitem.h"
19#include "qgslayeritem.h"
20#include "qgsdataitemprovider.h"
21
23#define SIP_NO_FILE
24
26class CORE_EXPORT QgsTiledSceneRootItem : public QgsConnectionsRootItem
27{
28 Q_OBJECT
29 public:
30 QgsTiledSceneRootItem( QgsDataItem *parent, QString name, QString path );
31
32 QVector<QgsDataItem *> createChildren() override;
33
34 QVariant sortKey() const override { return 8; }
35
36};
37
39class CORE_EXPORT QgsTiledSceneLayerItem : public QgsLayerItem
40{
41 Q_OBJECT
42 public:
43 QgsTiledSceneLayerItem( QgsDataItem *parent, QString name, QString path, const QString &encodedUri, const QString &provider );
44
45};
46
47
49class QgsTiledSceneDataItemProvider : public QgsDataItemProvider
50{
51 public:
52 QString name() override;
53 QString dataProviderKey() const override;
55 QgsDataItem *createDataItem( const QString &path, QgsDataItem *parentItem ) override;
56};
57
59
60#endif // QGSTILEDSCENEDATAITEMS_H
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
Definition qgis.h:748
A Collection that represents a root group of connections from a single data provider.
This is the interface for those who want to add custom data items to the browser tree.
virtual QString dataProviderKey() const
Returns the data provider key (if the data item provider is associated with a data provider),...
virtual QString name()=0
Human-readable name of the provider name.
virtual QgsDataItem * createDataItem(const QString &path, QgsDataItem *parentItem)=0
Create a new instance of QgsDataItem (or nullptr) for given path and parent item.
virtual Qgis::DataItemProviderCapabilities capabilities() const =0
Returns combination of flags from QgsDataProvider::DataCapabilities.
Base class for all items in the model.
Definition qgsdataitem.h:46
virtual QVariant sortKey() const
Returns the sorting key for the item.
virtual QVector< QgsDataItem * > createChildren()
Create children.
Item that represents a layer that can be opened with one of the providers.