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
QAbstractPhysXNode Class Referenceabstract

#include <qabstractphysxnode_p.h>

+ Inheritance diagram for QAbstractPhysXNode:
+ Collaboration diagram for QAbstractPhysXNode:

Public Member Functions

 QAbstractPhysXNode (QAbstractPhysicsNode *node)
 
virtual ~QAbstractPhysXNode ()
 
bool cleanupIfRemoved (QPhysXWorld *physX)
 
virtual void init (QPhysicsWorld *world, QPhysXWorld *physX)=0
 
virtual void updateDefaultDensity (float density)
 
virtual void createMaterial (QPhysXWorld *physX)
 
void createMaterialFromQtMaterial (QPhysXWorld *physX, QPhysicsMaterial *qtMaterial)
 
virtual void markDirtyShapes ()
 
virtual void rebuildDirtyShapes (QPhysicsWorld *, QPhysXWorld *)
 
virtual void updateFilters ()
 
virtual void sync (float deltaTime, QHash< QQuick3DNode *, QMatrix4x4 > &transformCache)=0
 
virtual void cleanup (QPhysXWorld *)
 
virtual bool debugGeometryCapability ()
 
virtual physx::PxTransform getGlobalPose ()
 
virtual bool useTriggerFlag ()
 
virtual DebugDrawBodyType getDebugDrawBodyType ()
 
bool shapesDirty () const
 
void setShapesDirty (bool dirty)
 
bool filtersDirty () const
 
void setFiltersDirty (bool dirty)
 

Public Attributes

QVector< physx::PxShape * > shapes
 
physx::PxMaterial * material = nullptr
 
QAbstractPhysicsNodefrontendNode = nullptr
 
bool isRemoved = false
 

Static Public Attributes

static physx::PxMaterial * sDefaultMaterial = nullptr
 

Detailed Description

Definition at line 56 of file qabstractphysxnode_p.h.

Constructor & Destructor Documentation

◆ QAbstractPhysXNode()

QAbstractPhysXNode::QAbstractPhysXNode ( QAbstractPhysicsNode * node)

Definition at line 24 of file qabstractphysxnode.cpp.

References Q_ASSERT.

◆ ~QAbstractPhysXNode()

QAbstractPhysXNode::~QAbstractPhysXNode ( )
virtual

Definition at line 30 of file qabstractphysxnode.cpp.

References frontendNode, isRemoved, and Q_ASSERT.

Member Function Documentation

◆ cleanup()

void QAbstractPhysXNode::cleanup ( QPhysXWorld * )
virtual

Reimplemented in QPhysXActorBody, and QPhysXCharacterController.

Definition at line 81 of file qabstractphysxnode.cpp.

References material, PHYSX_RELEASE, sDefaultMaterial, and shapes.

Referenced by QPhysXActorBody::cleanup(), QPhysXCharacterController::cleanup(), and cleanupIfRemoved().

+ Here is the caller graph for this function:

◆ cleanupIfRemoved()

bool QAbstractPhysXNode::cleanupIfRemoved ( QPhysXWorld * physX)

Definition at line 40 of file qabstractphysxnode.cpp.

References cleanup(), and isRemoved.

+ Here is the call graph for this function:

◆ createMaterial()

void QAbstractPhysXNode::createMaterial ( QPhysXWorld * physX)
virtual

Reimplemented in QPhysXCharacterController, and QPhysXRigidBody.

Definition at line 52 of file qabstractphysxnode.cpp.

References createMaterialFromQtMaterial().

Referenced by QPhysXActorBody::init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createMaterialFromQtMaterial()

void QAbstractPhysXNode::createMaterialFromQtMaterial ( QPhysXWorld * physX,
QPhysicsMaterial * qtMaterial )

Definition at line 57 of file qabstractphysxnode.cpp.

References QPhysicsMaterial::defaultDynamicFriction, QPhysicsMaterial::defaultRestitution, QPhysicsMaterial::defaultStaticFriction, StaticPhysXObjects::getReference(), material, and sDefaultMaterial.

Referenced by createMaterial(), QPhysXCharacterController::createMaterial(), and QPhysXRigidBody::createMaterial().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ debugGeometryCapability()

bool QAbstractPhysXNode::debugGeometryCapability ( )
virtual

Reimplemented in QPhysXActorBody, and QPhysXCharacterController.

Definition at line 89 of file qabstractphysxnode.cpp.

