![]() |
Eclipse SUMO - Simulation of Urban MObility
|
struct used for calculating routes More...
#include <GNEVehicle.h>
Public Member Functions | |
void | calculateConnectionShape () |
calculate connection shape (note: Only calculated if 'con' isn't nullptr) More... | |
ConnectionGeometry (const NBEdge::Connection *_con, const GNELane *_laneFrom, const GNELane *_laneTo) | |
parameter constructor with NBEdge::Connection More... | |
ConnectionGeometry (const GNELane *_laneFrom, const GNELane *_laneTo) | |
parameter constructor without NBEdge::Connection More... | |
Data Fields | |
const NBEdge::Connection * | con |
Pointer to NBEdge::Connection. More... | |
PositionVector | connectionShape |
calculated connection shape More... | |
const GNELane * | laneFrom |
lane from More... | |
const GNELane * | laneTo |
lane to More... | |
Private Member Functions | |
ConnectionGeometry () | |
default constructor (by default unused) More... | |
struct used for calculating routes
Definition at line 330 of file GNEVehicle.h.
GNEVehicle::ConnectionGeometry::ConnectionGeometry | ( | const NBEdge::Connection * | _con, |
const GNELane * | _laneFrom, | ||
const GNELane * | _laneTo | ||
) |
parameter constructor with NBEdge::Connection
Definition at line 1416 of file GNEVehicle.cpp.
GNEVehicle::ConnectionGeometry::ConnectionGeometry | ( | const GNELane * | _laneFrom, |
const GNELane * | _laneTo | ||
) |
parameter constructor without NBEdge::Connection
Definition at line 1423 of file GNEVehicle.cpp.
|
private |
default constructor (by default unused)
Definition at line 1460 of file GNEVehicle.cpp.
void GNEVehicle::ConnectionGeometry::calculateConnectionShape | ( | ) |
calculate connection shape (note: Only calculated if 'con' isn't nullptr)
Definition at line 1431 of file GNEVehicle.cpp.
References PositionVector::append(), PositionVector::area(), NBNode::computeSmoothShape(), con, connectionShape, NBEdge::Connection::customShape, GNENetElement::getGeometry(), GNEEdge::getNBEdge(), NBEdge::getNumLanes(), GNELane::getParentEdge(), NBNode::getShape(), NBEdge::getToNode(), NBEdge::getTurnDestination(), NBEdge::Connection::haveVia, laneFrom, laneTo, GNENetElement::NetElementGeometry::shape, NBEdge::Connection::shape, NBEdge::Connection::toEdge, and NBEdge::Connection::viaShape.
const NBEdge::Connection* GNEVehicle::ConnectionGeometry::con |
Pointer to NBEdge::Connection.
Definition at line 345 of file GNEVehicle.h.
Referenced by calculateConnectionShape().
PositionVector GNEVehicle::ConnectionGeometry::connectionShape |
calculated connection shape
Definition at line 342 of file GNEVehicle.h.
Referenced by calculateConnectionShape().
const GNELane* GNEVehicle::ConnectionGeometry::laneFrom |
const GNELane* GNEVehicle::ConnectionGeometry::laneTo |