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

Enumerations

enum class  CacheGeometry {
  TriangleMesh , ConvexMesh , HeightField , TriangleMesh ,
  ConvexMesh , HeightField
}
enum class  CacheGeometry {
  TriangleMesh , ConvexMesh , HeightField , TriangleMesh ,
  ConvexMesh , HeightField
}

Functions

static QString getCachedFilename (const QString &filePath, CacheGeometry geom)
static void readCachedMesh (const QString &meshFilename, physx::PxPhysics &physics, physx::PxTriangleMesh *&triangleMesh, physx::PxConvexMesh *&convexMesh, physx::PxHeightField *&heightField, CacheGeometry geom)
static void writeCachedMesh (const QString &meshFilename, physx::PxDefaultMemoryOutputStream &buf, CacheGeometry geom)
void writeCachedTriangleMesh (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf)
void writeCachedConvexMesh (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf)
void writeCachedHeightField (const QString &filePath, physx::PxDefaultMemoryOutputStream &buf)
static void readCookedMesh (const QString &meshFilename, physx::PxPhysics &physics, physx::PxTriangleMesh *&triangleMesh, physx::PxConvexMesh *&convexMesh, physx::PxHeightField *&heightField, CacheGeometry geom)
physx::PxTriangleMesh * readCachedTriangleMesh (const QString &filePath, physx::PxPhysics &physics)
physx::PxConvexMesh * readCachedConvexMesh (const QString &filePath, physx::PxPhysics &physics)
physx::PxHeightField * readCachedHeightField (const QString &filePath, physx::PxPhysics &physics)
physx::PxTriangleMesh * readCookedTriangleMesh (const QString &filePath, physx::PxPhysics &physics)
physx::PxConvexMesh * readCookedConvexMesh (const QString &filePath, physx::PxPhysics &physics)
physx::PxHeightField * readCookedHeightField (const QString &filePath, physx::PxPhysics &physics)

Variables

static QString MESH_CACHE_PATH = qEnvironmentVariable("QT_PHYSICS_CACHE_PATH")

Enumeration Type Documentation

◆ CacheGeometry [1/2]

enum class QCacheUtils::CacheGeometry
strong
Enumerator
TriangleMesh 
ConvexMesh 
HeightField 
TriangleMesh 
ConvexMesh 
HeightField 

Definition at line 20 of file qcacheutils.cpp.

◆ CacheGeometry [2/2]

enum class QCacheUtils::CacheGeometry
strong
Enumerator
TriangleMesh 
ConvexMesh 
HeightField 
TriangleMesh 
ConvexMesh 
HeightField 

Definition at line 20 of file qcacheutils.cpp.

Function Documentation

◆ getCachedFilename()

QString QCacheUtils::getCachedFilename ( const QString & filePath,
CacheGeometry geom )
static

Definition at line 24 of file qcacheutils.cpp.

References ConvexMesh, HeightField, and TriangleMesh.

◆ readCachedConvexMesh()

physx::PxConvexMesh * QCacheUtils::readCachedConvexMesh ( const QString & filePath,
physx::PxPhysics & physics )

Definition at line 235 of file qcacheutils.cpp.

References ConvexMesh.

◆ readCachedHeightField()

physx::PxHeightField * QCacheUtils::readCachedHeightField ( const QString & filePath,
physx::PxPhysics & physics )

Definition at line 245 of file qcacheutils.cpp.

References HeightField.

◆ readCachedMesh()

void QCacheUtils::readCachedMesh ( const QString & meshFilename,
physx::PxPhysics & physics,
physx::PxTriangleMesh *& triangleMesh,
physx::PxConvexMesh *& convexMesh,
physx::PxHeightField *& heightField,
CacheGeometry geom )
static

Definition at line 43 of file qcacheutils.cpp.

References ConvexMesh, MESH_CACHE_PATH, and TriangleMesh.

◆ readCachedTriangleMesh()

physx::PxTriangleMesh * QCacheUtils::readCachedTriangleMesh ( const QString & filePath,
physx::PxPhysics & physics )

Definition at line 225 of file qcacheutils.cpp.

References TriangleMesh.

◆ readCookedConvexMesh()

physx::PxConvexMesh * QCacheUtils::readCookedConvexMesh ( const QString & filePath,
physx::PxPhysics & physics )

Definition at line 265 of file qcacheutils.cpp.

References ConvexMesh.

◆ readCookedHeightField()

physx::PxHeightField * QCacheUtils::readCookedHeightField ( const QString & filePath,
physx::PxPhysics & physics )

Definition at line 275 of file qcacheutils.cpp.

References HeightField.

◆ readCookedMesh()

void QCacheUtils::readCookedMesh ( const QString & meshFilename,
physx::PxPhysics & physics,
physx::PxTriangleMesh *& triangleMesh,
physx::PxConvexMesh *& convexMesh,
physx::PxHeightField *& heightField,
CacheGeometry geom )
static

Definition at line 183 of file qcacheutils.cpp.

References ConvexMesh, and TriangleMesh.

◆ readCookedTriangleMesh()

physx::PxTriangleMesh * QCacheUtils::readCookedTriangleMesh ( const QString & filePath,
physx::PxPhysics & physics )

Definition at line 255 of file qcacheutils.cpp.

References TriangleMesh.

◆ writeCachedConvexMesh()

void QCacheUtils::writeCachedConvexMesh ( const QString & filePath,
physx::PxDefaultMemoryOutputStream & buf )

Definition at line 173 of file qcacheutils.cpp.

References ConvexMesh.

◆ writeCachedHeightField()

void QCacheUtils::writeCachedHeightField ( const QString & filePath,
physx::PxDefaultMemoryOutputStream & buf )

Definition at line 178 of file qcacheutils.cpp.

References HeightField.

◆ writeCachedMesh()

void QCacheUtils::writeCachedMesh ( const QString & meshFilename,
physx::PxDefaultMemoryOutputStream & buf,
CacheGeometry geom )
static

Definition at line 122 of file qcacheutils.cpp.

References MESH_CACHE_PATH.

◆ writeCachedTriangleMesh()

void QCacheUtils::writeCachedTriangleMesh ( const QString & filePath,
physx::PxDefaultMemoryOutputStream & buf )

Definition at line 168 of file qcacheutils.cpp.

References TriangleMesh.

Variable Documentation

◆ MESH_CACHE_PATH

QString QCacheUtils::MESH_CACHE_PATH = qEnvironmentVariable("QT_PHYSICS_CACHE_PATH")
static

Definition at line 22 of file qcacheutils.cpp.

Referenced by readCachedMesh(), and writeCachedMesh().