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