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
QDebugDrawHelper Namespace Reference

Functions

QQuick3DGeometrygenerateBoxGeometry (const QVector3D &halfExtents)
 
QQuick3DGeometrygenerateSphereGeometry (const float radius)
 
QQuick3DGeometrygenerateCapsuleGeometry (const float radius, const float halfHeight)
 
QQuick3DGeometrygeneratePlaneGeometry ()
 
QQuick3DGeometrygenerateHeightFieldGeometry (physx::PxHeightField *heightField, float heightScale, float rowScale, float columnScale)
 
QQuick3DGeometrygenerateConvexMeshGeometry (physx::PxConvexMesh *convexMesh)
 
QQuick3DGeometrygenerateTriangleMeshGeometry (physx::PxTriangleMesh *triangleMesh)
 

Function Documentation

◆ generateBoxGeometry()

QQuick3DGeometry * QDebugDrawHelper::generateBoxGeometry ( const QVector3D & halfExtents)

Definition at line 17 of file qdebugdrawhelper.cpp.

References QCollisionDebugMeshBuilder::addLine(), QQuick3DGeometry::Attribute::F32Type, QCollisionDebugMeshBuilder::generateVertexArray(), QQuick3DGeometry::Lines, QQuick3DGeometry::Attribute::NormalSemantic, QQuick3DGeometry::Attribute::PositionSemantic, QVector3D::x(), QVector3D::y(), and QVector3D::z().

+ Here is the call graph for this function:

◆ generateCapsuleGeometry()

QQuick3DGeometry * QDebugDrawHelper::generateCapsuleGeometry ( const float radius,
const float halfHeight )

Definition at line 125 of file qdebugdrawhelper.cpp.

References QCollisionDebugMeshBuilder::addLine(), QQuick3DGeometry::Attribute::F32Type, QCollisionDebugMeshBuilder::generateVertexArray(), i, QQuick3DGeometry::Lines, M_PI, QQuick3DGeometry::Attribute::NormalSemantic, QQuick3DGeometry::Attribute::PositionSemantic, Q_ASSERT, qCos(), and qSin().

+ Here is the call graph for this function:

◆ generateConvexMeshGeometry()

QQuick3DGeometry * QDebugDrawHelper::generateConvexMeshGeometry ( physx::PxConvexMesh * convexMesh)

Definition at line 370 of file qdebugdrawhelper.cpp.

References QCollisionDebugMeshBuilder::addLine(), QQuick3DGeometry::Attribute::F32Type, QCollisionDebugMeshBuilder::generateVertexArray(), i, j, QQuick3DGeometry::Lines, QQuick3DGeometry::Attribute::NormalSemantic, p1, p2, QQuick3DGeometry::Attribute::PositionSemantic, Q_ASSERT, and QPhysicsUtils::toQtType().

+ Here is the call graph for this function:

◆ generateHeightFieldGeometry()

QQuick3DGeometry * QDebugDrawHelper::generateHeightFieldGeometry ( physx::PxHeightField * heightField,
float heightScale,
float rowScale,
float columnScale )

Definition at line 320 of file qdebugdrawhelper.cpp.

References QCollisionDebugMeshBuilder::addLine(), QQuick3DGeometry::Attribute::F32Type, QCollisionDebugMeshBuilder::generateVertexArray(), QQuick3DGeometry::Lines, QQuick3DGeometry::Attribute::NormalSemantic, QQuick3DGeometry::Attribute::PositionSemantic, qMax(), and qMin().

+ Here is the call graph for this function:

◆ generatePlaneGeometry()

QQuick3DGeometry * QDebugDrawHelper::generatePlaneGeometry ( )

Definition at line 287 of file qdebugdrawhelper.cpp.

References QCollisionDebugMeshBuilder::addLine(), QQuick3DGeometry::Attribute::F32Type, QCollisionDebugMeshBuilder::generateVertexArray(), QQuick3DGeometry::Lines, QQuick3DGeometry::Attribute::NormalSemantic, and QQuick3DGeometry::Attribute::PositionSemantic.

+ Here is the call graph for this function:

◆ generateSphereGeometry()

QQuick3DGeometry * QDebugDrawHelper::generateSphereGeometry ( const float radius)

Definition at line 59 of file qdebugdrawhelper.cpp.

References QCollisionDebugMeshBuilder::addLine(), QQuick3DGeometry::Attribute::F32Type, QCollisionDebugMeshBuilder::generateVertexArray(), i, QQuick3DGeometry::Lines, M_PI, QQuick3DGeometry::Attribute::NormalSemantic, QQuick3DGeometry::Attribute::PositionSemantic, qCos(), and qSin().

+ Here is the call graph for this function:

◆ generateTriangleMeshGeometry()

QQuick3DGeometry * QDebugDrawHelper::generateTriangleMeshGeometry ( physx::PxTriangleMesh * triangleMesh)

Definition at line 425 of file qdebugdrawhelper.cpp.

References QCollisionDebugMeshBuilder::addLine(), QQuick3DGeometry::Attribute::F32Type, QCollisionDebugMeshBuilder::generateVertexArray(), i, QQuick3DGeometry::Lines, QQuick3DGeometry::Attribute::NormalSemantic, p1, p2, QQuick3DGeometry::Attribute::PositionSemantic, and QPhysicsUtils::toQtType().

+ Here is the call graph for this function: