Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQuick3DPhysicsHeightField Class Reference
+ Collaboration diagram for QQuick3DPhysicsHeightField:

Public Member Functions

 QQuick3DPhysicsHeightField (const QString &qmlSource)
 
 ~QQuick3DPhysicsHeightField ()
 
void ref ()
 
int deref ()
 
physx::PxHeightFieldSample * getSamples ()
 
physx::PxHeightField * heightField ()
 
int rows () const
 
int columns () const
 

Detailed Description

Definition at line 33 of file qheightfieldshape.cpp.

Constructor & Destructor Documentation

◆ QQuick3DPhysicsHeightField()

QQuick3DPhysicsHeightField::QQuick3DPhysicsHeightField ( const QString qmlSource)

Definition at line 98 of file qheightfieldshape.cpp.

◆ ~QQuick3DPhysicsHeightField()

QQuick3DPhysicsHeightField::~QQuick3DPhysicsHeightField ( )

Definition at line 103 of file qheightfieldshape.cpp.

Member Function Documentation

◆ columns()

int QQuick3DPhysicsHeightField::columns ( ) const

Definition at line 190 of file qheightfieldshape.cpp.

◆ deref()

int QQuick3DPhysicsHeightField::deref ( )
inline

Definition at line 40 of file qheightfieldshape.cpp.

Referenced by QQuick3DPhysicsHeightFieldManager::releaseHeightField().

+ Here is the caller graph for this function:

◆ getSamples()

physx::PxHeightFieldSample * QQuick3DPhysicsHeightField::getSamples ( )

Definition at line 108 of file qheightfieldshape.cpp.

References QImage::height(), i, QString::isEmpty(), j, QImage::pixelColor(), QColor::valueF(), and QImage::width().

Referenced by heightField().

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

◆ heightField()

physx::PxHeightField * QQuick3DPhysicsHeightField::heightField ( )

Definition at line 132 of file qheightfieldshape.cpp.

References getSamples(), qCDebug, qCWarning, QCacheUtils::readCachedHeightField(), QCacheUtils::readCookedHeightField(), and QCacheUtils::writeCachedHeightField().

+ Here is the call graph for this function:

◆ ref()

void QQuick3DPhysicsHeightField::ref ( )
inline

Definition at line 39 of file qheightfieldshape.cpp.

◆ rows()

int QQuick3DPhysicsHeightField::rows ( ) const

Definition at line 185 of file qheightfieldshape.cpp.


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