QGIS API Documentation 3.41.0-Master (cea29feecf2)
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:
45 explicit QgsMaterial( Qt3DCore::QNode *parent = nullptr );
46 ~QgsMaterial() override;
47
54 void enableClipping( const QList<QVector4D> &clipPlanesEquations );
55
63 void disableClipping();
64
65 private:
67 static const QString CLIP_PLANE_ARRAY_PARAMETER_NAME;
69 static const QString CLIP_PLANE_MAX_PLANE_PARAMETER_NAME;
71 static const QString CLIP_PLANE_DEFINE;
72
73 bool mClippingEnabled = false;
74};
75
76#endif // QGSMATERIAL_H
~QgsMaterial() override