51 double width,
bool priority,
int customTLIndex, const
PositionVector& customShape,
bool selected,
bool forward):
52 GNEChange(junctionParent->getNet(), forward),
53 myJunctionParent(junctionParent),
57 myCustomTLIndex(customTLIndex),
58 myCustomShape(customShape),
59 mySelected(selected) {
85 WRITE_WARNING(
"Changed flag netBuilder::haveNetworkCrossings from 'true' to 'false'");
93 std::string selected =
mySelected ? (
"a previously selected ") : (
"");
103 WRITE_WARNING(
"Changed flag netBuilder::haveNetworkCrossings from 'false' to 'true'");
128 std::string selected =
mySelected ? (
"a previously selected ") : (
"");
138 WRITE_WARNING(
"Changed flag netBuilder::haveNetworkCrossings from 'false' to 'true'");
170 WRITE_WARNING(
"Changed flag netBuilder::haveNetworkCrossings from 'true' to 'false'");
void setHaveNetworkCrossings(bool value)
enable crossing in networks
int myCustomTLIndex
custom index of GNECrossing
the function-object for an editing operation (abstract base)
NBNetBuilder * getNetBuilder() const
get net builder
void select(GUIGlID id, bool update=true)
Adds the object with the given id.
The representation of a single edge during network building.
bool mySelected
flag to indicates if crossing was previously selected
PositionVector myCustomShape
priority of GNECrossing
#define WRITE_WARNING(msg)
bool netHasGNECrossings() const
check if net has GNECrossings
static OptionsCont & getOptions()
Retrieves the options.
const std::vector< GNECrossing * > & getGNECrossings() const
Returns GNECrossings.
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::string getID() const
function to support debugging
void addCrossing(EdgeVector edges, double width, bool priority, int tlIndex=-1, const PositionVector &customShape=PositionVector::EMPTY, bool fromSumoNet=false)
add a pedestrian crossing to this node
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...
FXString undoName() const
return undoName
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
crossing between edges for pedestrians
EdgeVector edges
The edges being crossed.
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag ...
A definition of a pedestrian crossing.
void rebuildGNECrossings(bool rebuildNBNodeCrossings=true)
rebuilds crossing objects for this junction
double myWidth
width of GNECrossing
NBNode * getNBNode() const
Return net build node.
GUISelectedStorage gSelected
A global holder of selected objects.
GNEViewNet * getViewNet() const
get view net
FXString redoName() const
get Redo name
SumoXMLTag getTag() const
get XML Tag assigned to this object