Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qtriggerbody_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 TRIGGERBODY_H
5
#define TRIGGERBODY_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 "
qabstractphysicsnode_p.h
"
20
#include <QtQml/QQmlEngine>
21
22
QT_BEGIN_NAMESPACE
23
24
class
Q_QUICK3DPHYSICS_EXPORT
QTriggerBody
:
public
QAbstractPhysicsNode
25
{
26
Q_OBJECT
27
Q_PROPERTY
(
int
collisionCount READ collisionCount NOTIFY collisionCountChanged)
28
QML_NAMED_ELEMENT
(TriggerBody)
29
public
:
30
QTriggerBody
();
31
32
void
registerCollision(
QAbstractPhysicsNode
*collision);
33
void
deregisterCollision(
QAbstractPhysicsNode
*collision);
34
35
int
collisionCount()
const
;
36
37
Q_SIGNALS
:
38
void
bodyEntered
(
QAbstractPhysicsNode
*body);
39
void
bodyExited
(
QAbstractPhysicsNode
*body);
40
void
collisionCountChanged
();
41
42
private
:
43
QSet<QAbstractPhysicsNode *>
m_collisions;
44
};
45
46
QT_END_NAMESPACE
47
48
#endif
// TRIGGERBODY_H
QAbstractPhysicsNode
Definition
qabstractphysicsnode_p.h:34
QSet
Definition
qset.h:18
QTriggerBody
Definition
qtriggerbody_p.h:25
QTriggerBody::bodyExited
void bodyExited(QAbstractPhysicsNode *body)
QTriggerBody::collisionCountChanged
void collisionCountChanged()
QTriggerBody::QTriggerBody
QTriggerBody()
\qmltype TriggerBody \inherits PhysicsNode \inqmlmodule QtQuick3D.Physics
QTriggerBody::bodyEntered
void bodyEntered(QAbstractPhysicsNode *body)
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_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
Q_QUICK3DPHYSICS_EXPORT
#define Q_QUICK3DPHYSICS_EXPORT
Definition
qtquick3dphysicsglobal.h:16
qtquick3dphysics
src
quick3dphysics
qtriggerbody_p.h
Generated by
1.9.7