Package physx.geomutils
Class PxHeightFieldDesc
- java.lang.Object
-
- physx.NativeObject
-
- physx.geomutils.PxHeightFieldDesc
-
public class PxHeightFieldDesc extends NativeObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T>
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFstatic intSIZEOF-
Fields inherited from class physx.NativeObject
address, isExternallyAllocated
-
-
Constructor Summary
Constructors Modifier Constructor Description PxHeightFieldDesc()protectedPxHeightFieldDesc(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PxHeightFieldDesccreateAt(long address)static <T> PxHeightFieldDesccreateAt(T allocator, NativeObject.Allocator<T> allocate)voiddestroy()floatgetConvexEdgeThreshold()PxHeightFieldFlagsgetFlags()intgetFormat()intgetNbColumns()intgetNbRows()PxStridedDatagetSamples()booleanisValid()voidsetConvexEdgeThreshold(float value)voidsetFlags(PxHeightFieldFlags value)voidsetFormat(int value)voidsetNbColumns(int value)voidsetNbRows(int value)voidsetSamples(PxStridedData value)voidsetToDefault()static PxHeightFieldDescwrapPointer(long address)-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Field Detail
-
SIZEOF
public static final int SIZEOF
-
ALIGNOF
public static final int ALIGNOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
wrapPointer
public static PxHeightFieldDesc wrapPointer(long address)
-
createAt
public static PxHeightFieldDesc createAt(long address)
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxHeightFieldDesc
-
createAt
public static <T> PxHeightFieldDesc createAt(T allocator, NativeObject.Allocator<T> allocate)
- 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
public int getFormat()
- Returns:
- WebIDL type:
PxHeightFieldFormatEnum[enum]
-
setFormat
public void setFormat(int value)
- Parameters:
value- WebIDL type:PxHeightFieldFormatEnum[enum]
-
getSamples
public PxStridedData getSamples()
- Returns:
- WebIDL type:
PxStridedData[Value]
-
setSamples
public void setSamples(PxStridedData value)
- 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
public PxHeightFieldFlags getFlags()
- Returns:
- WebIDL type:
PxHeightFieldFlags[Value]
-
setFlags
public void setFlags(PxHeightFieldFlags value)
- Parameters:
value- WebIDL type:PxHeightFieldFlags[Value]
-
setToDefault
public void setToDefault()
-
isValid
public boolean isValid()
- Returns:
- WebIDL type: boolean
-
-