Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qdistancejoint_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
#
ifndef
DISTANCEJOINT_H
5
#
define
DISTANCEJOINT_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
"joints/qflexiblejoint_p.h"
19
20
#
include
<
QtQuick3DPhysics
/
qtquick3dphysicsglobal
.
h
>
21
#
include
<
qobjectdefs
.
h
>
22
#
include
<
qqmlintegration
.
h
>
23
#
include
<
qtmetamacros
.
h
>
24
#
include
<
QtQml
/
QQmlEngine
>
25
26
#
include
<
QString
>
27
28
QT_BEGIN_NAMESPACE
29
30
class
Q_QUICK3DPHYSICS_EXPORT
QDistanceJoint
:
public
QFlexibleJoint
31
{
32
Q_OBJECT
33
Q_PROPERTY
(
float
minDistance READ minDistance WRITE setMinDistance NOTIFY minDistanceChanged
34
FINAL REVISION(6, 12))
35
Q_PROPERTY
(
float
maxDistance READ maxDistance WRITE setMaxDistance NOTIFY maxDistanceChanged
36
FINAL REVISION(6, 12))
37
QML_NAMED_ELEMENT
(DistanceJoint)
38
39
public
:
40
Q_REVISION
(6, 12)
float
minDistance()
const
;
41
Q_REVISION
(6, 12)
void
setMinDistance(
float
newMinDistance);
42
Q_REVISION
(6, 12)
float
maxDistance()
const
;
43
Q_REVISION
(6, 12)
void
setMaxDistance(
float
newMaxDistance);
44
45
signals
:
46
Q_REVISION
(6, 12)
void
minDistanceChanged();
47
Q_REVISION
(6, 12)
void
maxDistanceChanged();
48
49
protected
:
50
physx::PxJoint *createPhysxJoint(physx::PxRigidActor *actorA, physx::PxRigidActor *actorB,
51
const
physx::PxTransform &trfA,
52
const
physx::PxTransform &trfB) final;
53
void
setJointProperties() final;
54
55
private
:
56
float
m_minDistance = 0.f;
57
float
m_maxDistance = 0.f;
58
};
59
60
QT_END_NAMESPACE
61
62
#
endif
// DISTANCEJOINT_H
QDistanceJoint
Definition
qdistancejoint_p.h:31
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:66
QT_BEGIN_NAMESPACE
#define QT_BEGIN_NAMESPACE
Definition
qtconfigmacros.h:161
QT_END_NAMESPACE
#define QT_END_NAMESPACE
Definition
qtconfigmacros.h:162
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:60
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:139
Q_REVISION
#define Q_REVISION(...)
Definition
qtmetamacros.h:63
signals
#define signals
Definition
qtmetamacros.h:45
emit
#define emit
Definition
qtmetamacros.h:53
qtquick3dphysics
src
quick3dphysics
joints
qdistancejoint_p.h
Generated on
for Qt by
1.18.0