Class: QgsVectorLayer3DTilingSettings¶
- class qgis._3d.QgsVectorLayer3DTilingSettings¶
Bases:
sip.wrapper
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.
New in version 3.12:
Methods
Reads content of the object from XML
Sets whether to display bounding boxes of entity's tiles (for debugging)
Sets number of zoom levels.
Returns whether to display bounding boxes of entity's tiles (for debugging)
Writes content of the object to XML
Returns number of zoom levels.
- readXml(self, elem: QDomElement)¶
Reads content of the object from XML
- Parameters:
elem (QDomElement) –
- setShowBoundingBoxes(self, enabled: bool)¶
Sets whether to display bounding boxes of entity’s tiles (for debugging)
- Parameters:
enabled (bool) –
- setZoomLevelsCount(self, count: int)¶
Sets number of zoom levels. See
zoomLevelsCount()
documentation for more details.- Parameters:
count (int) –
- showBoundingBoxes(self) bool ¶
Returns whether to display bounding boxes of entity’s tiles (for debugging)
- Return type:
bool
- writeXml(self, elem: QDomElement)¶
Writes content of the object to XML
- Parameters:
elem (QDomElement) –
- zoomLevelsCount(self) int ¶
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.
- Return type:
int