 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef ShapeHandler_h
17 #define ShapeHandler_h
91 virtual Position getLanePos(
const std::string& poiID,
const std::string& laneID,
double lanePos,
double lanePosLat) = 0;
98 void setDefaults(
const std::string& prefix,
const RGBColor& color,
const double layer,
const bool fill =
false);
virtual ~ShapeHandler()
Destructor.
An upper class for objects with additional parameters.
Parameterised * myLastParameterised
element to receive parameters
Parameterised * getLastParameterised() const
get last parameterised object
SAX-handler base for SUMO-files.
virtual Position getLanePos(const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat)=0
get position for a given laneID (Has to be implemented in all child)
void addPoly(const SUMOSAXAttributes &attrs, const bool ignorePruning, const bool useProcessing)
adds a polygon
ShapeHandler & operator=(const ShapeHandler &s)=delete
invalidate assignment operator
bool myDefaultFill
Information whether polygons should be filled.
Storage for geometrical objects.
static bool loadFiles(const std::vector< std::string > &files, ShapeHandler &sh)
loads all of the given files
virtual bool addLanePosParams()
Whether some input attributes shall be automatically added as params (Can be implemented in all child...
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
static methods for processing the coordinates conversion for the current net
const GeoConvHelper * myGeoConvHelper
geo-conversion to use during loading
void addPOI(const SUMOSAXAttributes &attrs, const bool ignorePruning, const bool useProcessing)
adds a POI
void setDefaults(const std::string &prefix, const RGBColor &color, const double layer, const bool fill=false)
set default values
RGBColor myDefaultColor
The default color to use.
virtual void myEndElement(int element)
Called when a closing tag occurs.
double myDefaultLayer
The default layer to use.
ShapeHandler(const std::string &file, ShapeContainer &sc, const GeoConvHelper *=nullptr)
Constructor.
A point in 2D or 3D with translation and scaling methods.
ShapeContainer & myShapeContainer
reference to shape container in which all Shares are being added
The XML-Handler for network loading.
Encapsulated SAX-Attributes.
std::string myPrefix
The prefix to use.