Package physx.geomutils
Class PxHeightField
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxBase
-
- physx.geomutils.PxHeightField
-
public class PxHeightField extends PxBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPxHeightField()protectedPxHeightField(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquireReference()floatgetConvexEdgeThreshold()PxHeightFieldFlagsgetFlags()intgetFormat()floatgetHeight(float x, float z)intgetNbColumns()intgetNbRows()intgetReferenceCount()PxHeightFieldSamplegetSample(int row, int column)intgetSampleStride()intgetTimestamp()shortgetTriangleMaterialIndex(int triangleIndex)PxVec3getTriangleNormal(int triangleIndex)booleanmodifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc)booleanmodifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc, boolean shrinkBounds)intsaveCells(NativeObject destBuffer, int destBufferSize)static PxHeightFieldwrapPointer(long address)-
Methods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, release, setBaseFlag, setBaseFlags
-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Method Detail
-
wrapPointer
public static PxHeightField wrapPointer(long address)
-
saveCells
public int saveCells(NativeObject destBuffer, int destBufferSize)
- Parameters:
destBuffer- WebIDL type: VoidPtrdestBufferSize- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned long
-
modifySamples
public boolean modifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc)- Parameters:
startCol- WebIDL type: longstartRow- WebIDL type: longsubfieldDesc- WebIDL type:PxHeightFieldDesc[Const, Ref]- Returns:
- WebIDL type: boolean
-
modifySamples
public boolean modifySamples(int startCol, int startRow, PxHeightFieldDesc subfieldDesc, boolean shrinkBounds)- Parameters:
startCol- WebIDL type: longstartRow- WebIDL type: longsubfieldDesc- WebIDL type:PxHeightFieldDesc[Const, Ref]shrinkBounds- WebIDL type: boolean- Returns:
- WebIDL type: boolean
-
getNbRows
public int getNbRows()
- Returns:
- WebIDL type: unsigned long
-
getNbColumns
public int getNbColumns()
- Returns:
- WebIDL type: unsigned long
-
getFormat
public int getFormat()
- Returns:
- WebIDL type:
PxHeightFieldFormatEnum[enum]
-
getSampleStride
public int getSampleStride()
- Returns:
- WebIDL type: unsigned long
-
getConvexEdgeThreshold
public float getConvexEdgeThreshold()
- Returns:
- WebIDL type: float
-
getFlags
public PxHeightFieldFlags getFlags()
- Returns:
- WebIDL type:
PxHeightFieldFlags[Value]
-
getHeight
public float getHeight(float x, float z)- Parameters:
x- WebIDL type: floatz- WebIDL type: float- Returns:
- WebIDL type: float
-
getReferenceCount
public int getReferenceCount()
- Returns:
- WebIDL type: unsigned long
-
acquireReference
public void acquireReference()
-
getTriangleMaterialIndex
public short getTriangleMaterialIndex(int triangleIndex)
- Parameters:
triangleIndex- WebIDL type: unsigned long- Returns:
- WebIDL type: unsigned short
-
getTriangleNormal
public PxVec3 getTriangleNormal(int triangleIndex)
- Parameters:
triangleIndex- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxVec3[Value]
-
getSample
public PxHeightFieldSample getSample(int row, int column)
- Parameters:
row- WebIDL type: unsigned longcolumn- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxHeightFieldSample[Const, Ref]
-
getTimestamp
public int getTimestamp()
- Returns:
- WebIDL type: unsigned long
-
-