52 GNEChange(junctionParent->getNet(), forward),
53 myJunctionParent(junctionParent),
57 mySelected(selected) {
83 WRITE_WARNING(
"Changed flag netBuilder::haveNetworkCrossings from 'true' to 'false'");
91 std::string selected =
mySelected ? (
"a previously selected ") : (
"");
101 WRITE_WARNING(
"Changed flag netBuilder::haveNetworkCrossings from 'false' to 'true'");
126 std::string selected =
mySelected ? (
"a previously selected ") : (
"");
136 WRITE_WARNING(
"Changed flag netBuilder::haveNetworkCrossings from 'false' to 'true'");
168 WRITE_WARNING(
"Changed flag netBuilder::haveNetworkCrossings from 'true' to 'false'");
void setHaveNetworkCrossings(bool value)
enable crossing in networks
the function-object for an editing operation (abstract base)
FXString undoName() const
return undoName
void select(GUIGlID id, bool update=true)
Adds the object with the given id.
The representation of a single edge during network building.
NBNode * getNBNode() const
Return net build node.
bool mySelected
flag to indicates if crossing was previously selected
#define WRITE_WARNING(msg)
static OptionsCont & getOptions()
Retrieves the options.
void removeCrossing(const EdgeVector &edges)
remove a pedestrian crossing from this node (identified by its edges)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
const std::vector< GNECrossing * > & getGNECrossings() const
Returns GNECrossings.
const std::string getID() const
function to support debugging
GNEJunction * myJunctionParent
full information regarding the Junction in which GNECRossing is created
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
bool haveNetworkCrossings()
notify about style of loaded network (Without Crossings)
~GNEChange_Crossing()
Destructor.
bool myPriority
priority of GNECrossing
std::vector< NBEdge * > myEdges
vector to save all edges of GNECrossing
void rebuildGNECrossings()
rebuilds crossing objects for this junction
crossing between edges for pedestrians
bool netHasGNECrossings() const
check if net has GNECrossings
EdgeVector edges
The edges being crossed.
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
void addCrossing(EdgeVector edges, double width, bool priority, bool fromSumoNet=false)
add a pedestrian crossing to this node
A definition of a pedestrian crossing.
SumoXMLTag getTag() const
get XML Tag assigned to this object
FXString redoName() const
get Redo name
double myWidth
width of GNECrossing
GUISelectedStorage gSelected
A global holder of selected objects.
GNEViewNet * getViewNet() const
get view net
NBNetBuilder * getNetBuilder() const
get net builder