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
qplaneshape_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QPLANESHAPE_H
5#define QPLANESHAPE_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
18#include <QtQuick3DPhysics/qtquick3dphysicsglobal.h>
19#include <QtQuick3DPhysics/private/qabstractcollisionshape_p.h>
20#include <QtCore/QObject>
21#include <QtGui/QVector3D>
22#include <QtQml/QQmlEngine>
23
24namespace physx {
25class PxPlaneGeometry;
26}
27
29
31{
33
34 QML_NAMED_ELEMENT(PlaneShape)
35public:
38
39 physx::PxGeometry *getPhysXGeometry() override;
40 bool isStaticShape() const override { return true; }
41
42private:
43 void updatePhysXGeometry();
44
45 physx::PxPlaneGeometry *m_planeGeometry = nullptr;
46};
47
49
50#endif // QPLANESHAPE_H
virtual physx::PxGeometry * getPhysXGeometry()=0
bool isStaticShape() const override
QPlaneShape()
\qmltype PlaneShape \inqmlmodule QtQuick3D.Physics \inherits CollisionShape
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define Q_OBJECT
#define Q_QUICK3DPHYSICS_EXPORT