QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
QgsAbstractTiledSceneIndex Class Referenceabstract

An abstract base class for tiled scene data provider indices. More...

#include <qgstiledsceneindex.h>

Public Member Functions

 QgsAbstractTiledSceneIndex ()
 
 QgsAbstractTiledSceneIndex (const QgsAbstractTiledSceneIndex &other)=delete
 
virtual ~QgsAbstractTiledSceneIndex ()
 
virtual Qgis::TileChildrenAvailability childAvailability (long long id) const =0
 Returns the availability for a tile's children.
 
virtual QVector< long long > childTileIds (long long id) const =0
 Returns a list of the tile IDs of any children for the tile with matching id.
 
virtual bool fetchHierarchy (long long id, QgsFeedback *feedback=nullptr)=0
 Populates the tile with the given id by fetching any sub datasets attached to the tile.
 
virtual QgsTiledSceneTile getTile (long long id)=0
 Returns the tile with matching id, or an invalid tile if the matching tile is not available.
 
virtual QVector< long long > getTiles (const QgsTiledSceneRequest &request)=0
 Returns the tile IDs which match the given request.
 
QgsAbstractTiledSceneIndexoperator= (const QgsAbstractTiledSceneIndex &other)=delete
 
virtual long long parentTileId (long long id) const =0
 Returns the tile ID of the parent tile of the tile with matching id, or -1 if the tile has no parent.
 
QByteArray retrieveContent (const QString &uri, QgsFeedback *feedback=nullptr)
 Retrieves index content for the specified uri.
 
virtual QgsTiledSceneTile rootTile () const =0
 Returns the root tile for the index.
 

Protected Member Functions

virtual QByteArray fetchContent (const QString &uri, QgsFeedback *feedback=nullptr)=0
 Fetches index content for the specified uri.
 

Detailed Description

An abstract base class for tiled scene data provider indices.

Warning
Subclasses must take care to ensure that their operation is thread safe, as the same index object will potentially be used by multiple threads concurrently.
Since
QGIS 3.34

Definition at line 43 of file qgstiledsceneindex.h.

Constructor & Destructor Documentation

◆ QgsAbstractTiledSceneIndex() [1/2]

QgsAbstractTiledSceneIndex::QgsAbstractTiledSceneIndex ( )

Definition at line 26 of file qgstiledsceneindex.cpp.

◆ ~QgsAbstractTiledSceneIndex()

QgsAbstractTiledSceneIndex::~QgsAbstractTiledSceneIndex ( )
virtualdefault

◆ QgsAbstractTiledSceneIndex() [2/2]

QgsAbstractTiledSceneIndex::QgsAbstractTiledSceneIndex ( const QgsAbstractTiledSceneIndex other)
delete

Member Function Documentation

◆ childAvailability()

virtual Qgis::TileChildrenAvailability QgsAbstractTiledSceneIndex::childAvailability ( long long  id) const
pure virtual

Returns the availability for a tile's children.

See also
fetchHierarchy()

◆ childTileIds()

virtual QVector< long long > QgsAbstractTiledSceneIndex::childTileIds ( long long  id) const
pure virtual

Returns a list of the tile IDs of any children for the tile with matching id.

See also
parentTileId()

◆ fetchContent()

virtual QByteArray QgsAbstractTiledSceneIndex::fetchContent ( const QString &  uri,
QgsFeedback feedback = nullptr 
)
protectedpure virtual

Fetches index content for the specified uri.

This must be implemented in subclasses to retrieve the corresponding binary content, including performing any necessary network requests.

The optional feedback argument can be used the cancel the request early.

◆ fetchHierarchy()

virtual bool QgsAbstractTiledSceneIndex::fetchHierarchy ( long long  id,
QgsFeedback feedback = nullptr 
)
pure virtual

Populates the tile with the given id by fetching any sub datasets attached to the tile.

Blocks while the child fetching is in progress.

Returns true if the population was successful.

See also
childAvailability()

◆ getTile()

virtual QgsTiledSceneTile QgsAbstractTiledSceneIndex::getTile ( long long  id)
pure virtual

Returns the tile with matching id, or an invalid tile if the matching tile is not available.

◆ getTiles()

virtual QVector< long long > QgsAbstractTiledSceneIndex::getTiles ( const QgsTiledSceneRequest request)
pure virtual

Returns the tile IDs which match the given request.

May return an empty list if no data satisfies the request.

◆ operator=()

QgsAbstractTiledSceneIndex & QgsAbstractTiledSceneIndex::operator= ( const QgsAbstractTiledSceneIndex other)
delete

◆ parentTileId()

virtual long long QgsAbstractTiledSceneIndex::parentTileId ( long long  id) const
pure virtual

Returns the tile ID of the parent tile of the tile with matching id, or -1 if the tile has no parent.

See also
childTileIds()

◆ retrieveContent()

QByteArray QgsAbstractTiledSceneIndex::retrieveContent ( const QString &  uri,
QgsFeedback feedback = nullptr 
)

Retrieves index content for the specified uri.

The content is cached within the index, so multiple calls are potentially cost-free.

The optional feedback argument can be used the cancel the request early.

Definition at line 33 of file qgstiledsceneindex.cpp.

◆ rootTile()

virtual QgsTiledSceneTile QgsAbstractTiledSceneIndex::rootTile ( ) const
pure virtual

Returns the root tile for the index.


The documentation for this class was generated from the following files: