QGIS API Documentation 3.39.0-Master (8f1a6e30482)
Loading...
Searching...
No Matches
qgsmaterial.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmaterial.h
3 --------------------------------------
4 Date : July 2024
5 Copyright : (C) 2024 by Jean Felder
6 Email : jean dot felder at oslandia 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 QGSMATERIAL_H
17#define QGSMATERIAL_H
18
19#define SIP_NO_FILE
20
21#include "qgis_3d.h"
22
23#include <Qt3DRender/QMaterial>
24#include <QList>
25#include <QVector4D>
26
27namespace Qt3DRender
28{
29 class QEffect;
30}
31
38class _3D_EXPORT QgsMaterial : public Qt3DRender::QMaterial
39{
40 Q_OBJECT
41 public:
42
46 explicit QgsMaterial( Qt3DCore::QNode *parent = nullptr );
47 ~QgsMaterial() override;
48
55 void enableClipping( const QList<QVector4D> &clipPlanesEquations );
56
64 void disableClipping();
65
66 private:
67
69 static const QString CLIP_PLANE_ARRAY_PARAMETER_NAME;
71 static const QString CLIP_PLANE_MAX_PLANE_PARAMETER_NAME;
73 static const QString CLIP_PLANE_DEFINE;
74
75 bool mClippingEnabled = false;
76
77};
78
79#endif // QGSMATERIAL_H
~QgsMaterial() override