Package physx.common
Class PxCollection
- java.lang.Object
-
- physx.NativeObject
-
- physx.common.PxCollection
-
public class PxCollection extends NativeObject
-
-
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 protectedPxCollection()protectedPxCollection(long address)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(PxBase obj)voidadd(PxBase obj, long id)voidaddId(PxBase obj, long id)booleancontains(PxBase obj)PxBasefind(long id)longgetId(PxBase obj)intgetNbIds()intgetNbObjects()PxBasegetObject(int index)voidrelease()voidremove(PxBase obj)voidremoveId(long id)static PxCollectionwrapPointer(long address)-
Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
-
-
-
Method Detail
-
wrapPointer
public static PxCollection wrapPointer(long address)
-
add
public void add(PxBase obj, long id)
- Parameters:
obj- WebIDL type:PxBase[Ref]id- WebIDL type: unsigned long long
-
contains
public boolean contains(PxBase obj)
- Parameters:
obj- WebIDL type:PxBase[Ref]- Returns:
- WebIDL type: boolean
-
addId
public void addId(PxBase obj, long id)
- Parameters:
obj- WebIDL type:PxBase[Ref]id- WebIDL type: unsigned long long
-
removeId
public void removeId(long id)
- Parameters:
id- WebIDL type: unsigned long long
-
getNbObjects
public int getNbObjects()
- Returns:
- WebIDL type: unsigned long
-
getObject
public PxBase getObject(int index)
- Parameters:
index- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxBase[Ref]
-
find
public PxBase find(long id)
- Parameters:
id- WebIDL type: unsigned long long- Returns:
- WebIDL type:
PxBase
-
getNbIds
public int getNbIds()
- Returns:
- WebIDL type: unsigned long
-
getId
public long getId(PxBase obj)
- Parameters:
obj- WebIDL type:PxBase[Const, Ref]- Returns:
- WebIDL type: unsigned long long
-
release
public void release()
-
-