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;
101 void setDefaults(
const std::string& prefix,
const RGBColor& color,
const double layer,
const bool fill =
false);
double myDefaultLayer
The default layer to use.
ShapeHandler(const std::string &file, ShapeContainer &sc)
Constructor.
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.
virtual Position getLanePos(const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat)=0
get position for a given laneID
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
Encapsulated SAX-Attributes.
virtual bool addLanePosParams()
Whether some input attributes shall be automatically added as params.
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