Eclipse SUMO - Simulation of Urban MObility
GNECreateEdgeFrame.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // The Widget for create edges (and junctions)
16 /****************************************************************************/
17 #ifndef GNECreateEdgeFrame_h
18 #define GNECreateEdgeFrame_h
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include "GNEFrame.h"
24 
25 
26 // ===========================================================================
27 // class definitions
28 // ===========================================================================
33 class GNECreateEdgeFrame : public GNEFrame {
35  FXDECLARE(GNECreateEdgeFrame)
36 
37 public:
42  GNECreateEdgeFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
43 
46 
53  void processClick(const Position& clickedPosition, GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor, bool oppositeEdge, bool chainEdge);
54 
56  void abortEdgeCreation();
57 
59  void show();
60 
62  void hide();
63 
67  long onCmdOK(FXObject*, FXSelector, void*);
68 
70  long onCmdCancel(FXObject*, FXSelector, void*);
71 
72 protected:
75 
76 private:
79 };
80 
81 
82 #endif
83 
84 /****************************************************************************/
85 
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any edge modifications.
void abortEdgeCreation()
abort current edge creation
~GNECreateEdgeFrame()
Destructor.
void processClick(const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, bool oppositeEdge, bool chainEdge)
handle processClick and set the relative colouring
void hide()
hide prohibition frame
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:39
class used to group all variables related with objects under cursor after a click over view ...
GNEJunction * myCreateEdgeSource
source junction for new edge
long onCmdOK(FXObject *, FXSelector, void *)
void show()
show prohibition frame
GNECreateEdgeFrame()
FOX needs this.