Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qabstractphysicsbody_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 QABSTRACTPHYSICSBODY_H
5
#define QABSTRACTPHYSICSBODY_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 "
qabstractphysicsnode_p.h
"
19
#include <QtQuick3DPhysics/private/qphysicsmaterial_p.h>
20
#include <QtQml/QQmlEngine>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QAbstractPhysicsBody
:
public
QAbstractPhysicsNode
25
{
26
Q_OBJECT
27
Q_PROPERTY
(
QPhysicsMaterial
*
physicsMaterial
READ
physicsMaterial
WRITE
setPhysicsMaterial
28
NOTIFY
physicsMaterialChanged
)
29
QML_NAMED_ELEMENT
(PhysicsBody)
30
QML_UNCREATABLE
(
"abstract interface"
)
31
32
public
:
33
QAbstractPhysicsBody
();
34
QPhysicsMaterial
*
physicsMaterial
()
const
;
35
void
setPhysicsMaterial
(
QPhysicsMaterial
*newPhysicsMaterial);
36
Q_SIGNALS
:
37
void
physicsMaterialChanged
();
38
39
private
:
40
QPhysicsMaterial
*m_physicsMaterial =
nullptr
;
41
};
42
43
QT_END_NAMESPACE
44
45
#endif
// QABSTRACTPHYSICSBODY_H
QAbstractPhysicsBody
Definition
qabstractphysicsbody_p.h:25
QAbstractPhysicsBody::physicsMaterialChanged
void physicsMaterialChanged()
QAbstractPhysicsBody::QAbstractPhysicsBody
QAbstractPhysicsBody()
\qmltype PhysicsBody \inherits PhysicsNode \inqmlmodule QtQuick3D.Physics
Definition
qabstractphysicsbody.cpp:28
QAbstractPhysicsBody::physicsMaterial
QPhysicsMaterial * physicsMaterial
Definition
qabstractphysicsbody_p.h:28
QAbstractPhysicsBody::setPhysicsMaterial
void setPhysicsMaterial(QPhysicsMaterial *newPhysicsMaterial)
Definition
qabstractphysicsbody.cpp:38
QAbstractPhysicsNode
Definition
qabstractphysicsnode_p.h:34
QPhysicsMaterial
Definition
qphysicsmaterial_p.h:24
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qabstractphysicsnode_p.h
QML_UNCREATABLE
#define QML_UNCREATABLE(REASON)
Definition
qqmlintegration.h:55
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:52
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
qtquick3dphysics
src
quick3dphysics
qabstractphysicsbody_p.h
Generated by
1.9.7