Class ProximityDataPtr


  • public class ProximityDataPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • ProximityDataPtr

        public ProximityDataPtr​(long cPtr,
                                boolean cMemoryOwn)
      • ProximityDataPtr

        public ProximityDataPtr()
        Default constructor yielding a NULL-pointer.
      • ProximityDataPtr

        public ProximityDataPtr​(ProximityData ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • deref

        public ProximityData deref()
        The pointer stored in the object.
      • __ref__

        public ProximityData __ref__()
        Dereferencing operator.
      • getDeref

        public ProximityData getDeref()
        Member access operator.
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • setCollisionQueryType

        public void setCollisionQueryType​(CollisionDetectorQueryType qtype)
        Set the type of collision query.

        The detection can perform faster if it is allowed to return
        after detecting the first collision. Alternatively, it is
        possible to detect all collisions if required.

        Parameters:
        qtype - [in] the query type.
      • getCollisionQueryType

        public CollisionDetectorQueryType getCollisionQueryType()
        Get the collision query type.
        Returns:
        the query type.
      • set_collisionData

        public void set_collisionData​(CollisionDetectorQueryResult value)
        Detailed information about the collision.
        Note: This data is only available for some collision query types.
      • get_collisionData

        public CollisionDetectorQueryResult get_collisionData()
        Detailed information about the collision.
        Note: This data is only available for some collision query types.
      • set_cache

        public void set_cache​(ProximityCachePtr value)
        Cached data used by the collision detector to speed up
        consecutive queries.
      • get_cache

        public ProximityCachePtr get_cache()
        Cached data used by the collision detector to speed up
        consecutive queries.