This class chooses the straightest successor of a border until an upper limit on distance is reached. More...
#include <borderaccumulator.h>
Public Member Functions | |
BASFollowStraight (Border *border, BorderSet *borderSet, double max_distance) | |
Construct a new BASFollowStraight object. More... | |
virtual void | getNextBorder (Border *&border, bool &inverted) override |
Get the next border. More... | |
Public Member Functions inherited from adore::env::BorderBased::BorderAccumulationStrategy | |
BorderAccumulationStrategy () | |
bool | borderValid (Border *b) |
Check whether a border is valid. More... | |
Private Attributes | |
Border * | m_current |
double | m_distance |
Additional Inherited Members | |
Protected Attributes inherited from adore::env::BorderBased::BorderAccumulationStrategy | |
BorderSet * | m_borderSet |
This class chooses the straightest successor of a border until an upper limit on distance is reached.
|
inline |
Construct a new BASFollowStraight object.
border | starting border |
borderSet | set of borders to consider |
max_distance | upper bound for distance |
|
inlineoverridevirtual |
Get the next border.
border | next border |
inverted | describes whether order is inverted (check again NiM) |
Implements adore::env::BorderBased::BorderAccumulationStrategy.
|
private |
upper bound distance