QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | List of all members
QgsVectorLayer3DTilingSettings Class Reference

3 More...

#include <qgsabstractvectorlayer3drenderer.h>

Public Member Functions

void readXml (const QDomElement &elem)
 Reads content of the object from XML. More...
 
void setShowBoundingBoxes (bool enabled)
 Sets whether to display bounding boxes of entity's tiles (for debugging) More...
 
void setZoomLevelsCount (int count)
 Sets number of zoom levels. More...
 
bool showBoundingBoxes () const
 Returns whether to display bounding boxes of entity's tiles (for debugging) More...
 
void writeXml (QDomElement &elem) const
 Writes content of the object to XML. More...
 
int zoomLevelsCount () const
 Returns number of zoom levels. More...
 

Detailed Description

3

This class defines configuration of how a vector layer gets tiled for 3D rendering.

Zoom levels count tells how deep will be the quadtree and thus how many tiles will be generated ( 4 ^ (count-1) ). So for example, for count=1 there will be just a single tile for the whole layer, for count=3 there will be 16 tiles.

Since
QGIS 3.12

Definition at line 37 of file qgsabstractvectorlayer3drenderer.h.

Member Function Documentation

◆ readXml()

void QgsVectorLayer3DTilingSettings::readXml ( const QDomElement &  elem)

Reads content of the object from XML.

Definition at line 32 of file qgsabstractvectorlayer3drenderer.cpp.

◆ setShowBoundingBoxes()

void QgsVectorLayer3DTilingSettings::setShowBoundingBoxes ( bool  enabled)
inline

Sets whether to display bounding boxes of entity's tiles (for debugging)

Definition at line 56 of file qgsabstractvectorlayer3drenderer.h.

◆ setZoomLevelsCount()

void QgsVectorLayer3DTilingSettings::setZoomLevelsCount ( int  count)
inline

Sets number of zoom levels.

See zoomLevelsCount() documentation for more details.

Definition at line 53 of file qgsabstractvectorlayer3drenderer.h.

◆ showBoundingBoxes()

bool QgsVectorLayer3DTilingSettings::showBoundingBoxes ( ) const
inline

Returns whether to display bounding boxes of entity's tiles (for debugging)

Definition at line 58 of file qgsabstractvectorlayer3drenderer.h.

◆ writeXml()

void QgsVectorLayer3DTilingSettings::writeXml ( QDomElement &  elem) const

Writes content of the object to XML.

Definition at line 22 of file qgsabstractvectorlayer3drenderer.cpp.

◆ zoomLevelsCount()

int QgsVectorLayer3DTilingSettings::zoomLevelsCount ( ) const
inline

Returns number of zoom levels.

One zoom level means there will be one tile. Every extra zoom level multiplies number of tiles by four. For example, three zoom levels will produce 16 tiles at the highest zoom level. It is therefore recommended to keep the number of zoom levels low to prevent excessive number of tiles.

Definition at line 48 of file qgsabstractvectorlayer3drenderer.h.


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