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