Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QD6Joint Class Reference

#include <qd6joint_p.h>

Inheritance diagram for QD6Joint:
Collaboration diagram for QD6Joint:

Public Types

enum class  Motion { Locked , Limited , Free }

Signals

void xMotionChanged ()
void yMotionChanged ()
void zMotionChanged ()
void twistMotionChanged ()
void linearLimitXLowerChanged ()
void linearLimitXUpperChanged ()
void linearLimitYLowerChanged ()
void linearLimitYUpperChanged ()
void linearLimitZLowerChanged ()
void linearLimitZUpperChanged ()
void twistLimitLowerChanged ()
void twistLimitUpperChanged ()
void linearStiffnessChanged ()
void linearDampingChanged ()
void angularStiffnessChanged ()
void angularDampingChanged ()
void swingMotionYChanged ()
void swingMotionZChanged ()
void swingLimitAngleYChanged ()
void swingLimitAngleZChanged ()
Signals inherited from QPhysicsJoint
 Q_REVISION (6, 12) void bodyAChanged()
 Q_REVISION (6, 12) void bodyBChanged()
 Q_REVISION (6, 12) void positionAChanged()
 Q_REVISION (6, 12) void positionBChanged()
 Q_REVISION (6, 12) void orientationAChanged()
 Q_REVISION (6, 12) void orientationBChanged()
Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.

Public Member Functions

 QD6Joint ()
 ~QD6Joint () override=default
Motion xMotion () const
void setXMotion (Motion motion)
Motion yMotion () const
void setYMotion (Motion motion)
Motion zMotion () const
void setZMotion (Motion motion)
Motion twistMotion () const
void setTwistMotion (Motion motion)
float linearLimitXLower () const
void setLinearLimitXLower (float limit)
float linearLimitXUpper () const
void setLinearLimitXUpper (float limit)
float linearLimitYLower () const
void setLinearLimitYLower (float limit)
float linearLimitYUpper () const
void setLinearLimitYUpper (float limit)
float linearLimitZLower () const
void setLinearLimitZLower (float limit)
float linearLimitZUpper () const
void setLinearLimitZUpper (float limit)
float twistLimitLower () const
void setTwistLimitLower (float limit)
float twistLimitUpper () const
void setTwistLimitUpper (float limit)
float linearStiffness () const
void setLinearStiffness (float stiffness)
float linearDamping () const
void setLinearDamping (float damping)
float angularStiffness () const
void setAngularStiffness (float stiffness)
float angularDamping () const
void setAngularDamping (float damping)
Motion swingMotionY () const
void setSwingMotionY (Motion newSwingMotionY)
Motion swingMotionZ () const
void setSwingMotionZ (Motion newSwingMotionZ)
float swingLimitAngleY () const
void setSwingLimitAngleY (float newSwingLimitAngleY)
float swingLimitAngleZ () const
void setSwingLimitAngleZ (float newSwingLimitAngleZ)
Public Member Functions inherited from QPhysicsJoint
 QPhysicsJoint ()
 \qmltype PhysicsJoint \inqmlmodule QtQuick3D.Physics
 ~QPhysicsJoint ()
 Q_REVISION (6, 12) QAbstractPhysicsBody *bodyA() const
 Q_REVISION (6, 12) void setBodyA(QAbstractPhysicsBody *newBodyA)
 Q_REVISION (6, 12) QAbstractPhysicsBody *bodyB() const
 Q_REVISION (6, 12) void setBodyB(QAbstractPhysicsBody *newBodyB)
 Q_REVISION (6, 12) QVector3D positionA() const
 Q_REVISION (6, 12) void setPositionA(const QVector3D &newPositionA)
 Q_REVISION (6, 12) QVector3D positionB() const
 Q_REVISION (6, 12) void setPositionB(const QVector3D &newPositionB)
 Q_REVISION (6, 12) QQuaternion orientationA() const
 Q_REVISION (6, 12) void setOrientationA(const QQuaternion &newOrientationA)
 Q_REVISION (6, 12) QQuaternion orientationB() const
 Q_REVISION (6, 12) void setOrientationB(const QQuaternion &newOrientationB)
void updatePhysXBackend ()
physx::PxJoint * getPhysXBackend () const
Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
QString objectName () const
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QBindable< QStringbindableObjectName ()
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
bool isQmlExposed () const noexcept
 Returns whether the object has been created by the QML engine or ownership has been explicitly set via QJSEngine::setObjectOwnership().
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
QThreadthread () const
 Returns the thread in which the object lives.
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
void killTimer (int id)
 Kills the timer with timer identifier, id.
void killTimer (Qt::TimerId id)
template<typename T>
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
template<typename T>
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
template<typename T>
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const QObjectListchildren () const
 Returns a list of child objects.
