File: qgsabstract3drenderer.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 154
file content (74 lines) | stat: -rw-r--r-- 2,631 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/./3d/qgsabstract3drenderer.h                                *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/






class QgsAbstract3DRenderer /Abstract/
{
%Docstring(signature="appended")
Base class for all renderers that may to participate in 3D view.

3D renderers implement the method :py:func:`~createEntity` that returns
a new 3D entity - that entity will be added to the 3D scene to represent
data in renderer's display style.

Renderers may store some custom properties (e.g. materials, sizes) that
are written to and read from XML. It is therefore not recommended to
store large amount of data within a renderer (e.g. arrays of vertices).
%End

%TypeHeaderCode
#include "qgsabstract3drenderer.h"
%End
  public:
    virtual ~QgsAbstract3DRenderer();

    virtual QString type() const = 0;
%Docstring
Returns unique identifier of the renderer class (used to identify
subclass)
%End
    virtual QgsAbstract3DRenderer *clone() const = 0 /Factory/;
%Docstring
Returns a cloned instance
%End

    virtual void writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const = 0;
%Docstring
Writes renderer's properties to given XML element
%End
    virtual void readXml( const QDomElement &elem, const QgsReadWriteContext &context ) = 0;
%Docstring
Reads renderer's properties from given XML element
%End
    virtual void resolveReferences( const QgsProject &project );
%Docstring
Resolves references to other objects - second phase of loading - after
:py:func:`~QgsAbstract3DRenderer.readXml`
%End

  protected:

    QgsAbstract3DRenderer();

  private:
    QgsAbstract3DRenderer( const QgsAbstract3DRenderer & );
    QgsAbstract3DRenderer &operator=( const QgsAbstract3DRenderer & );
};


/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/./3d/qgsabstract3drenderer.h                                *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/