QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsTiledSceneTile Class Reference

Represents an individual tile from a tiled scene data source. More...

#include <qgstiledscenetile.h>

Public Member Functions

 QgsTiledSceneTile ()
 Constructor for an invalid tile. More...
 
 QgsTiledSceneTile (const QgsTiledSceneTile &other)
 Copy constructor. More...
 
 QgsTiledSceneTile (long long id)
 Constructor for an valid tile. More...
 
 ~QgsTiledSceneTile ()
 
QUrl baseUrl () const
 Returns the tile's base URL. More...
 
const QgsTiledSceneBoundingVolumeboundingVolume () const
 Returns the bounding volume for the tile. More...
 
double geometricError () const
 Returns the tile's geometric error, which is the error, in scene CRS units, of the tile's simplified representation of its source geometry. More...
 
long long id () const
 Returns the tile's unique ID. More...
 
bool isValid () const
 Returns true if the tile is a valid tile (i.e. More...
 
QVariantMap metadata () const
 Returns additional metadata attached to the tile. More...
 
QgsTiledSceneTileoperator= (const QgsTiledSceneTile &other)
 Assignment operator. More...
 
Qgis::TileRefinementProcess refinementProcess () const
 Returns the tile's refinement process. More...
 
QVariantMap resources () const
 Returns the resources attached to the tile. More...
 
void setBaseUrl (const QUrl &baseUrl)
 Sets the tile's base URL. More...
 
void setBoundingVolume (const QgsTiledSceneBoundingVolume &volume)
 Sets the bounding volume for the tile. More...
 
void setGeometricError (double error)
 Sets the tile's geometric error, which is the error, in scene CRS units, of the tile's simplified representation of its source geometry. More...
 
void setMetadata (const QVariantMap &metadata)
 Sets additional metadata attached to the tile. More...
 
void setRefinementProcess (Qgis::TileRefinementProcess process)
 Sets the tile's refinement process. More...
 
void setResources (const QVariantMap &resources)
 Sets the resources attached to the tile. More...
 
void setTransform (const QgsMatrix4x4 &transform)
 Sets the tile's transform. More...
 
const QgsMatrix4x4transform () const
 Returns the tile's transform. More...
 

Detailed Description

Represents an individual tile from a tiled scene data source.

Since
QGIS 3.34

Definition at line 35 of file qgstiledscenetile.h.

Constructor & Destructor Documentation

◆ QgsTiledSceneTile() [1/3]

QgsTiledSceneTile::QgsTiledSceneTile ( )

Constructor for an invalid tile.

See also
isValid()

Definition at line 21 of file qgstiledscenetile.cpp.

◆ QgsTiledSceneTile() [2/3]

QgsTiledSceneTile::QgsTiledSceneTile ( long long  id)
explicit

Constructor for an valid tile.

See also
isValid()

Definition at line 27 of file qgstiledscenetile.cpp.

◆ ~QgsTiledSceneTile()

QgsTiledSceneTile::~QgsTiledSceneTile ( )
default

◆ QgsTiledSceneTile() [3/3]

QgsTiledSceneTile::QgsTiledSceneTile ( const QgsTiledSceneTile other)

Copy constructor.

Definition at line 36 of file qgstiledscenetile.cpp.

Member Function Documentation

◆ baseUrl()

QUrl QgsTiledSceneTile::baseUrl ( ) const

Returns the tile's base URL.

If this tile's resources are relative paths, they would get resolved against this URL.

See also
setBaseUrl()

Definition at line 99 of file qgstiledscenetile.cpp.

◆ boundingVolume()

const QgsTiledSceneBoundingVolume & QgsTiledSceneTile::boundingVolume ( ) const

Returns the bounding volume for the tile.

See also
setBoundingVolume()

Definition at line 71 of file qgstiledscenetile.cpp.

◆ geometricError()

double QgsTiledSceneTile::geometricError ( ) const
inline

Returns the tile's geometric error, which is the error, in scene CRS units, of the tile's simplified representation of its source geometry.

See also
setGeometricError()

Definition at line 141 of file qgstiledscenetile.h.

◆ id()

long long QgsTiledSceneTile::id ( ) const
inline

Returns the tile's unique ID.

Definition at line 68 of file qgstiledscenetile.h.

◆ isValid()

bool QgsTiledSceneTile::isValid ( ) const
inline

Returns true if the tile is a valid tile (i.e.

not default constructed).

Definition at line 63 of file qgstiledscenetile.h.

◆ metadata()

QVariantMap QgsTiledSceneTile::metadata ( ) const

Returns additional metadata attached to the tile.

See also
setMetadata()

Definition at line 109 of file qgstiledscenetile.cpp.

◆ operator=()

QgsTiledSceneTile & QgsTiledSceneTile::operator= ( const QgsTiledSceneTile other)

Assignment operator.

Definition at line 48 of file qgstiledscenetile.cpp.

◆ refinementProcess()

Qgis::TileRefinementProcess QgsTiledSceneTile::refinementProcess ( ) const
inline

Returns the tile's refinement process.

Refinement determines the process by which a lower resolution parent tile's content is handled when its higher resolution children are also included.

See also
setRefinementProcess()

Definition at line 78 of file qgstiledscenetile.h.

◆ resources()

QVariantMap QgsTiledSceneTile::resources ( ) const

Returns the resources attached to the tile.

See also
setResources()

Definition at line 84 of file qgstiledscenetile.cpp.

◆ setBaseUrl()

void QgsTiledSceneTile::setBaseUrl ( const QUrl &  baseUrl)

Sets the tile's base URL.

If this tile's resources are relative paths, they would get resolved against this URL.

See also
baseUrl()

Definition at line 104 of file qgstiledscenetile.cpp.

◆ setBoundingVolume()

void QgsTiledSceneTile::setBoundingVolume ( const QgsTiledSceneBoundingVolume volume)

Sets the bounding volume for the tile.

See also
boundingVolume()

Definition at line 66 of file qgstiledscenetile.cpp.

◆ setGeometricError()

void QgsTiledSceneTile::setGeometricError ( double  error)

Sets the tile's geometric error, which is the error, in scene CRS units, of the tile's simplified representation of its source geometry.

See also
geometricError()

Definition at line 94 of file qgstiledscenetile.cpp.

◆ setMetadata()

void QgsTiledSceneTile::setMetadata ( const QVariantMap &  metadata)

Sets additional metadata attached to the tile.

See also
metadata()

Definition at line 114 of file qgstiledscenetile.cpp.

◆ setRefinementProcess()

void QgsTiledSceneTile::setRefinementProcess ( Qgis::TileRefinementProcess  process)

Sets the tile's refinement process.

Refinement determines the process by which a lower resolution parent tile's content is handled when its higher resolution children are also included.

See also
refinementProcess()

Definition at line 61 of file qgstiledscenetile.cpp.

◆ setResources()

void QgsTiledSceneTile::setResources ( const QVariantMap &  resources)

Sets the resources attached to the tile.

See also
resources()

Definition at line 89 of file qgstiledscenetile.cpp.

◆ setTransform()

void QgsTiledSceneTile::setTransform ( const QgsMatrix4x4 transform)

Sets the tile's transform.

See also
transform()

Definition at line 76 of file qgstiledscenetile.cpp.

◆ transform()

const QgsMatrix4x4 * QgsTiledSceneTile::transform ( ) const
inline

Returns the tile's transform.

May be nullptr if no transform is associated with the tile.

This represents the transformation which must be applied to all geometries from the tile in order to transform them to the dataset's coordinate reference system.

See also
transform()

Definition at line 119 of file qgstiledscenetile.h.


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