void setParent (QObject *parent)
 Makes the object a child of parent.
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
bool disconnect (const QObject *receiver, const char *member=nullptr) const
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
bool setProperty (const char *name, QVariant &&value)
QVariant property (const char *name) const
 Returns the value of the object's name property.
QList< QByteArraydynamicPropertyNames () const
QBindingStoragebindingStorage ()
const QBindingStoragebindingStorage () const
QObjectparent () const
 Returns a pointer to the parent object.
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.

Protected Member Functions

physx::PxJoint * createPhysxJoint (physx::PxRigidActor *actorA, physx::PxRigidActor *actorB, const physx::PxTransform &trfA, const physx::PxTransform &trfB) override
void setJointProperties () override
Protected Member Functions inherited from QPhysicsJoint
void onBodyDestroyed (QObject *body)
Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
int senderSignalIndex () const
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
bool isSignalConnected (const QMetaMethod &signal) const
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
virtual void connectNotify (const QMetaMethod &signal)
virtual void disconnectNotify (const QMetaMethod &signal)
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)

Properties

Motion xMotion
Motion yMotion
Motion zMotion
Motion twistMotion
Motion swingMotionY
Motion swingMotionZ
float linearLimitXLower
float linearLimitXUpper
float linearLimitYLower
float linearLimitYUpper
float linearLimitZLower
float linearLimitZUpper
float twistLimitLower
float twistLimitUpper
float swingLimitAngleY
float swingLimitAngleZ
float linearStiffness
float linearDamping
float angularStiffness
float angularDamping
Properties inherited from QPhysicsJoint
QAbstractPhysicsBodybodyA
QAbstractPhysicsBodybodyB
QVector3D positionA
QVector3D positionB
QQuaternion orientationA
QQuaternion orientationB
Properties inherited from QObject
QString objectName
 the name of this object

Additional Inherited Members

Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
static bool disconnect (const QMetaObject::Connection &)
 Disconnects connection and resets it to \l{QMetaObject::Connection::operator bool()}{invalid}.
static bool disconnect (QMetaObject::Connection &)
static bool disconnect (QMetaObject::Connection &&conn)
 Disconnect a connection.
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
template<typename Func1>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
Protected Attributes inherited from QPhysicsJoint
QAbstractPhysicsBodym_bodyA = nullptr
QAbstractPhysicsBodym_bodyB = nullptr
QVector3D m_positionA
QVector3D m_positionB
QQuaternion m_orientationA
QQuaternion m_orientationB
physx::PxJoint * m_joint = nullptr
bool m_needsRebuild = false
bool m_dirtyProperties = false
Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr

Detailed Description

Definition at line 25 of file qd6joint_p.h.

Member Enumeration Documentation

◆ Motion

enum class QD6Joint::Motion
strong
Enumerator
Locked 
Limited 
Free 

Definition at line 60 of file qd6joint_p.h.

Constructor & Destructor Documentation

◆ QD6Joint()

QD6Joint::QD6Joint ( )
default

◆ ~QD6Joint()

QD6Joint::~QD6Joint ( )
overridedefault

Member Function Documentation

◆ angularDamping()

float QD6Joint::angularDamping ( ) const

Definition at line 521 of file qd6joint.cpp.

◆ angularDampingChanged

void QD6Joint::angularDampingChanged ( )
signal

◆ angularStiffness()

float QD6Joint::angularStiffness ( ) const

Definition at line 506 of file qd6joint.cpp.

◆ angularStiffnessChanged

void QD6Joint::angularStiffnessChanged ( )
signal

◆ createPhysxJoint()

physx::PxJoint * QD6Joint::createPhysxJoint ( physx::PxRigidActor * actorA,
physx::PxRigidActor * actorB,
const physx::PxTransform & trfA,
const physx::PxTransform & trfB )
overrideprotectedvirtual

Implements QPhysicsJoint.

Definition at line 599 of file qd6joint.cpp.

◆ linearDamping()

float QD6Joint::linearDamping ( ) const

Definition at line 490 of file qd6joint.cpp.

◆ linearDampingChanged

void QD6Joint::linearDampingChanged ( )
signal

◆ linearLimitXLower()

float QD6Joint::linearLimitXLower ( ) const

Definition at line 356 of file qd6joint.cpp.

◆ linearLimitXLowerChanged

void QD6Joint::linearLimitXLowerChanged ( )
signal

◆ linearLimitXUpper()

float QD6Joint::linearLimitXUpper ( ) const

Definition at line 370 of file qd6joint.cpp.

◆ linearLimitXUpperChanged

void QD6Joint::linearLimitXUpperChanged ( )
signal

◆ linearLimitYLower()

float QD6Joint::linearLimitYLower ( ) const

Definition at line 384 of file qd6joint.cpp.

