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