20 #ifndef GNEAdditional_h 21 #define GNEAdditional_h virtual bool isValid(SumoXMLAttr key, const std::string &value)=0
method for checking if the key and their conrrespond attribute are valids
virtual void openAdditionalDialog()
open Additional Dialog
GNELane * getLane() const
get lane of additional, or NULL if additional isn't placed over a Lane
SumoXMLTag
Numbers representing SUMO-XML - element names.
bool isAdditionalBlocked() const
Check if additional item is currently blocked (i.e. cannot be moved with mouse)
const std::string & getAdditionalID() const
returns the ID of additional
GNELane * myLane
The lane this additional belongs NULL if additional doesnt' belongs to a lane.
Stores the information about how to visualize structures.
bool myRotationLefthand
rotation depending of the option "Lefthand"
virtual const std::string & getParentName() const =0
Returns the name of the parent object (if any)
Dialog to edit sequences, parameters, etc.. of Additionals.
PositionVector getShape() const
Returns additional element's shape.
virtual void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)=0
method for setting the attribute and letting the object perform additional changes ...
virtual void drawGL(const GUIVisualizationSettings &s) const =0
Draws the object.
A NBNetBuilder extended by visualisation and editing capabilities.
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void commmitAdditionalGeometryMoved(const Position &oldPos, GNEUndoList *undoList)
updated geometry changes in the attributes of additional
GUIGLObjectPopupMenu * getPopUpMenu(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own popup-menu.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
GNEAdditionalDialog * myAdditionalDialog
pointer to additional dialog
An Element wich group additionalSet elements.
A class that stores a 2D geometrical boundary.
virtual std::string getAttribute(SumoXMLAttr key) const =0
bool isAdditionalInspectionable() const
check if additional element is inspectionable (With GNEInspectorFrame)
GNEAdditionalSet * getAdditionalSetParent() const
get additionalSet parent, or NULL if don't belongs to an additionalSet
Boundary getCenteringBoundary() const
Returns the boundary to which the view shall be centered in order to show the object.
GNEViewNet * myViewNet
The GNEViewNet this additional element belongs.
RGBColor myBaseColorSelected
base color selected (Default blue)
void changeEdge(const std::string &edgeID)
change edge of additional
std::vector< SUMOReal > myShapeLengths
The lengths of the shape parts.
SUMOReal myBlockIconRotation
The rotation of the block icon.
bool myMovable
boolean to check if additional element is movable (with the mouse). By default true ...
GNEAdditional(const std::string &id, GNEViewNet *viewNet, Position pos, SumoXMLTag tag, GNEAdditionalSet *additionalSetParent=NULL, bool blocked=false)
Constructor.
PositionVector myShape
The shape of the additional element.
A point in 2D or 3D with translation and scaling methods.
void setBlockIconRotation(GNELane *lane=NULL)
GUIParameterTableWindow * getParameterWindow(GUIMainWindow &app, GUISUMOAbstractView &parent)
Returns an own parameter window.
void drawLockIcon(SUMOReal size=0.5) const
draw lock icon
void setAdditionalID(const std::string &id)
set the ID of additional
~GNEAdditional()
Destructor.
void changeLane(const std::string &laneID)
change lane of additional
Position myBlockIconOffset
The offSet of the block icon.
GNEAdditional & operator=(const GNEAdditional &)
Invalidated assignment operator.
A road/street connecting two junctions (netedit-version)
GNEViewNet * getViewNet() const
Returns a pointer to GNEViewNet in which additional element is located.
bool isAdditionalSelectable() const
check if additional element is selectable (With GNESelectorFrame)
bool myBlocked
boolean to check if additional element is blocked (i.e. cannot be moved with mouse) ...
void moveAdditionalGeometry(const Position &offset)
change the position of the additional geometry
GNEAdditionalSet * myAdditionalSetParent
pointer to additional set parent, if belong to set
An Element which don't belongs to GNENet but has influency in the simulation.
bool isAdditionalMovable() const
check if additional element is movable
RGBColor myBaseColor
base color (Default green)
std::vector< SUMOReal > myShapeRotations
bool mySelectable
boolean to check if additional element is selectable (With GNESelectorFrame). By default true ...
virtual void writeAdditional(OutputDevice &device, const std::string ¤tDirectory)=0
writte additional element into a xml file
Static storage of an output device and its base (abstract) implementation.
Position myPosition
The position in which this additional element is located.
void setPositionInView(const Position &pos)
set new position in the view
bool isAdditionalSelected() const
virtual void updateGeometry()=0
update pre-computed geometry information
bool myInspectionable
boolean to check if additional element is inspectionable (With GNEInspectorFrame). By default true
GNEEdge * myEdge
The edge this additional belongs NULL if additional doesnt' belongs to a edge.
A window containing a gl-object's parameter.
GNEEdge * getEdge() const
get edge of additional, or NULL if additional isn't placed over an edge
Position myBlockIconPosition
position of the block icon
virtual Position getPositionInView() const =0
Returns position of additional in view.