29#ifndef PX_HEIGHTFIELD_H
30#define PX_HEIGHTFIELD_H
35#include "geometry/PxHeightFieldFlag.h"
36#include "geometry/PxHeightFieldSample.h"
37#include "common/PxBase.h"
44class PxHeightFieldDesc;
105 virtual PxU32
saveCells(
void* destBuffer, PxU32 destBufferSize)
const = 0;
233 PX_INLINE PxHeightField(PxBaseFlags baseFlags) : PxRefCounted(baseFlags) {}
234 virtual ~PxHeightField() {}
Descriptor class for #PxHeightField.
Definition PxHeightFieldDesc.h:53
A height field class.
Definition PxHeightField.h:84
virtual PxU32 getNbRows() const =0
Retrieves the number of sample rows in the samples array.
virtual PxReal getConvexEdgeThreshold() const =0
Retrieves the convex edge threshold.
virtual const PxHeightFieldSample & getSample(PxU32 row, PxU32 column) const =0
Returns heightfield sample of given row and column
virtual PxVec3 getTriangleNormal(PxTriangleID triangleIndex) const =0
Returns a triangle face normal for a given triangle index.
virtual PxU32 getSampleStride() const =0
Retrieves the offset in bytes between consecutive samples in the array.
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxHeightField.h:235
virtual PxU32 saveCells(void *destBuffer, PxU32 destBufferSize) const =0
Writes out the sample data array.
virtual PxU32 getNbColumns() const =0
Retrieves the number of sample columns in the samples array.
virtual PxMaterialTableIndex getTriangleMaterialIndex(PxTriangleID triangleIndex) const =0
Returns material table index of given triangle.
virtual PxHeightFieldFormat::Enum getFormat() const =0
Retrieves the format of the sample data.
virtual void release()=0
Decrements the reference count of a height field and releases it if the new reference count is zero.
virtual PxU32 getTimestamp() const =0
Returns the number of times the heightfield data has been modified.
virtual const char * getConcreteTypeName() const
Returns string name of dynamic type.
Definition PxHeightField.h:229
virtual PxHeightFieldFlags getFlags() const =0
Retrieves the flags bits, combined from values of the enum ::PxHeightFieldFlag.
virtual bool modifySamples(PxI32 startCol, PxI32 startRow, const PxHeightFieldDesc &subfieldDesc, bool shrinkBounds=false)=0
Replaces a rectangular subfield in the sample data array.
virtual PxReal getHeight(PxReal x, PxReal z) const =0
Retrieves the height at the given coordinates in grid space.
Base class for ref-counted objects.
Definition PxBase.h:200
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxBase.h:231
3 Element vector class.
Definition PxVec3.h:50
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Heightfield sample format.
Definition PxHeightFieldSample.h:67