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