File: qgstessellator.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 (104 lines) | stat: -rw-r--r-- 3,387 bytes parent folder | download | duplicates (12)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgstessellator.h                                            *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/





class QgsTessellator
{
%Docstring(signature="appended")
Class that takes care of tessellation of polygons into triangles.

It is expected that client code will create the tessellator object, then
repeatedly call :py:func:`~addPolygon` method that will generate
triangles, and finally call :py:func:`~data` to get final vertex data.

Optionally provides extrusion by adding triangles that serve as walls
when extrusion height is non-zero.
%End

%TypeHeaderCode
#include "qgstessellator.h"
%End
  public:
    QgsTessellator( double originX, double originY, bool addNormals, bool invertNormals = false, bool addBackFaces = false, bool noZ = false,
                    bool addTextureCoords = false, int facade = 3, float textureRotation = 0.0f );
%Docstring
Creates tessellator with a specified origin point of the world (in map
coordinates)
%End

    QgsTessellator( const QgsRectangle &bounds, bool addNormals, bool invertNormals = false, bool addBackFaces = false, bool noZ = false,
                    bool addTextureCoords = false, int facade = 3, float textureRotation = 0.0f );
%Docstring
Creates tessellator with a specified ``bounds`` of input geometry
coordinates. This constructor allows the tessellator to map input
coordinates to a desirable range for numerical stability during
calculations.

If ``noZ`` is ``True``, then a 2-dimensional tessellation only will be
performed and all z coordinates will be ignored.

.. versionadded:: 3.10
%End

    void addPolygon( const QgsPolygon &polygon, float extrusionHeight );
%Docstring
Tessellates a triangle and adds its vertex entries to the output data
array
%End

    QVector<float> data() const;
%Docstring
Returns array of triangle vertex data

Vertice coordinates are stored as (x, z, -y)
%End

    int dataVerticesCount() const;
%Docstring
Returns the number of vertices stored in the output data array
%End

    int stride() const;
%Docstring
Returns size of one vertex entry in bytes
%End


    float zMinimum() const;
%Docstring
Returns minimal Z value of the data (in world coordinates)

.. versionadded:: 3.12
%End

    float zMaximum() const;
%Docstring
Returns maximal Z value of the data (in world coordinates)

.. versionadded:: 3.12
%End

    QString error() const;
%Docstring
Returns a descriptive error string if the tessellation failed.

.. versionadded:: 3.34
%End

};

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