◆ linearLimitYLowerChanged

void QD6Joint::linearLimitYLowerChanged ( )
signal

◆ linearLimitYUpper()

float QD6Joint::linearLimitYUpper ( ) const

Definition at line 398 of file qd6joint.cpp.

◆ linearLimitYUpperChanged

void QD6Joint::linearLimitYUpperChanged ( )
signal

◆ linearLimitZLower()

float QD6Joint::linearLimitZLower ( ) const

Definition at line 412 of file qd6joint.cpp.

◆ linearLimitZLowerChanged

void QD6Joint::linearLimitZLowerChanged ( )
signal

◆ linearLimitZUpper()

float QD6Joint::linearLimitZUpper ( ) const

Definition at line 426 of file qd6joint.cpp.

◆ linearLimitZUpperChanged

void QD6Joint::linearLimitZUpperChanged ( )
signal

◆ linearStiffness()

float QD6Joint::linearStiffness ( ) const

Definition at line 474 of file qd6joint.cpp.

◆ linearStiffnessChanged

void QD6Joint::linearStiffnessChanged ( )
signal

◆ setAngularDamping()

void QD6Joint::setAngularDamping ( float damping)

Definition at line 526 of file qd6joint.cpp.

◆ setAngularStiffness()

void QD6Joint::setAngularStiffness ( float stiffness)

Definition at line 511 of file qd6joint.cpp.

◆ setJointProperties()

void QD6Joint::setJointProperties ( )
overrideprotectedvirtual

Implements QPhysicsJoint.

Definition at line 608 of file qd6joint.cpp.

◆ setLinearDamping()

void QD6Joint::setLinearDamping ( float damping)

Definition at line 495 of file qd6joint.cpp.

◆ setLinearLimitXLower()

void QD6Joint::setLinearLimitXLower ( float limit)

Definition at line 361 of file qd6joint.cpp.

◆ setLinearLimitXUpper()

void QD6Joint::setLinearLimitXUpper ( float limit)

Definition at line 375 of file qd6joint.cpp.

◆ setLinearLimitYLower()

void QD6Joint::setLinearLimitYLower ( float limit)

Definition at line 389 of file qd6joint.cpp.

◆ setLinearLimitYUpper()

void QD6Joint::setLinearLimitYUpper ( float limit)

Definition at line 403 of file qd6joint.cpp.

◆ setLinearLimitZLower()

void QD6Joint::setLinearLimitZLower ( float limit)

Definition at line 417 of file qd6joint.cpp.

◆ setLinearLimitZUpper()

void QD6Joint::setLinearLimitZUpper ( float limit)

Definition at line 431 of file qd6joint.cpp.

◆ setLinearStiffness()

void QD6Joint::setLinearStiffness ( float stiffness)

Definition at line 479 of file qd6joint.cpp.

◆ setSwingLimitAngleY()

void QD6Joint::setSwingLimitAngleY ( float newSwingLimitAngleY)

Definition at line 570 of file qd6joint.cpp.

◆ setSwingLimitAngleZ()

void QD6Joint::setSwingLimitAngleZ ( float newSwingLimitAngleZ)

Definition at line 587 of file qd6joint.cpp.

◆ setSwingMotionY()

void QD6Joint::setSwingMotionY ( Motion newSwingMotionY)

Definition at line 542 of file qd6joint.cpp.

◆ setSwingMotionZ()

void QD6Joint::setSwingMotionZ ( Motion newSwingMotionZ)

Definition at line 556 of file qd6joint.cpp.

◆ setTwistLimitLower()

void QD6Joint::setTwistLimitLower ( float limit)

Definition at line 445 of file qd6joint.cpp.

◆ setTwistLimitUpper()

void QD6Joint::setTwistLimitUpper ( float limit)

Definition at line 462 of file qd6joint.cpp.

◆ setTwistMotion()

void QD6Joint::setTwistMotion ( Motion motion)

Definition at line 347 of file qd6joint.cpp.

◆ setXMotion()

void QD6Joint::setXMotion ( Motion motion)

Definition at line 305 of file qd6joint.cpp.

◆ setYMotion()

void QD6Joint::setYMotion ( Motion motion)

Definition at line 319 of file qd6joint.cpp.

◆ setZMotion()

void QD6Joint::setZMotion ( Motion motion)

Definition at line 333 of file qd6joint.cpp.

◆ swingLimitAngleY()

float QD6Joint::swingLimitAngleY ( ) const

Definition at line 565 of file qd6joint.cpp.

◆ swingLimitAngleYChanged

void QD6Joint::swingLimitAngleYChanged ( )
signal

◆ swingLimitAngleZ()

float QD6Joint::swingLimitAngleZ ( ) const

Definition at line 582 of file qd6joint.cpp.

