 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
45 FXIMPLEMENT(
GNECreateEdgeFrame, FXVerticalFrame, GNECreateEdgeFrameMap, ARRAYNUMBER(GNECreateEdgeFrameMap))
58 myCreateEdgeSource(
nullptr) {
80 if (junction ==
nullptr) {
107 std::cout <<
"edge created without an open CommandGroup )-:\n";
void unMarkAsCreateEdgeSource()
removes mark as first junction in createEdge-mode
~GNECreateEdgeFrame()
Destructor.
void p_end()
End undo command sub-group. If the sub-group is still empty, it will be deleted; otherwise,...
long onCmdOK(FXObject *, FXSelector, void *)
void setStatusBarText(const std::string &text)
set staturBar text
FXDEFMAP(GNECreateEdgeFrame) GNECreateEdgeFrameMap[]
void abortEdgeCreation()
abort current edge creation
Position snapToActiveGrid(const Position &pos, bool snapXY=true) const
Returns a position that is mapped to the closest grid point if the grid is active.
void processClick(const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderGrippedCursor, const bool oppositeEdge, const bool chainEdge)
handle processClick and set the relative colouring
A road/street connecting two junctions (netedit-version)
GNENet * getNet() const
get the net object
GNEEdge * getEdgeTemplate() const
get the template edge (to copy attributes from)
void markAsCreateEdgeSource()
marks as first junction in createEdge-mode
NBEdge * getNBEdge() const
returns the internal NBEdge
class used to group all variables related with objects under cursor after a click over view
begin/end of the description of an edge
GNEEdge * createEdge(GNEJunction *src, GNEJunction *dest, GNEEdge *tpl, GNEUndoList *undoList, const std::string &suggestedName="", bool wasSplit=false, bool allowDuplicateGeom=false, bool recomputeConnections=true)
creates a new edge (unless an edge with the same geometry already exists)
TemplateEditor * getTemplateEditor() const
get template editor
GNEInspectorFrame * getInspectorFrame() const
get frame for GNE_NMODE_INSPECT
A point in 2D or 3D with translation and scaling methods.
GNEViewNet * myViewNet
View Net.
GNEUndoList * getUndoList() const
get the undoList object
GNEJunction * getJunctionFront() const
get front junction (or a pointer to nullptr if there isn't)
GNEJunction * createJunction(const Position &pos, GNEUndoList *undoList)
creates a new junction
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any edge modifications.
C++ TraCI client API implementation.
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void hide()
hide prohibition frame
bool hasCommandGroup() const
Check if undoList has command group.
void show()
show prohibition frame
GNEJunction * myCreateEdgeSource
source junction for new edge
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...
virtual void show()
show Frame
virtual void hide()
hide Frame
GNEViewParent * getViewParent() const
get the net object
const std::string & getID() const