QGIS API Documentation
3.36.0-Maidenhead (09951dc0acf)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
3d
qgsgltf3dutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgltfutils.h
3
--------------------------------------
4
Date : July 2023
5
Copyright : (C) 2023 by Martin Dobias
6
Email : wonder dot sk at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSGLTF3DUTILS_H
17
#define QGSGLTF3DUTILS_H
18
20
21
//
22
// W A R N I N G
23
// -------------
24
//
25
// This file is not part of the QGIS API. It exists purely as an
26
// implementation detail. This header file may change from version to
27
// version without notice, or even be removed.
28
//
29
30
#define SIP_NO_FILE
31
32
#include "qgis_3d.h"
33
34
#include "
qgsmatrix4x4.h
"
35
36
class
QgsCoordinateTransform
;
37
38
namespace
Qt3DCore
39
{
40
class
QEntity;
41
}
42
50
class
_3D_EXPORT QgsGltf3DUtils
51
{
52
public
:
53
55
struct
EntityTransform
56
{
58
QgsVector3D
sceneOriginTargetCrs;
60
QgsMatrix4x4
tileTransform;
62
const
QgsCoordinateTransform
*ecefToTargetCrs =
nullptr
;
63
65
Qgis::Axis
gltfUpAxis =
Qgis::Axis::Y
;
66
67
double
zValueScale = 1;
68
double
zValueOffset = 0;
69
};
70
84
static
Qt3DCore::QEntity *gltfToEntity(
const
QByteArray &data,
const
EntityTransform &transform,
const
QString &baseUri, QStringList *errors =
nullptr
);
85
86
};
87
89
90
#endif
// QGSGLTF3DUTILS_H
Qgis::Axis
Axis
Cartesian axes.
Definition
qgis.h:1968
Qgis::Axis::Y
@ Y
Y-axis.
QgsCoordinateTransform
Class for doing transforms between two map coordinate systems.
Definition
qgscoordinatetransform.h:58
QgsMatrix4x4
A simple 4x4 matrix implementation useful for transformation in 3D space.
Definition
qgsmatrix4x4.h:40
QgsVector3D
Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double precisi...
Definition
qgsvector3d.h:31
Qt3DCore
Definition
qgsabstract3drenderer.h:31
qgsmatrix4x4.h
Generated on Mon Feb 26 2024 10:02:44 for QGIS API Documentation by
1.9.8