SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
GNEChange_Connection.h
Go to the documentation of this file.
1
/****************************************************************************/
7
// A network change in which a single connection is created or deleted
8
/****************************************************************************/
9
// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10
// Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
11
/****************************************************************************/
12
//
13
// This file is part of SUMO.
14
// SUMO is free software: you can redistribute it and/or modify
15
// it under the terms of the GNU General Public License as published by
16
// the Free Software Foundation, either version 3 of the License, or
17
// (at your option) any later version.
18
//
19
/****************************************************************************/
20
#ifndef GNEChange_Connection_h
21
#define GNEChange_Connection_h
22
23
// ===========================================================================
24
// included modules
25
// ===========================================================================
26
#ifdef _MSC_VER
27
#include <
windows_config.h
>
28
#else
29
#include <
config.h
>
30
#endif
31
32
#include <fx.h>
33
#include <string>
34
#include <
utils/foxtools/fxexdefs.h
>
35
#include "
GNEChange.h
"
36
37
// ===========================================================================
38
// class declarations
39
// ===========================================================================
40
class
GNEEdge
;
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
49
class
GNEChange_Connection
:
public
GNEChange
{
50
FXDECLARE_ABSTRACT(
GNEChange_Connection
)
51
52
public
:
59
GNEChange_Connection
(
GNEEdge
* edge,
unsigned
int
fromLane,
60
const
std::string& toEdgeID,
unsigned
int
toLane,
61
bool
mayDefinitelyPass,
bool
forward);
62
64
~GNEChange_Connection
();
65
66
FXString
undoName
()
const
;
67
FXString
redoName
()
const
;
68
void
undo
();
69
void
redo
();
70
71
72
private
:
77
// we need the edge because it is the target of our change commands
78
GNEEdge
*
myEdge
;
79
80
// @brief the lane from which the connection originates
81
unsigned
int
myFromLane
;
82
83
// @brief the id of the target edge
84
const
std::string
myToEdgeID
;
85
86
// @brief the target lane of the connection
87
unsigned
int
myToLane
;
88
89
// @brief whether this connection never yields
90
bool
myPass
;
91
92
};
93
94
#endif
95
/****************************************************************************/
GNEChange_Connection::redo
void redo()
Definition:
GNEChange_Connection.cpp:81
GNEChange
the function-object for an editing operation (abstract base)
Definition:
GNEChange.h:48
GNEChange_Connection::GNEChange_Connection
GNEChange_Connection(GNEEdge *edge, unsigned int fromLane, const std::string &toEdgeID, unsigned int toLane, bool mayDefinitelyPass, bool forward)
Constructor for creating/deleting an edge.
Definition:
GNEChange_Connection.cpp:50
windows_config.h
fxexdefs.h
config.h
GNEChange_Connection::~GNEChange_Connection
~GNEChange_Connection()
Destructor.
Definition:
GNEChange_Connection.cpp:63
GNEChange_Connection
Definition:
GNEChange_Connection.h:49
GNEChange.h
GNEChange_Connection::undoName
FXString undoName() const
Definition:
GNEChange_Connection.cpp:90
GNEChange_Connection::myToLane
unsigned int myToLane
Definition:
GNEChange_Connection.h:87
GNEChange_Connection::myToEdgeID
const std::string myToEdgeID
Definition:
GNEChange_Connection.h:84
GNEEdge
A road/street connecting two junctions (netedit-version)
Definition:
GNEEdge.h:61
GNEChange_Connection::myEdge
GNEEdge * myEdge
full information regarding the lane that is to be created/deleted we assume shared responsibility for...
Definition:
GNEChange_Connection.h:78
GNEChange_Connection::myFromLane
unsigned int myFromLane
Definition:
GNEChange_Connection.h:81
GNEChange_Connection::undo
void undo()
Definition:
GNEChange_Connection.cpp:72
GNEChange_Connection::myPass
bool myPass
Definition:
GNEChange_Connection.h:90
GNEChange_Connection::redoName
FXString redoName() const
Definition:
GNEChange_Connection.cpp:99
src
netedit
GNEChange_Connection.h
Generated on Sun May 29 2016 17:09:42 for SUMO - Simulation of Urban MObility by
1.8.8