|
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/3d/qgsvectorlayer3drenderer.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +class QgsVectorLayer3DRendererMetadata : Qgs3DRendererAbstractMetadata |
| 18 | +{ |
| 19 | +%Docstring |
| 20 | +Metadata for vector layer 3D renderer to allow creation of its instances from XML |
| 21 | + |
| 22 | +.. warning:: |
| 23 | + |
| 24 | + This is not considered stable API, and may change in future QGIS releases. It is |
| 25 | + exposed to the Python bindings as a tech preview only. |
| 26 | + |
| 27 | +.. versionadded:: 3.0 |
| 28 | +%End |
| 29 | + |
| 30 | +%TypeHeaderCode |
| 31 | +#include "qgsvectorlayer3drenderer.h" |
| 32 | +%End |
| 33 | + public: |
| 34 | + QgsVectorLayer3DRendererMetadata(); |
| 35 | + |
| 36 | + virtual QgsAbstract3DRenderer *createRenderer( QDomElement &elem, const QgsReadWriteContext &context ) /Factory/; |
| 37 | + |
| 38 | +%Docstring |
| 39 | +Creates an instance of a 3D renderer based on a DOM element with renderer configuration |
| 40 | +%End |
| 41 | +}; |
| 42 | + |
| 43 | + |
| 44 | +class QgsVectorLayer3DRenderer : QgsAbstract3DRenderer |
| 45 | +{ |
| 46 | +%Docstring |
| 47 | +3D renderer that renders all features of a vector layer with the same 3D symbol. |
| 48 | +The appearance is completely defined by the symbol. |
| 49 | + |
| 50 | +.. versionadded:: 3.0 |
| 51 | +%End |
| 52 | + |
| 53 | +%TypeHeaderCode |
| 54 | +#include "qgsvectorlayer3drenderer.h" |
| 55 | +%End |
| 56 | + public: |
| 57 | + explicit QgsVectorLayer3DRenderer( QgsAbstract3DSymbol *s /Transfer/ = 0 ); |
| 58 | +%Docstring |
| 59 | +Takes ownership of the symbol object |
| 60 | +%End |
| 61 | + |
| 62 | + void setLayer( QgsVectorLayer *layer ); |
| 63 | +%Docstring |
| 64 | +Sets vector layer associated with the renderer |
| 65 | +%End |
| 66 | + QgsVectorLayer *layer() const; |
| 67 | +%Docstring |
| 68 | +Returns vector layer associated with the renderer |
| 69 | +%End |
| 70 | + |
| 71 | + void setSymbol( QgsAbstract3DSymbol *symbol /Transfer/ ); |
| 72 | +%Docstring |
| 73 | +Sets 3D symbol associated with the renderer. Takes ownership of the symbol |
| 74 | +%End |
| 75 | + const QgsAbstract3DSymbol *symbol() const; |
| 76 | +%Docstring |
| 77 | +Returns 3D symbol associated with the renderer |
| 78 | +%End |
| 79 | + |
| 80 | + virtual QString type() const; |
| 81 | + virtual QgsVectorLayer3DRenderer *clone() const /Factory/; |
| 82 | + |
| 83 | + |
| 84 | + virtual void writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const; |
| 85 | + |
| 86 | + virtual void readXml( const QDomElement &elem, const QgsReadWriteContext &context ); |
| 87 | + |
| 88 | + virtual void resolveReferences( const QgsProject &project ); |
| 89 | + |
| 90 | + |
| 91 | + private: |
| 92 | + QgsVectorLayer3DRenderer( const QgsVectorLayer3DRenderer & ); |
| 93 | + QgsVectorLayer3DRenderer &operator=( const QgsVectorLayer3DRenderer & ); |
| 94 | +}; |
| 95 | + |
| 96 | + |
| 97 | +/************************************************************************ |
| 98 | + * This file has been generated automatically from * |
| 99 | + * * |
| 100 | + * src/3d/qgsvectorlayer3drenderer.h * |
| 101 | + * * |
| 102 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 103 | + ************************************************************************/ |
0 commit comments