QGIS API Documentation
3.43.0-Master (b60ef06885e)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
w
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
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
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
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
e
f
g
h
i
l
n
o
p
q
r
s
t
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
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
3d
symbols
qgspoint3dbillboardmaterial.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgspoint3dbillboardmaterial.h
3
--------------------------------------
4
Date : Jul 2019
5
Copyright : (C) 2019 by Ismail Sunni
6
Email : imajimatika 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
#ifndef QGSPOINT3DBILLBOARDMATERIAL_H
16
#define QGSPOINT3DBILLBOARDMATERIAL_H
17
18
#include <QObject>
19
#include <Qt3DRender/QParameter>
20
#include <Qt3DRender/QTexture>
21
22
#include "
qgsmaterial.h
"
23
24
#define SIP_NO_FILE
25
26
class
QgsMarkerSymbol
;
27
class
Qgs3DRenderContext
;
28
37
class
QgsPoint3DBillboardMaterial
:
public
QgsMaterial
38
{
39
Q_OBJECT
40
41
public
:
42
QgsPoint3DBillboardMaterial
();
43
~QgsPoint3DBillboardMaterial
()
override
;
44
46
void
setSize
(
const
QSizeF
size
);
48
QSizeF
size
()
const
;
49
51
void
setViewportSize
(
const
QSizeF
size
);
53
QSizeF
windowSize
()
const
;
54
56
void
useDefaultSymbol
(
const
Qgs3DRenderContext
&context,
bool
selected =
false
);
57
59
void
setTexture2DFromSymbol
(
QgsMarkerSymbol
*markerSymbol,
const
Qgs3DRenderContext
&context,
bool
selected =
false
);
60
61
private
:
63
void
setTexture2DFromImage( QImage image,
double
size
= 100 );
64
66
void
setTexture2DFromTextureImage( Qt3DRender::QAbstractTextureImage *textureImage );
67
68
Qt3DRender::QParameter *mSize =
nullptr
;
69
Qt3DRender::QParameter *mViewportSize =
nullptr
;
70
Qt3DRender::QParameter *mTexture2D =
nullptr
;
71
};
37
class
QgsPoint3DBillboardMaterial
:
public
QgsMaterial
{
…
};
72
73
74
#endif
// QGSPOINT3DBILLBOARDMATERIAL_H
Qgs3DRenderContext
Rendering context for preparation of 3D entities.
Definition
qgs3drendercontext.h:48
QgsMarkerSymbol
A marker symbol type, for rendering Point and MultiPoint geometries.
Definition
qgsmarkersymbol.h:31
QgsMaterial
Base class for all materials used within QGIS 3D views.
Definition
qgsmaterial.h:39
QgsPoint3DBillboardMaterial
Material of the billboard rendering for points in 3D map view.
Definition
qgspoint3dbillboardmaterial.h:38
QgsPoint3DBillboardMaterial::useDefaultSymbol
void useDefaultSymbol(const Qgs3DRenderContext &context, bool selected=false)
Set default symbol for the texture with context and selected parameter for rendering.
Definition
qgspoint3dbillboardmaterial.cpp:117
QgsPoint3DBillboardMaterial::windowSize
QSizeF windowSize() const
Returns the size of the view port.
Definition
qgspoint3dbillboardmaterial.cpp:102
QgsPoint3DBillboardMaterial::~QgsPoint3DBillboardMaterial
~QgsPoint3DBillboardMaterial() override
QgsPoint3DBillboardMaterial::setTexture2DFromSymbol
void setTexture2DFromSymbol(QgsMarkerSymbol *markerSymbol, const Qgs3DRenderContext &context, bool selected=false)
Set markerSymbol for the texture with context and selected parameter for rendering.
Definition
qgspoint3dbillboardmaterial.cpp:124
QgsPoint3DBillboardMaterial::QgsPoint3DBillboardMaterial
QgsPoint3DBillboardMaterial()
Definition
qgspoint3dbillboardmaterial.cpp:33
QgsPoint3DBillboardMaterial::size
QSizeF size() const
Returns the billboard size.
Definition
qgspoint3dbillboardmaterial.cpp:92
QgsPoint3DBillboardMaterial::setViewportSize
void setViewportSize(const QSizeF size)
Set the size of the view port.
Definition
qgspoint3dbillboardmaterial.cpp:97
QgsPoint3DBillboardMaterial::setSize
void setSize(const QSizeF size)
Set the billboard size.
Definition
qgspoint3dbillboardmaterial.cpp:87
qgsmaterial.h
Generated on Sun Apr 6 2025 18:57:15 for QGIS API Documentation by
1.9.8