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 /****************************************************************************/
14 // The Widget for create edges (and junctions)
15 /****************************************************************************/
16 #ifndef GNECreateEdgeFrame_h
17 #define GNECreateEdgeFrame_h
18 
19 // ===========================================================================
20 // included modules
21 // ===========================================================================
22 #include "GNEFrame.h"
23 
24 
25 // ===========================================================================
26 // class definitions
27 // ===========================================================================
32 class GNECreateEdgeFrame : public GNEFrame {
34  FXDECLARE(GNECreateEdgeFrame)
35 
36 public:
41  GNECreateEdgeFrame(FXHorizontalFrame* horizontalFrameParent, GNEViewNet* viewNet);
42 
45 
53  void processClick(const Position& clickedPosition, GNEViewNetHelper::ObjectsUnderCursor& objectsUnderCursor,
54  GNEViewNetHelper::ObjectsUnderCursor& objectsUnderGrippedCursor, const bool oppositeEdge, const bool chainEdge);
55 
57  void abortEdgeCreation();
58 
60  void show();
61 
63  void hide();
64 
68  long onCmdOK(FXObject*, FXSelector, void*);
69 
71  long onCmdCancel(FXObject*, FXSelector, void*);
72 
73 protected:
75 
76 private:
79 };
80 
81 
82 #endif
83 
84 /****************************************************************************/
85 
GNECreateEdgeFrame::~GNECreateEdgeFrame
~GNECreateEdgeFrame()
Destructor.
Definition: GNECreateEdgeFrame.cpp:62
GNECreateEdgeFrame::onCmdOK
long onCmdOK(FXObject *, FXSelector, void *)
Definition: GNECreateEdgeFrame.cpp:158
GNEFrame
Definition: GNEFrame.h:34
GNEViewNet
Definition: GNEViewNet.h:42
GNECreateEdgeFrame::abortEdgeCreation
void abortEdgeCreation()
abort current edge creation
Definition: GNECreateEdgeFrame.cpp:128
GNECreateEdgeFrame::processClick
void processClick(const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderGrippedCursor, const bool oppositeEdge, const bool chainEdge)
handle processClick and set the relative colouring
Definition: GNECreateEdgeFrame.cpp:66
GNEViewNetHelper::ObjectsUnderCursor
class used to group all variables related with objects under cursor after a click over view
Definition: GNEViewNetHelper.h:148
FOX_CONSTRUCTOR
#define FOX_CONSTRUCTOR(classname)
Definition: config.h:13
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
GNECreateEdgeFrame::onCmdCancel
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any edge modifications.
Definition: GNECreateEdgeFrame.cpp:151
GNECreateEdgeFrame::hide
void hide()
hide prohibition frame
Definition: GNECreateEdgeFrame.cpp:145
GNECreateEdgeFrame::show
void show()
show prohibition frame
Definition: GNECreateEdgeFrame.cpp:139
GNECreateEdgeFrame::GNECreateEdgeFrame
GNECreateEdgeFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
FOX-declaration.
Definition: GNECreateEdgeFrame.cpp:56
GNEJunction
Definition: GNEJunction.h:47
GNECreateEdgeFrame::myCreateEdgeSource
GNEJunction * myCreateEdgeSource
source junction for new edge
Definition: GNECreateEdgeFrame.h:78
GNEFrame.h
GNECreateEdgeFrame
Definition: GNECreateEdgeFrame.h:32