Class ProximityStrategyDataPtr


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

      • ProximityStrategyDataPtr

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

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

        public ProximityStrategyDataPtr​(ProximityStrategyData ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • 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
      • getCache

        public ProximityCachePtr getCache()
        Get the underlying cache
        Returns:
        pointer to cache
      • getCollisionData

        public CollisionResult getCollisionData()
        get the result from the collision check
        Returns:
        Result of Collision strategy if available
      • inCollision

        public SWIGTYPE_p_bool inCollision()
        was collision check in collision
        Returns:
        true if in collision
      • setCollisionQueryType

        public void setCollisionQueryType​(CollisionStrategy.QueryType qtype)
        set the Collision Query type
        Parameters:
        qtype - [in] the used Query type
      • getCollisionQueryType

        public CollisionStrategy.QueryType getCollisionQueryType()
        Get the used Collision Query type
        Returns:
        Querytype
      • getMultiDistanceTolerance

        public double getMultiDistanceTolerance()
        get the tolerance used to treshold which distances are recorded and which are not.
        point pairs that are closer than tolerance will be included in the
        result.
        Returns:
        The set tolerance
      • setMultiDistanceTolerance

        public void setMultiDistanceTolerance​(double tolerance)
        set the tolerance used to treshold which distances are recorded and which are not.
        point pairs that are closer than tolerance will be included in the
        result.
        Parameters:
        tolerance - [in] set the stored tolerance
      • setRel_err

        public void setRel_err​(double value)
        relative acceptable error
      • getRel_err

        public double getRel_err()
        relative acceptable error
      • setAbs_err

        public void setAbs_err​(double value)
        absolute acceptable error
      • getAbs_err

        public double getAbs_err()
        absolute acceptable error