QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
3d
materials
qgsglobematerial.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsglobematerial.h
3
--------------------------------------
4
Date : April 2025
5
Copyright : (C) 2025 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 QGSGLOBEMATERIAL_H
17
#define QGSGLOBEMATERIAL_H
18
19
#include "qgis_3d.h"
20
#include "
qgsmaterial.h
"
21
22
#include <QObject>
23
24
#define SIP_NO_FILE
25
26
// adapted from Qt's qtexturematerial.h
27
namespace
Qt3DRender
28
{
29
30
class
QFilterKey;
31
class
QAbstractTexture;
32
class
QTechnique;
33
class
QParameter;
34
class
QShaderProgram;
35
class
QRenderPass;
36
37
}
// namespace Qt3DRender
38
40
46
class
_3D_EXPORT QgsGlobeMaterial :
public
QgsMaterial
47
{
48
Q_OBJECT
49
50
public
:
54
explicit
QgsGlobeMaterial( Qt3DCore::QNode *parent =
nullptr
);
55
~QgsGlobeMaterial()
override
;
56
57
Qt3DRender::QAbstractTexture *texture()
const
;
58
59
public
slots:
60
67
void
setTexture( Qt3DRender::QAbstractTexture *texture );
68
69
private
:
70
void
init();
71
72
Qt3DRender::QParameter *mTextureParameter =
nullptr
;
73
Qt3DRender::QParameter *mDiffuseTextureScaleParameter =
nullptr
;
74
Qt3DRender::QTechnique *mGL3Technique =
nullptr
;
75
Qt3DRender::QRenderPass *mGL3RenderPass =
nullptr
;
76
Qt3DRender::QShaderProgram *mGL3Shader =
nullptr
;
77
Qt3DRender::QFilterKey *mFilterKey =
nullptr
;
78
};
79
81
82
#endif
// QGSGLOBEMATERIAL_H
QgsMaterial
Base class for all materials used within QGIS 3D views.
Definition
qgsmaterial.h:40
Qt3DRender
Definition
qgs3d.h:45
qgsmaterial.h
Generated on
for QGIS API Documentation by
1.17.0