 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
42 double width,
bool priority,
int customTLIndex,
int customTLIndex2, const
PositionVector& customShape,
bool selected,
bool forward):
43 GNEChange(junctionParent->getNet(), forward),
44 myJunctionParent(junctionParent),
48 myCustomTLIndex(customTLIndex),
49 myCustomTLIndex2(customTLIndex2),
50 myCustomShape(customShape),
51 mySelected(selected) {
57 GNEChange(junctionParent->getNet(), forward),
58 myJunctionParent(junctionParent),
59 myEdges(crossing.edges),
60 myWidth(crossing.width),
61 myPriority(crossing.priority),
62 myCustomTLIndex(crossing.customTLIndex),
63 myCustomTLIndex2(crossing.customTLIndex2),
64 myCustomShape(crossing.customShape),
88 WRITE_DEBUG(
"Changed flag netBuilder::haveNetworkCrossings from 'true' to 'false'");
101 WRITE_DEBUG(
"Changed flag netBuilder::haveNetworkCrossings from 'false' to 'true'");
127 WRITE_DEBUG(
"Changed flag netBuilder::haveNetworkCrossings from 'false' to 'true'");
149 WRITE_DEBUG(
"Changed flag netBuilder::haveNetworkCrossings from 'true' to 'false'");
void requireSaveNet(bool value)
inform that net has to be saved
const std::string getID() const
function to support debugging
bool netHasGNECrossings() const
check if net has GNECrossings
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
FXString undoName() const
return undoName
void removeCrossing(const EdgeVector &edges)
remove a pedestrian crossing from this node (identified by its edges)
bool myPriority
priority of GNECrossing
void update() const
Mark the entire GNEViewNet to be repainted later.
GNEJunction * myJunctionParent
full information regarding the Junction in which GNECRossing is created
The representation of a single edge during network building.
GNEChange_Crossing(GNEJunction *junctionParent, const std::vector< NBEdge * > &edges, double width, bool priority, int customTLIndex, int customTLIndex2, const PositionVector &customShape, bool selected, bool forward)
Constructor for creating/deleting an crossing.
~GNEChange_Crossing()
Destructor.
NBNode * getNBNode() const
Return net build node.
NBNetBuilder * getNetBuilder() const
get net builder
FXString redoName() const
get Redo name
double myWidth
width of GNECrossing
GNENet * myNet
the net to which operations shall be applied or which shall be informed about gui updates (we are not...
void rebuildGNECrossings(bool rebuildNBNodeCrossings=true)
rebuilds crossing objects for this junction
int myCustomTLIndex
custom index of GNECrossing
std::vector< NBEdge * > myEdges
vector to save all edges of GNECrossing
GNEViewNet * getViewNet() const
get view net
int myCustomTLIndex2
custom index of GNECrossing (reverse direction)
bool haveNetworkCrossings()
notify about style of loaded network (Without Crossings)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
PositionVector myCustomShape
priority of GNECrossing
NBNode::Crossing * addCrossing(EdgeVector edges, double width, bool priority, int tlIndex=-1, int tlIndex2=-1, const PositionVector &customShape=PositionVector::EMPTY, bool fromSumoNet=false)
add a pedestrian crossing to this node
crossing between edges for pedestrians
bool mySelected
flag to check if crossing is selected
void setHaveNetworkCrossings(bool value)
enable crossing in networks
void selectAttributeCarrier(bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
const std::string & getTagStr() const
get tag assigned to this object in string format
A definition of a pedestrian crossing.
the function-object for an editing operation (abstract base)
GNECrossing * retrieveGNECrossing(NBNode::Crossing *NBNodeCrossing, bool createIfNoExist=true)
get GNECrossing if exist, and if not create it if create is enabled