22 #ifndef PCPolyContainer_h
23 #define PCPolyContainer_h
60 const std::vector<std::string>& removeByNames);
99 void addLanePos(
const std::string& poiID,
const std::string& laneID,
SUMOReal lanePos);
106 void save(
const std::string& file,
bool useGeo);
PCPolyContainer(bool prune, const Boundary &pruningBoundary, const std::vector< std::string > &removeByNames)
Constructor.
void save(const std::string &file, bool useGeo)
Saves the stored polygons and pois into the given file.
Storage for geometrical objects.
A class that stores a 2D geometrical boundary.
A storage for loaded polygons and pois.
Boundary myPruningBoundary
The boundary that described the rectangle within which an object must be in order to be kept...
PCPolyContainer & operator=(const PCPolyContainer &s)
Invalidated assignment operator.
~PCPolyContainer()
Destructor.
std::map< std::string, int > myIDEnums
An id to int map for proper enumeration.
bool add(SUMO::Polygon *poly, bool ignorePruning=false)
Adds a polygon to the storage.
int getEnumIDFor(const std::string &key)
Retuns a unique id for a given name.
void addLanePos(const std::string &poiID, const std::string &laneID, SUMOReal lanePos)
std::map< std::string, std::pair< std::string, SUMOReal > > myLanePosPois
An id to pos map for lane pos specs.
std::vector< std::string > myRemoveByNames
List of names of polygons/pois that shall be removed.
bool myDoPrune
Information whether the pruning boundary shall be used.