mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
reverting 3fb0f66 (followup #45348) Using --no-public-is-protected (default on Windows) also works on Linux and fixes #45331 too
123 lines
3.8 KiB
Plaintext
123 lines
3.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/3d/qgsabstractvectorlayer3drenderer.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsVectorLayer3DTilingSettings
|
|
{
|
|
%Docstring(signature="appended")
|
|
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.
|
|
|
|
.. versionadded:: 3.12
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsabstractvectorlayer3drenderer.h"
|
|
%End
|
|
public:
|
|
|
|
int zoomLevelsCount() const;
|
|
%Docstring
|
|
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.
|
|
%End
|
|
|
|
void setZoomLevelsCount( int count );
|
|
%Docstring
|
|
Sets number of zoom levels. See :py:func:`~QgsVectorLayer3DTilingSettings.zoomLevelsCount` documentation for more details.
|
|
%End
|
|
|
|
void setShowBoundingBoxes( bool enabled );
|
|
%Docstring
|
|
Sets whether to display bounding boxes of entity's tiles (for debugging)
|
|
%End
|
|
bool showBoundingBoxes() const;
|
|
%Docstring
|
|
Returns whether to display bounding boxes of entity's tiles (for debugging)
|
|
%End
|
|
|
|
void writeXml( QDomElement &elem ) const;
|
|
%Docstring
|
|
Writes content of the object to XML
|
|
%End
|
|
void readXml( const QDomElement &elem );
|
|
%Docstring
|
|
Reads content of the object from XML
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
class QgsAbstractVectorLayer3DRenderer : QgsAbstract3DRenderer /Abstract/
|
|
{
|
|
%Docstring(signature="appended")
|
|
Base class for 3D renderers that are based on vector layers.
|
|
|
|
.. versionadded:: 3.12
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsabstractvectorlayer3drenderer.h"
|
|
%End
|
|
public:
|
|
QgsAbstractVectorLayer3DRenderer();
|
|
|
|
void setLayer( QgsVectorLayer *layer );
|
|
%Docstring
|
|
Sets vector layer associated with the renderer
|
|
%End
|
|
QgsVectorLayer *layer() const;
|
|
%Docstring
|
|
Returns vector layer associated with the renderer
|
|
%End
|
|
|
|
void setTilingSettings( const QgsVectorLayer3DTilingSettings &settings );
|
|
%Docstring
|
|
Sets tiling settings of the renderer
|
|
%End
|
|
QgsVectorLayer3DTilingSettings tilingSettings() const;
|
|
%Docstring
|
|
Returns tiling settings of the renderer
|
|
%End
|
|
|
|
virtual void resolveReferences( const QgsProject &project );
|
|
|
|
|
|
protected:
|
|
void copyBaseProperties( QgsAbstractVectorLayer3DRenderer *r ) const;
|
|
%Docstring
|
|
Copies common properties of this object to another object
|
|
%End
|
|
void writeXmlBaseProperties( QDomElement &elem, const QgsReadWriteContext &context ) const;
|
|
%Docstring
|
|
Writes common properties of this object to DOM element
|
|
%End
|
|
void readXmlBaseProperties( const QDomElement &elem, const QgsReadWriteContext &context );
|
|
%Docstring
|
|
Reads common properties of this object from DOM element
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/3d/qgsabstractvectorlayer3drenderer.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|