Package org.robwork.sdurw
Class ProximityFilter
- java.lang.Object
-
- org.robwork.sdurw.ProximityFilter
-
public class ProximityFilter extends java.lang.Object
this class is used for fetching frame pairs using some proximity filtering strategy.
The proximity filter is statefull and in the simplest case its an iterator over a set of frame pairs.
The filter implementations should support early existing, to reduce computations.
-
-
Constructor Summary
Constructors Constructor Description ProximityFilter(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
FramePair
front()
if there are any more possibly colliding framepairs since last
call to update then this will return true, else false will be returned.FramePair
frontAndPop()
returns the current front and pops it afterwardsstatic long
getCPtr(ProximityFilter obj)
boolean
isEmpty()
if there are any more possibly colliding framepairs since last
call to update then this will return true, else false will be returned.void
pop()
pop the current front.
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(ProximityFilter obj)
-
delete
public void delete()
-
pop
public void pop()
pop the current front.
-
frontAndPop
public FramePair frontAndPop()
returns the current front and pops it afterwards- Returns:
- the current front element
-
front
public FramePair front()
if there are any more possibly colliding framepairs since last
call to update then this will return true, else false will be returned.
-
isEmpty
public boolean isEmpty()
if there are any more possibly colliding framepairs since last
call to update then this will return true, else false will be returned.
-
-