76 std::vector<adore::env::BorderBased::Border*> newBorders,
77 std::vector<adore::env::BorderBased::BorderID> outdatedBorders,
78 std::vector<adore::env::BorderBased::StopLine> &newLines,
79 std::vector<adore::env::BorderBased::StopLine> &outdatedLines,
80 int MAX_SEND_NUMBER = 5
84 outdatedLines.clear();
87 for(
auto borderID = outdatedBorders.begin(); borderID!=outdatedBorders.end(); borderID++)
103 for(
auto border = newBorders.begin(); border!=newBorders.end(); border++)
122 if(newCount>=MAX_SEND_NUMBER)
130 for(;bCount>0;bCount--)
This class represents a set of objects that are positioned by LanePosition.
Definition: lanepositionedobjectset.h:34
void eraseObjectsBorderBased(const std::vector< Border * > borderSet)
Erase Objects that are positioned on certain borders.
Definition: lanepositionedobjectset.h:178
void insert_object(object *obj, bool remove_duplicates=false, double precision=0.5)
Insert a new object.
Definition: lanepositionedobjectset.h:147
ObjectIteratorPair getObjects(const BorderID &borderID)
Get the begin()- and end()-iterator for objects that are positioned on a certain border.
Definition: lanepositionedobjectset.h:234
bool hasObjects(const BorderID &borderID)
Check whether at least one object is contained that is positioned on a certain Border.
Definition: lanepositionedobjectset.h:212
void setIsOwner(bool isOwner)
Set the owner flag.
Definition: lanepositionedobjectset.h:68
void clear()
Clear the LanePositionedObjectSet.
Definition: lanepositionedobjectset.h:76
This class provide information about stoplines.
Definition: stopline.h:31
manage new and outdated stop lines based on newly visible and no longer visible borders and the last ...
Definition: map_stopline_management.h:30
MapStopLineManagement()
Construct a new Map Stop Line Management object.
Definition: map_stopline_management.h:40
adore::env::BorderBased::LanePositionedObjectSet m_localSet
Definition: map_stopline_management.h:32
void run(std::vector< adore::env::BorderBased::Border * > newBorders, std::vector< adore::env::BorderBased::BorderID > outdatedBorders, std::vector< adore::env::BorderBased::StopLine > &newLines, std::vector< adore::env::BorderBased::StopLine > &outdatedLines, int MAX_SEND_NUMBER=5)
receive newly visible or newly outdated stop lines based on new and outdated borders
Definition: map_stopline_management.h:75
void init(adore::env::BorderBased::LanePositionedObjectSet &globalSet)
initialization routine
Definition: map_stopline_management.h:50
std::deque< adore::env::BorderBased::BorderID > m_borderQueue
Definition: map_stopline_management.h:33
adore::env::BorderBased::LanePositionedObjectSet m_globalSet
Definition: map_stopline_management.h:31
void reset()
clear local sets and pending updates
Definition: map_stopline_management.h:60
Definition: areaofeffectconverter.h:20