◆ swingLimitAngleZChanged

void QD6Joint::swingLimitAngleZChanged ( )
signal

◆ swingMotionY()

QD6Joint::Motion QD6Joint::swingMotionY ( ) const

Definition at line 537 of file qd6joint.cpp.

◆ swingMotionYChanged

void QD6Joint::swingMotionYChanged ( )
signal

◆ swingMotionZ()

QD6Joint::Motion QD6Joint::swingMotionZ ( ) const

Definition at line 551 of file qd6joint.cpp.

◆ swingMotionZChanged

void QD6Joint::swingMotionZChanged ( )
signal

◆ twistLimitLower()

float QD6Joint::twistLimitLower ( ) const

Definition at line 440 of file qd6joint.cpp.

◆ twistLimitLowerChanged

void QD6Joint::twistLimitLowerChanged ( )
signal

◆ twistLimitUpper()

float QD6Joint::twistLimitUpper ( ) const

Definition at line 457 of file qd6joint.cpp.

◆ twistLimitUpperChanged

void QD6Joint::twistLimitUpperChanged ( )
signal

◆ twistMotion()

QD6Joint::Motion QD6Joint::twistMotion ( ) const

Definition at line 342 of file qd6joint.cpp.

◆ twistMotionChanged

void QD6Joint::twistMotionChanged ( )
signal

◆ xMotion()

QD6Joint::Motion QD6Joint::xMotion ( ) const

Definition at line 300 of file qd6joint.cpp.

◆ xMotionChanged

void QD6Joint::xMotionChanged ( )
signal

◆ yMotion()

QD6Joint::Motion QD6Joint::yMotion ( ) const

Definition at line 314 of file qd6joint.cpp.

◆ yMotionChanged

void QD6Joint::yMotionChanged ( )
signal

◆ zMotion()

QD6Joint::Motion QD6Joint::zMotion ( ) const

Definition at line 328 of file qd6joint.cpp.

◆ zMotionChanged

void QD6Joint::zMotionChanged ( )
signal

Property Documentation

◆ angularDamping

float QD6Joint::angularDamping
readwrite

Definition at line 54 of file qd6joint_p.h.

◆ angularStiffness

float QD6Joint::angularStiffness
readwrite

Definition at line 53 of file qd6joint_p.h.

◆ linearDamping

float QD6Joint::linearDamping
readwrite

Definition at line 52 of file qd6joint_p.h.

◆ linearLimitXLower

float QD6Joint::linearLimitXLower
readwrite

Definition at line 37 of file qd6joint_p.h.

◆ linearLimitXUpper

float QD6Joint::linearLimitXUpper
readwrite

Definition at line 38 of file qd6joint_p.h.

◆ linearLimitYLower

float QD6Joint::linearLimitYLower
readwrite

Definition at line 39 of file qd6joint_p.h.

◆ linearLimitYUpper

float QD6Joint::linearLimitYUpper
readwrite

Definition at line 40 of file qd6joint_p.h.

◆ linearLimitZLower

float QD6Joint::linearLimitZLower
readwrite

Definition at line 41 of file qd6joint_p.h.

◆ linearLimitZUpper

float QD6Joint::linearLimitZUpper
readwrite

Definition at line 42 of file qd6joint_p.h.

◆ linearStiffness

float QD6Joint::linearStiffness
readwrite

Definition at line 51 of file qd6joint_p.h.

◆ swingLimitAngleY

float QD6Joint::swingLimitAngleY
readwrite

Definition at line 47 of file qd6joint_p.h.

◆ swingLimitAngleZ

float QD6Joint::swingLimitAngleZ
readwrite

Definition at line 48 of file qd6joint_p.h.

◆ swingMotionY

Motion QD6Joint::swingMotionY
readwrite

Definition at line 33 of file qd6joint_p.h.

◆ swingMotionZ

Motion QD6Joint::swingMotionZ
readwrite

Definition at line 34 of file qd6joint_p.h.

◆ twistLimitLower

float QD6Joint::twistLimitLower
readwrite

Definition at line 45 of file qd6joint_p.h.

◆ twistLimitUpper

float QD6Joint::twistLimitUpper
readwrite

Definition at line 46 of file qd6joint_p.h.

◆ twistMotion

Motion QD6Joint::twistMotion
readwrite

Definition at line 32 of file qd6joint_p.h.

◆ xMotion

Motion QD6Joint::xMotion
readwrite

Definition at line 29 of file qd6joint_p.h.

◆ yMotion

Motion QD6Joint::yMotion
readwrite

Definition at line 30 of file qd6joint_p.h.

◆ zMotion

Motion QD6Joint::zMotion
readwrite

Definition at line 31 of file qd6joint_p.h.


The documentation for this class was generated from the following files: