QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
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. | |
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.
Definition at line 37 of file qgsabstractvectorlayer3drenderer.h.
void QgsVectorLayer3DTilingSettings::readXml | ( | const QDomElement & | elem | ) |
Reads content of the object from XML.
Definition at line 32 of file qgsabstractvectorlayer3drenderer.cpp.
|
inline |
Sets whether to display bounding boxes of entity's tiles (for debugging)
Definition at line 56 of file qgsabstractvectorlayer3drenderer.h.
|
inline |
Sets number of zoom levels.
See zoomLevelsCount() documentation for more details.
Definition at line 53 of file qgsabstractvectorlayer3drenderer.h.
|
inline |
Returns whether to display bounding boxes of entity's tiles (for debugging)
Definition at line 58 of file qgsabstractvectorlayer3drenderer.h.
void QgsVectorLayer3DTilingSettings::writeXml | ( | QDomElement & | elem | ) | const |
Writes content of the object to XML.
Definition at line 22 of file qgsabstractvectorlayer3drenderer.cpp.
|
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.