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'");
void setHaveNetworkCrossings(bool value)
enable crossing in networks
int myCustomTLIndex
custom index of GNECrossing
the function-object for an editing operation (abstract base)
void update() const
Mark the entire GNEViewNet to be repainted later.
NBNetBuilder * getNetBuilder() const
get net builder
The representation of a single edge during network building.
bool mySelected
flag to check if crossing is selected
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.
PositionVector myCustomShape
priority of GNECrossing
bool netHasGNECrossings() const
check if net has 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 selectAttributeCarrier(bool changeFlag=true)
select attribute carrier using GUIGlobalSelection
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
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
const std::string & getTagStr() const
get tag assigned to this object in string format
void requiereSaveNet(bool value)
inform that net has to be saved
std::vector< NBEdge * > myEdges
vector to save all edges of GNECrossing
int myCustomTLIndex2
custom index of GNECrossing (reverse direction)
crossing between edges for pedestrians
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
GNECrossing * retrieveGNECrossing(NBNode::Crossing *crossing, bool createIfNoExist=true)
get GNECrossing if exist, and if not create it if create is enabled
double myWidth
width of GNECrossing
NBNode * getNBNode() const
Return net build node.
GNEViewNet * getViewNet() const
get view net
FXString redoName() const
get Redo name