66 double layer,
double angle,
const std::string& imgFile,
const Position& pos,
67 double width,
double height,
bool movementBlocked) :
71 myPositionOverLane(0) {
212 return canParse<RGBColor>(value);
221 return canParse<double>(value);
229 return canParse<double>(value);
240 return canParse<double>(value);
242 return canParse<double>(value);
244 return canParse<double>(value);
246 return canParse<bool>(value);
261 std::string oldID =
myID;
267 myColor = parse<RGBColor>(value);
285 myLayer = parse<double>(value);
void refreshElement(GUIGlObject *o)
refreshes boundary information for o and update
void refreshPOI(GNEPOI *p)
refresh shape in view net
double x() const
Returns the x-position.
Stores the information about how to visualize structures.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
A NBNetBuilder extended by visualisation and editing capabilities.
GNEPOI(GNENet *net, const std::string &id, const std::string &type, const RGBColor &color, double layer, double angle, const std::string &imgFile, const Position &pos, double width, double height, bool movementBlocked)
Constructor.
void p_begin(const std::string &description)
Begin undo command sub-group. This begins a new group of commands that are treated as a single comman...
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
begin/end of the description of a polygon
std::string getAttribute(SumoXMLAttr key) const
method for getting the Attribute of an XML key
static bool isValidFilename(const std::string &value)
true if value is a valid file value
GNENet * myNet
the net to inform about updates
A class that stores a 2D geometrical boundary.
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::string myType
The type of the Shape.
virtual const std::string & getMicrosimID() const
Returns the id of the object as known to microsim.
void moveGeometry(const Position &newPosition)
change the position of the element geometry without saving in undoList
void p_add(GNEChange_Attribute *cmd)
special method, avoid empty changes, always execute
void writeXML(OutputDevice &out, const bool geo=false, const double zOffset=0., const std::string laneID="", const double pos=0., const double posLat=0.)
void drawLockIcon(const Position &pos, double layer, double size=0.5) const
draw lock icon
static bool isValidID(const std::string &value)
true if value is a valid sumo ID
void changePOIID(GNEPOI *POI, const std::string &OldID)
change POI ID
void commitGeometryMoving(const Position &oldPos, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their correspond attribute are valids
double myPositionOverLane
position over lane
bool myBlockMovement
flag to block movement
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise, the sub-group will be added as a new command into parent group. A matching begin() must have been called previously.
A point in 2D or 3D with translation and scaling methods.
GNELane * retrieveLane(const std::string &id, bool failHard=true)
get lane by id
GNELane * myLane
lane in which this POI can be placed
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
const std::string & getParentName() const
Returns the name of the parent object.
friend class GNEChange_Attribute
declare friend class
double y() const
Returns the y-position.
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
static int getTextureID(const std::string &filename, const bool mirrorX=false)
return texture id for the given filename (initialize on first use)
block movement of a graphic element
double getWidth() const
Returns the image width of the POI.
const std::string getID() const
function to support debugging
Position getPositionInView() const
Returns position of additional in view.
std::string myID
The name of the object.
void setHeight(double height)
set the image height of the POI
void setWidth(double width)
set the image width of the POI
void setNaviDegree(const double angle)
Sets a new angle in navigational degrees.
std::string myImgFile
The angle of the Shape.
RGBColor myColor
The color of the Shape.
double myLayer
The layer of the Shape.
void writeShape(OutputDevice &device)
writte shape element into a xml file
SumoXMLTag getTag() const
get XML Tag assigned to this object
Static storage of an output device and its base (abstract) implementation.
GNEPOI * retrievePOI(const std::string &id, bool failHard=true) const
get POI by id
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
Position()
default constructor
double getNaviDegree() const
Returns the angle of the Shape in navigational degrees.
A window containing a gl-object's parameter.
GNEViewNet * getViewNet() const
get view net
double getHeight() const
Returns the image height of the POI.
static PositionVector parseShapeReporting(const std::string &shpdef, const std::string &objecttype, const char *objectid, bool &ok, bool allowEmpty, bool report=true)
Builds a PositionVector from a string representation, reporting occured errors.
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.