Package org.robwork.sdurw_proximity
Class ProximityCalculatorCollisionCPtr
- java.lang.Object
-
- org.robwork.sdurw_proximity.ProximityCalculatorCollisionCPtr
-
public class ProximityCalculatorCollisionCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ProximityCalculatorCollisionCPtr()
Default constructor yielding a NULL-pointer.ProximityCalculatorCollisionCPtr(long cPtr, boolean cMemoryOwn)
ProximityCalculatorCollisionCPtr(ProximityCalculatorCollision ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProximityCalculatorCollision
__ref__()
Dereferencing operator.void
delete()
ProximityCalculatorCollision
deref()
The pointer stored in the object.boolean
equals(ProximityCalculatorCollision p)
double
getComputationTime()
Get the computation time used in the inCollision functions.static long
getCPtr(ProximityCalculatorCollisionCPtr obj)
ProximityCalculatorCollision
getDeref()
Member access operator.long
getNoOfCalls()
Get the number of times the inCollision functions have been called.ProximityFilterStrategyPtr
getProximityFilterStrategy()
The Proximity Filter strategy of the ProximityCalculator.CollisionStrategyPtr
getStrategy()
Get the ProximityStrategy.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
ProximityCalculatorCollisionCPtr
public ProximityCalculatorCollisionCPtr(long cPtr, boolean cMemoryOwn)
-
ProximityCalculatorCollisionCPtr
public ProximityCalculatorCollisionCPtr()
Default constructor yielding a NULL-pointer.
-
ProximityCalculatorCollisionCPtr
public ProximityCalculatorCollisionCPtr(ProximityCalculatorCollision ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ProximityCalculatorCollisionCPtr obj)
-
delete
public void delete()
-
deref
public ProximityCalculatorCollision deref()
The pointer stored in the object.
-
__ref__
public ProximityCalculatorCollision __ref__()
Dereferencing operator.
-
getDeref
public ProximityCalculatorCollision getDeref()
Member access operator.
-
equals
public boolean equals(ProximityCalculatorCollision p)
-
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
-
getProximityFilterStrategy
public ProximityFilterStrategyPtr getProximityFilterStrategy()
The Proximity Filter strategy of the ProximityCalculator.
-
getStrategy
public CollisionStrategyPtr getStrategy()
Get the ProximityStrategy.- Returns:
- the strategy if set, otherwise NULL.
-
getComputationTime
public double getComputationTime()
Get the computation time used in the inCollision functions.- Returns:
- the total computation time.
-
getNoOfCalls
public long getNoOfCalls()
Get the number of times the inCollision functions have been called.- Returns:
- number of calls to inCollision functions.
-
-