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
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
Q_PROPERTY
(
bool
simulationEnabled
READ
simulationEnabled
WRITE setSimulationEnabled NOTIFY
30
simulationEnabledChanged
)
31
QML_NAMED_ELEMENT
(PhysicsBody)
32
QML_UNCREATABLE
("abstract
interface
")
33
34
public:
35
QAbstractPhysicsBody
();
36
QPhysicsMaterial
*
physicsMaterial
() const;
37
void
setPhysicsMaterial
(
QPhysicsMaterial
*newPhysicsMaterial);
38
39
Q_REVISION
(6, 7)
bool
simulationEnabled
() const;
40
Q_REVISION
(6, 7)
void
setSimulationEnabled(
bool
newSimulationEnabled);
41
42
Q_SIGNALS
:
43
void
physicsMaterialChanged
();
44
void
simulationEnabledChanged
();
45
46
private
:
47
QPhysicsMaterial
*m_physicsMaterial =
nullptr
;
48
bool
m_simulationEnabled = true;
49
};
50
51
QT_END_NAMESPACE
52
53
#endif
// QABSTRACTPHYSICSBODY_H
QAbstractPhysicsBody
Definition
qabstractphysicsbody_p.h:25
QAbstractPhysicsBody::physicsMaterialChanged
void physicsMaterialChanged()
QAbstractPhysicsBody::simulationEnabledChanged
void simulationEnabledChanged()
QAbstractPhysicsBody::physicsMaterial
QPhysicsMaterial * physicsMaterial
Definition
qabstractphysicsbody_p.h:28
QAbstractPhysicsBody::setPhysicsMaterial
void setPhysicsMaterial(QPhysicsMaterial *newPhysicsMaterial)
Definition
qabstractphysicsbody.cpp:45
QAbstractPhysicsBody::simulationEnabled
bool simulationEnabled
Definition
qabstractphysicsbody_p.h:30
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:1590
qabstractphysicsnode_p.h
interface
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char * interface
Definition
qdbus_symbols_p.h:355
QML_UNCREATABLE
#define QML_UNCREATABLE(REASON)
Definition
qqmlintegration.h:63
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:60
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_REVISION
#define Q_REVISION(...)
Definition
qtmetamacros.h:59
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
private
#define private
Definition
vsp2hardwarelayerintegration.cpp:7
qtquick3dphysics
src
quick3dphysics
qabstractphysicsbody_p.h
Generated by
1.10.0