Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwavefrontmesh_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWAVEFRONTMESH_P_H
5#define QWAVEFRONTMESH_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
20#include <QtQuick/private/qquickshadereffectmesh_p.h>
21
22#include <QtCore/qurl.h>
23#include <QtGui/qvector3d.h>
24
26
28class Q_LABSWAVEFRONTMESH_EXPORT QWavefrontMesh : public QQuickShaderEffectMesh
29{
31 Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged FINAL)
32 Q_PROPERTY(Error lastError READ lastError NOTIFY lastErrorChanged FINAL)
33 Q_PROPERTY(QVector3D projectionPlaneV READ projectionPlaneV WRITE setProjectionPlaneV NOTIFY projectionPlaneVChanged FINAL)
34 Q_PROPERTY(QVector3D projectionPlaneW READ projectionPlaneW WRITE setProjectionPlaneW NOTIFY projectionPlaneWChanged FINAL)
35 QML_NAMED_ELEMENT(WavefrontMesh)
37
38public:
53
54 QWavefrontMesh(QObject *parent = nullptr);
55 ~QWavefrontMesh() override;
56
57 QUrl source() const;
58 void setSource(const QUrl &url);
59
60 Error lastError() const;
61 void setLastError(Error lastError);
62
63 bool validateAttributes(const QList<QByteArray> &attributes, int *posIndex) override;
64 QSGGeometry *updateGeometry(QSGGeometry *geometry, int attrCount, int posIndex,
65 const QRectF &srcRect, const QRectF &rect) override;
66 QString log() const override;
67
68 QVector3D projectionPlaneV() const;
69 void setProjectionPlaneV(const QVector3D &projectionPlaneV);
70
71 QVector3D projectionPlaneW() const;
72 void setProjectionPlaneW(const QVector3D &projectionPlaneW);
73
79
80protected Q_SLOTS:
81 void readData();
82
83private:
84 Q_DISABLE_COPY(QWavefrontMesh)
85 Q_DECLARE_PRIVATE(QWavefrontMesh)
86};
87
89
90#endif // QWAVEFRONTMESH_P_H
91
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qrect.h:484
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:15
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
void projectionPlaneVChanged()
void lastErrorChanged()
void sourceChanged()
void projectionPlaneWChanged()
@ MissingPositionAndTextureCoordinateAttributesError
@ MissingTextureCoordinateAttributeError
rect
[4]
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_ENUM(x)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
QUrl url("example.com")
[constructor-url-reference]
QByteArray readData()