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
45
~GNECreateEdgeFrame
();
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
:
74
GNECreateEdgeFrame
() {}
75
76
private
:
78
GNEJunction
*
myCreateEdgeSource
;
79
};
80
81
82
#endif
83
84
/****************************************************************************/
85
GNECreateEdgeFrame::~GNECreateEdgeFrame
~GNECreateEdgeFrame()
Destructor.
Definition:
GNECreateEdgeFrame.cpp:63
GNECreateEdgeFrame::onCmdOK
long onCmdOK(FXObject *, FXSelector, void *)
Definition:
GNECreateEdgeFrame.cpp:143
GNECreateEdgeFrame::processClick
void processClick(const Position &clickedPosition, GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, bool oppositeEdge, bool chainEdge)
handle processClick and set the relative colouring
Definition:
GNECreateEdgeFrame.cpp:67
GNEFrame
Definition:
GNEFrame.h:35
GNEViewNet
Definition:
GNEViewNet.h:43
GNECreateEdgeFrame::abortEdgeCreation
void abortEdgeCreation()
abort current edge creation
Definition:
GNECreateEdgeFrame.cpp:113
GNEViewNetHelper::ObjectsUnderCursor
class used to group all variables related with objects under cursor after a click over view
Definition:
GNEViewNetHelper.h:149
Position
A point in 2D or 3D with translation and scaling methods.
Definition:
Position.h:39
GNECreateEdgeFrame::onCmdCancel
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user presses the Cancel-button discards any edge modifications.
Definition:
GNECreateEdgeFrame.cpp:136
GNECreateEdgeFrame::hide
void hide()
hide prohibition frame
Definition:
GNECreateEdgeFrame.cpp:130
GNECreateEdgeFrame::show
void show()
show prohibition frame
Definition:
GNECreateEdgeFrame.cpp:124
GNEJunction
Definition:
GNEJunction.h:48
GNECreateEdgeFrame::myCreateEdgeSource
GNEJunction * myCreateEdgeSource
source junction for new edge
Definition:
GNECreateEdgeFrame.h:78
GNEFrame.h
GNECreateEdgeFrame::GNECreateEdgeFrame
GNECreateEdgeFrame()
FOX needs this.
Definition:
GNECreateEdgeFrame.h:74
GNECreateEdgeFrame
Definition:
GNECreateEdgeFrame.h:33
src
netedit
frames
GNECreateEdgeFrame.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16