efficiently store borders in boost R-tree
Definition: borderset.h:99
input: 2 files, reference lines and borders output: border file
Definition: r2s2borderbased.h:31
void convert(std::string referenceLineFile, std::string laneBorderFile, env::BorderBased::BorderSet &targetset)
convert to borders
Definition: r2s2borderbased.cpp:182
void cleanup(TSectionMap §ionmap)
cleanup leftover functions in sectionmap
Definition: r2s2borderbased.cpp:50
void toBorders(const TReferenceLineVector &reflines, const TLaneBorderVector &laneborders, env::BorderBased::BorderSet &targetset)
converts sets of ReferenceLine and LaneBorder structs into adore borders
Definition: r2s2borderbased.cpp:83
void createBorders(TDist2Function &dist2function, double s0, double s1, int max_points, adore::env::BorderBased::BorderSet &targetSet, bool inverted)
borders for functions in dist2function from s0 to s1
Definition: r2s2borderbased.cpp:253
std::map< int, TFunctionTypePair > TDist2Function
Definition: r2s2borderbased.h:34
env::BorderBased::BorderType::TYPE convertLaneBorderType(LaneBorder::TYPE type)
converts from LaneBorder::TYPE to BorderType::TYPE
Definition: r2s2borderbased.cpp:35
void do_convert(std::string referenceLineFile, std::string laneBorderFile, env::BorderBased::BorderSet &targetset, TSectionMap §ionmap)
actual conversion
Definition: r2s2borderbased.cpp:57
void convertToBorder(TSectionMap sectionmap, env::BorderBased::BorderSet &targetset)
manage overall conversion process from sectionmap to borderset
Definition: r2s2borderbased.cpp:292
std::map< int, Section > TSectionMap
Definition: r2s2borderbased.h:33
R2S2BorderBasedConverter()
Definition: r2s2borderbased.cpp:27
void sortFunctionsByDistance(std::vector< TFunctionTypePair > &functions, TDist2Function &dist2function, double s0, double s1)
sort borders by their distance to base function which is required to be available through dist2functi...
Definition: r2s2borderbased.cpp:210
void group(TReferenceLineVector rlm, TLaneBorderVector lbv, TSectionMap §ionmap)
Definition: r2s2borderbased.cpp:188
void setExtractOnlyReferenceLines(bool b)
set option to only convert reference lines and ignore laneborders
Definition: r2s2borderbased.cpp:31
bool extractOnlyReferenceLines_
Definition: r2s2borderbased.h:37
TYPE
This enum holds the different types of borders.
Definition: border.h:37
std::vector< LaneBorder > TLaneBorderVector
Definition: r2sauxiliary.h:236
std::vector< ReferenceLine > TReferenceLineVector
Definition: r2sauxiliary.h:235
Definition: areaofeffectconverter.h:20
TYPE
Definition: r2sauxiliary.h:145