java.lang.Object
physx.NativeObject
physx.geometry.PxHeightFieldDesc
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxHeightFieldDescarrayGet(long baseAddress, int index) static PxHeightFieldDesccreateAt(long address) static <T> PxHeightFieldDesccreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()floatgetFlags()intintbooleanisValid()voidsetConvexEdgeThreshold(float value) voidsetFlags(PxHeightFieldFlags value) voidsetFormat(PxHeightFieldFormatEnum value) voidsetNbColumns(int value) voidsetNbRows(int value) voidsetSamples(PxStridedData value) voidstatic PxHeightFieldDescwrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxHeightFieldDesc
protected PxHeightFieldDesc(long address) -
PxHeightFieldDesc
public PxHeightFieldDesc()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxHeightFieldDesc
-
createAt
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.- Returns:
- Stack allocated object of PxHeightFieldDesc
-
destroy
public void destroy() -
getNbRows
public int getNbRows()- Returns:
- WebIDL type: unsigned long
-
setNbRows
public void setNbRows(int value) - Parameters:
value- WebIDL type: unsigned long
-
getNbColumns
public int getNbColumns()- Returns:
- WebIDL type: unsigned long
-
setNbColumns
public void setNbColumns(int value) - Parameters:
value- WebIDL type: unsigned long
-
getFormat
- Returns:
- WebIDL type:
PxHeightFieldFormatEnum[enum]
-
setFormat
- Parameters:
value- WebIDL type:PxHeightFieldFormatEnum[enum]
-
getSamples
- Returns:
- WebIDL type:
PxStridedData[Value]
-
setSamples
- Parameters:
value- WebIDL type:PxStridedData[Value]
-
getConvexEdgeThreshold
public float getConvexEdgeThreshold()- Returns:
- WebIDL type: float
-
setConvexEdgeThreshold
public void setConvexEdgeThreshold(float value) - Parameters:
value- WebIDL type: float
-
getFlags
- Returns:
- WebIDL type:
PxHeightFieldFlags[Value]
-
setFlags
- Parameters:
value- WebIDL type:PxHeightFieldFlags[Value]
-
setToDefault
public void setToDefault() -
isValid
public boolean isValid()- Returns:
- WebIDL type: boolean
-