◆ filtersDirty()

bool QAbstractPhysXNode::filtersDirty ( ) const

Definition at line 119 of file qabstractphysxnode.cpp.

References frontendNode.

Referenced by QPhysXActorBody::updateFilters().

+ Here is the caller graph for this function:

◆ getDebugDrawBodyType()

DebugDrawBodyType QAbstractPhysXNode::getDebugDrawBodyType ( )
virtual

Reimplemented in QPhysXCharacterController, QPhysXDynamicBody, QPhysXStaticBody, and QPhysXTriggerBody.

Definition at line 104 of file qabstractphysxnode.cpp.

References Unknown.

◆ getGlobalPose()

physx::PxTransform QAbstractPhysXNode::getGlobalPose ( )
virtual

Reimplemented in QPhysXActorBody.

Definition at line 94 of file qabstractphysxnode.cpp.

◆ init()

virtual void QAbstractPhysXNode::init ( QPhysicsWorld * world,
QPhysXWorld * physX )
pure virtual

◆ markDirtyShapes()

void QAbstractPhysXNode::markDirtyShapes ( )
virtual

Reimplemented in QPhysXActorBody.

Definition at line 75 of file qabstractphysxnode.cpp.

◆ rebuildDirtyShapes()

void QAbstractPhysXNode::rebuildDirtyShapes ( QPhysicsWorld * ,
QPhysXWorld *  )
virtual

Reimplemented in QPhysXActorBody, and QPhysXDynamicBody.

Definition at line 77 of file qabstractphysxnode.cpp.

◆ setFiltersDirty()

void QAbstractPhysXNode::setFiltersDirty ( bool dirty)

Definition at line 124 of file qabstractphysxnode.cpp.

References frontendNode, and Q_ASSERT.

Referenced by QPhysXActorBody::buildShapes(), and QPhysXActorBody::updateFilters().

+ Here is the caller graph for this function:

◆ setShapesDirty()

void QAbstractPhysXNode::setShapesDirty ( bool dirty)

Definition at line 114 of file qabstractphysxnode.cpp.

References frontendNode.

Referenced by QPhysXActorBody::init(), QPhysXActorBody::markDirtyShapes(), QPhysXActorBody::rebuildDirtyShapes(), and QPhysXDynamicBody::rebuildDirtyShapes().

+ Here is the caller graph for this function:

◆ shapesDirty()

bool QAbstractPhysXNode::shapesDirty ( ) const

Definition at line 109 of file qabstractphysxnode.cpp.

References frontendNode.

Referenced by QPhysXActorBody::markDirtyShapes(), QPhysXActorBody::rebuildDirtyShapes(), and QPhysXDynamicBody::rebuildDirtyShapes().

+ Here is the caller graph for this function:

◆ sync()

virtual void QAbstractPhysXNode::sync ( float deltaTime,
QHash< QQuick3DNode *, QMatrix4x4 > & transformCache )
pure virtual

◆ updateDefaultDensity()

void QAbstractPhysXNode::updateDefaultDensity ( float density)
virtual

Reimplemented in QPhysXDynamicBody.

Definition at line 50 of file qabstractphysxnode.cpp.

◆ updateFilters()

void QAbstractPhysXNode::updateFilters ( )
virtual

Reimplemented in QPhysXActorBody.

Definition at line 79 of file qabstractphysxnode.cpp.

◆ useTriggerFlag()

bool QAbstractPhysXNode::useTriggerFlag ( )
virtual

Reimplemented in QPhysXTriggerBody.

Definition at line 99 of file qabstractphysxnode.cpp.

Referenced by QPhysXActorBody::buildShapes().

+ Here is the caller graph for this function:

Member Data Documentation

◆ frontendNode

◆ isRemoved

bool QAbstractPhysXNode::isRemoved = false

Definition at line 89 of file qabstractphysxnode_p.h.

Referenced by ~QAbstractPhysXNode(), and cleanupIfRemoved().

◆ material

physx::PxMaterial* QAbstractPhysXNode::material = nullptr

◆ sDefaultMaterial

QT_BEGIN_NAMESPACE physx::PxMaterial * QAbstractPhysXNode::sDefaultMaterial = nullptr
static

Definition at line 90 of file qabstractphysxnode_p.h.

Referenced by cleanup(), and createMaterialFromQtMaterial().

◆ shapes


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