67 const std::string& lane,
double posOverLane,
68 bool friendlyPos,
double posLat,
69 const std::string& icon,
109 void setIcon(
const std::string& icon);
125 void writeXML(
OutputDevice& out,
const bool geo =
false,
const double zOffset = 0.,
const std::string laneID =
"",
const double pos = 0.,
const bool friendlyPos =
false,
const double posLat = 0.)
const;
Static storage of an output device and its base (abstract) implementation.
std::map< std::string, std::string > Map
parameters map
Parameterised()
Default constructor.
bool myGeo
flag to check if POI was loaded as GEO Position (main used by netedit)
POIIcon getIcon() const
get icon
~PointOfInterest()
Destructor.
bool getFriendlyPos() const
returns friendly position
void setHeight(double height)
set the image height of the POI
double myHalfImgHeight
The half height of the image when rendering this POI.
void setFriendlyPos(const bool friendlyPos)
set friendly position
double myPosLat
lateral position over lane in which this POI is placed (main used by netedit)
Position getCenter() const
Returns the image center of the POI.
void setWidth(double width)
set the image width of the POI
double getHeight() const
Returns the image height of the POI.
bool myFriendlyPos
friendlyPos enable or disable friendly position for position over lane
std::string myLane
ID of lane in which this POI is placed (main used by netedit).
void setIcon(const std::string &icon)
set icon
double myPosOverLane
position over lane in which this POI is placed (main used by netedit)
double getWidth() const
Returns the image width of the POI.
const std::string & getIconStr() const
get icon(in string format)
PointOfInterest(const std::string &id, const std::string &type, const RGBColor &color, const Position &pos, bool geo, const std::string &lane, double posOverLane, bool friendlyPos, double posLat, const std::string &icon, double layer=DEFAULT_LAYER, double angle=DEFAULT_ANGLE, const std::string &imgFile=DEFAULT_IMG_FILE, double width=DEFAULT_IMG_WIDTH, double height=DEFAULT_IMG_HEIGHT, const std::string &name=DEFAULT_NAME, const Parameterised::Map ¶meters=DEFAULT_PARAMETERS)
Constructor.
void writeXML(OutputDevice &out, const bool geo=false, const double zOffset=0., const std::string laneID="", const double pos=0., const bool friendlyPos=false, const double posLat=0.) const
double myHalfImgWidth
The half width of the image when rendering this POI.
Position()
default constructor
static const double DEFAULT_LAYER
static const double DEFAULT_IMG_WIDTH
static const std::string DEFAULT_IMG_FILE
static const double DEFAULT_ANGLE
static const std::string DEFAULT_NAME
static const double DEFAULT_IMG_HEIGHT
Shape(const std::string &id)
default consructor
static const Parameterised::Map DEFAULT_PARAMETERS