Package org.robwork.sdurw_proximity
Class ProximityCalculatorDistanceMultiCPtr
- java.lang.Object
-
- org.robwork.sdurw_proximity.ProximityCalculatorDistanceMultiCPtr
-
public class ProximityCalculatorDistanceMultiCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description ProximityCalculatorDistanceMultiCPtr()
Default constructor yielding a NULL-pointer.ProximityCalculatorDistanceMultiCPtr(long cPtr, boolean cMemoryOwn)
ProximityCalculatorDistanceMultiCPtr(DistanceMultiCalculator 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 DistanceMultiCalculator
__ref__()
Dereferencing operator.void
delete()
DistanceMultiCalculator
deref()
The pointer stored in the object.boolean
equals(DistanceMultiCalculator p)
double
getComputationTime()
Get the computation time used in the inCollision functions.static long
getCPtr(ProximityCalculatorDistanceMultiCPtr obj)
DistanceMultiCalculator
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.DistanceMultiStrategyPtr
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
-
ProximityCalculatorDistanceMultiCPtr
public ProximityCalculatorDistanceMultiCPtr(long cPtr, boolean cMemoryOwn)
-
ProximityCalculatorDistanceMultiCPtr
public ProximityCalculatorDistanceMultiCPtr()
Default constructor yielding a NULL-pointer.
-
ProximityCalculatorDistanceMultiCPtr
public ProximityCalculatorDistanceMultiCPtr(DistanceMultiCalculator ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(ProximityCalculatorDistanceMultiCPtr obj)
-
delete
public void delete()
-
deref
public DistanceMultiCalculator deref()
The pointer stored in the object.
-
__ref__
public DistanceMultiCalculator __ref__()
Dereferencing operator.
-
getDeref
public DistanceMultiCalculator getDeref()
Member access operator.
-
equals
public boolean equals(DistanceMultiCalculator 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 DistanceMultiStrategyPtr 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.
-
-