56 const std::vector<std::string>& removeByNames);
95 void addLanePos(
const std::string& poiID,
const std::string& laneID,
double lanePos,
double lanePosLat);
102 void save(
const std::string& file,
bool useGeo);
125 LanePos(
const std::string& _laneID,
double _pos,
double _posLat) :
A class that stores a 2D geometrical boundary.
A storage for options typed value containers)
Static storage of an output device and its base (abstract) implementation.
A storage for loaded polygons and pois.
std::map< std::string, LanePos > myLanePosPois
An id to pos map for lane pos specs.
void addLanePos(const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat)
static void writeDlrTDPHeader(OutputDevice &device, const OptionsCont &oc)
bool myDoPrune
Information whether the pruning boundary shall be used.
~PCPolyContainer()
Destructor.
PCPolyContainer(const PCPolyContainer &s)
Invalidated copy constructor.
void save(const std::string &file, bool useGeo)
Saves the stored polygons and pois into the given file.
bool add(SUMOPolygon *poly, bool ignorePruning=false)
Adds a polygon to the storage.
void saveDlrTDP(const std::string &prefix)
Saves the stored polygons and pois into the given file in dlrTDP format.
std::vector< std::string > myRemoveByNames
List of names of polygons/pois that shall be removed.
PCPolyContainer(bool prune, const Boundary &pruningBoundary, const std::vector< std::string > &removeByNames)
Constructor.
std::map< std::string, int > myIDEnums
An id to int map for proper enumeration.
int getEnumIDFor(const std::string &key)
Retuns a unique id for a given name.
PCPolyContainer & operator=(const PCPolyContainer &s)
Invalidated assignment operator.
Boundary myPruningBoundary
The boundary that described the rectangle within which an object must be in order to be kept.
Storage for geometrical objects.
LanePos(const std::string &_laneID, double _pos, double _posLat)