Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qabstractcollisionshape_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 ABSTRACTCOLLISIONSHAPE_H
5#define ABSTRACTCOLLISIONSHAPE_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 <QtQuick3D/private/qquick3dnode_p.h>
20#include <QtQml/QQmlEngine>
21
22namespace physx {
23class PxGeometry;
24}
25
27
29{
31 Q_PROPERTY(bool enableDebugDraw READ enableDebugDraw WRITE setEnableDebugDraw NOTIFY
32 enableDebugDrawChanged)
33 QML_NAMED_ELEMENT(CollisionShape)
34 QML_UNCREATABLE("abstract interface")
35public:
36 explicit QAbstractCollisionShape(QQuick3DNode *parent = nullptr);
38
39 virtual physx::PxGeometry *getPhysXGeometry() = 0;
40 bool enableDebugDraw() const;
41
42 virtual bool isStaticShape() const = 0;
43
44public slots:
45 void setEnableDebugDraw(bool enableDebugDraw);
46
48 void enableDebugDrawChanged(bool enableDebugDraw);
50
51protected:
52 bool m_scaleDirty = true;
54
55private slots:
56 void handleScaleChange();
57
58private:
59 bool m_enableDebugDraw = false;
60};
61
63
64#endif // ABSTRACTCOLLISIONSHAPE_H
void needsRebuild(QObject *)
virtual physx::PxGeometry * getPhysXGeometry()=0
void enableDebugDrawChanged(bool enableDebugDraw)
virtual bool isStaticShape() const =0
virtual ~QAbstractCollisionShape()
\inmodule QtCore
Definition qobject.h:90
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define slots
#define signals
#define Q_QUICK3DPHYSICS_EXPORT
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent