 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
43 double width,
bool priority,
int customTLIndex,
int customTLIndex2, const
PositionVector& customShape,
bool selected,
bool forward):
44 GNEChange(junctionParent->getNet(), forward),
45 myJunctionParent(junctionParent),
49 myCustomTLIndex(customTLIndex),
50 myCustomTLIndex2(customTLIndex2),
51 myCustomShape(customShape),
52 mySelected(selected) {
58 GNEChange(junctionParent->getNet(), forward),
59 myJunctionParent(junctionParent),
60 myEdges(crossing.edges),
61 myWidth(crossing.width),
62 myPriority(crossing.priority),
63 myCustomTLIndex(crossing.customTLIndex),
64 myCustomTLIndex2(crossing.customTLIndex2),
65 myCustomShape(crossing.customShape),
89 WRITE_DEBUG(
"Changed flag netBuilder::haveNetworkCrossings from 'true' to 'false'");
102 WRITE_DEBUG(
"Changed flag netBuilder::haveNetworkCrossings from 'false' to 'true'");
128 WRITE_DEBUG(
"Changed flag netBuilder::haveNetworkCrossings from 'false' to 'true'");
150 WRITE_DEBUG(
"Changed flag netBuilder::haveNetworkCrossings from 'true' to 'false'");
const std::string getID() const
function to support debugging
bool netHasGNECrossings() const
check if net has GNECrossings
void requiereSaveNet(bool value)
inform that net has to be saved
bool myForward
we group antagonistic commands (create junction/delete junction) and keep them apart by this flag
FXString undoName() const
return undoName
GNECrossing * retrieveGNECrossing(NBNode::Crossing *crossing, bool createIfNoExist=true)
get GNECrossing if exist, and if not create it if create is enabled
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)