public class PxHeightField extends PxBase
NativeObject.Allocator<T>address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
protected |
PxHeightField() |
protected |
PxHeightField(long address) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireReference() |
float |
getConvexEdgeThreshold() |
PxHeightFieldFlags |
getFlags() |
int |
getFormat() |
float |
getHeight(float x,
float z) |
int |
getNbColumns() |
int |
getNbRows() |
int |
getReferenceCount() |
PxHeightFieldSample |
getSample(int row,
int column) |
int |
getSampleStride() |
int |
getTimestamp() |
short |
getTriangleMaterialIndex(int triangleIndex) |
PxVec3 |
getTriangleNormal(int triangleIndex) |
boolean |
modifySamples(int startCol,
int startRow,
PxHeightFieldDesc subfieldDesc) |
boolean |
modifySamples(int startCol,
int startRow,
PxHeightFieldDesc subfieldDesc,
boolean shrinkBounds) |
int |
saveCells(NativeObject destBuffer,
int destBufferSize) |
static PxHeightField |
wrapPointer(long address) |
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlagscheckNotNull, equals, getAddress, hashCodeprotected PxHeightField()
protected PxHeightField(long address)
public static PxHeightField wrapPointer(long address)
public int saveCells(NativeObject destBuffer, int destBufferSize)
destBuffer - WebIDL type: VoidPtrdestBufferSize - WebIDL type: unsigned longpublic boolean modifySamples(int startCol,
int startRow,
PxHeightFieldDesc subfieldDesc)
startCol - WebIDL type: longstartRow - WebIDL type: longsubfieldDesc - WebIDL type: PxHeightFieldDesc [Const, Ref]public boolean modifySamples(int startCol,
int startRow,
PxHeightFieldDesc subfieldDesc,
boolean shrinkBounds)
startCol - WebIDL type: longstartRow - WebIDL type: longsubfieldDesc - WebIDL type: PxHeightFieldDesc [Const, Ref]shrinkBounds - WebIDL type: booleanpublic int getNbRows()
public int getNbColumns()
public int getFormat()
PxHeightFieldFormatEnum [enum]public int getSampleStride()
public float getConvexEdgeThreshold()
public PxHeightFieldFlags getFlags()
PxHeightFieldFlags [Value]public float getHeight(float x,
float z)
x - WebIDL type: floatz - WebIDL type: floatpublic int getReferenceCount()
public void acquireReference()
public short getTriangleMaterialIndex(int triangleIndex)
triangleIndex - WebIDL type: unsigned longpublic PxVec3 getTriangleNormal(int triangleIndex)
triangleIndex - WebIDL type: unsigned longPxVec3 [Value]public PxHeightFieldSample getSample(int row, int column)
row - WebIDL type: unsigned longcolumn - WebIDL type: unsigned longPxHeightFieldSample [Const, Ref]public int getTimestamp()