Class: QgsTiledSceneIndex¶
An index for tiled scene data providers.
This is a shallow copy, implicitly shared container for an underlying
QgsAbstractTiledSceneIndex
implementation.
The class is thread safe and can be used safely across multiple threads or transferred between threads.
Added in version 3.34.
Methods
Returns the availability for a tile's children. |
|
Returns a list of the tile IDs of any children for the tile with matching id. |
|
Populates the tile with the given id by fetching any sub datasets attached to the tile. |
|
Returns the tile with matching id, or an invalid tile if the matching tile is not available. |
|
Returns the list of tile IDs which match the given request. |
|
Returns |
|
Returns the tile ID of the parent tile of the tile with matching id, or -1 if the tile has no parent. |
|
Retrieves index content for the specified uri. |
|
Returns the root tile for the index. |
- class qgis.core.QgsTiledSceneIndex[source]¶
Bases:
object
- childAvailability(self, id: int) Qgis.TileChildrenAvailability [source]¶
Returns the availability for a tile’s children.
See also
- Parameters:
id (int)
- Return type:
- childTileIds(self, id: int) List[int] ¶
Returns a list of the tile IDs of any children for the tile with matching
id
.See also
- Parameters:
id (int)
- Return type:
List[int]
- fetchHierarchy(self, id: int, feedback: QgsFeedback | None = None) bool [source]¶
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
- Parameters:
id (int)
feedback (Optional[QgsFeedback] = None)
- Return type:
bool
- getTile(self, id: int) QgsTiledSceneTile [source]¶
Returns the tile with matching
id
, or an invalid tile if the matching tile is not available.- Parameters:
id (int)
- Return type:
- getTiles(self, request: QgsTiledSceneRequest) List[int] ¶
Returns the list of tile IDs which match the given
request
.May return an empty list if no data satisfies the request.
- Parameters:
request (QgsTiledSceneRequest)
- Return type:
List[int]
- parentTileId(self, id: int) int ¶
Returns the tile ID of the parent tile of the tile with matching
id
, or -1 if the tile has no parent.See also
- Parameters:
id (int)
- Return type:
int
- retrieveContent(self, uri: str | None, feedback: QgsFeedback | None = None) QByteArray [source]¶
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.- Parameters:
uri (Optional[str])
feedback (Optional[QgsFeedback] = None)
- Return type:
QByteArray
- rootTile(self) QgsTiledSceneTile [source]¶
Returns the root tile for the index.
- Return type: