33 myFromLane(fromLane) {
40 const int numPoints = 5;
41 const int maximumLanes = 10;
46 for (
const auto& outgoingLane : outgoingEdge->getLanes()) {
49 const NBEdge* NBEdgeTo = outgoingLane->getParentEdge()->getNBEdge();
59 (double) numPoints * (
double) NBEdgeFrom->
getNumLanes(),
60 (double) numPoints * (
double) NBEdgeTo->
getNumLanes());
NBEdge * getNBEdge() const
returns the internal NBEdge
GNEJunction * getToJunction() const
get from Junction (only used to increase readability)
const std::vector< GNEEdge * > & getGNEOutgoingEdges() const
Returns incoming GNEEdges.
GNELane2laneConnection()
constructor
bool exist(const GNELane *toLane) const
check if exist a lane2lane geometry for the given toLane
const GUIGeometry & getLane2laneGeometry(const GNELane *toLane) const
get lane2lane geometry
const GNELane * myFromLane
from lane
std::map< const GNELane *, GUIGeometry > myConnectionsMap
connection shape
void updateLane2laneConnection()
update
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
const PositionVector & getLaneShape() const
get elements shape
int getIndex() const
returns the index of the lane
GNEEdge * getParentEdge() const
get parent edge
The representation of a single edge during network building.
NBNode * getToNode() const
Returns the destination node of the edge.
int getNumLanes() const
Returns the number of lanes.
NBEdge * getTurnDestination(bool possibleDestination=false) const
const PositionVector & getLaneShape(int i) const
Returns the shape of the nth lane.
PositionVector computeSmoothShape(const PositionVector &begShape, const PositionVector &endShape, int numPoints, bool isTurnaround, double extrapolateBeg, double extrapolateEnd, NBNode *recordError=0, int shapeFlag=0) const
Compute a smooth curve between the given geometries.
const PositionVector & getShape() const
retrieve the junction shape
double area() const
Returns the area (0 for non-closed)