QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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.
 
void setShowBoundingBoxes (bool enabled)
 Sets whether to display bounding boxes of entity's tiles (for debugging)
 
void setZoomLevelsCount (int count)
 Sets number of zoom levels.
 
bool showBoundingBoxes () const
 Returns whether to display bounding boxes of entity's tiles (for debugging)
 
void writeXml (QDomElement &elem) const
 Writes content of the object to XML.
 
int zoomLevelsCount () const
 Returns number of zoom levels.
 

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 31 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 55 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 52 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 57 of file qgsabstractvectorlayer3drenderer.h.

◆ writeXml()

void QgsVectorLayer3DTilingSettings::writeXml ( QDomElement &  elem) const

Writes content of the object to XML.

Definition at line 21 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 47 of file qgsabstractvectorlayer3drenderer.h.


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