 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
41 : myID(id), myNode(-1) {
43 for (PositionVector::const_iterator i = geom.begin(); i != geom.end(); ++i) {
60 DictType::iterator i =
myDict.find(
id);
71 DictType::iterator i =
myDict.find(
id);
97 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
124 std::vector<int> ret;
125 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
128 ret.push_back(e->
myID);
154 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
173 const std::vector<int>&
static std::vector< int > getWithin(const AbstractPoly &p, double offset=0.0)
#define WRITE_WARNING(msg)
bool overlapsWith(const AbstractPoly &poly, double offset=0) const
Returns the information whether the given polygon overlaps with this.
void extrapolate(const double val, const bool onlyFirst=false, const bool onlyLast=false)
extrapolate position vector
static bool transformCoordinate(Position &from, bool includeInBoundary=true, GeoConvHelper *from_srs=0)
transforms loaded coordinates handles projections, offsets (using GeoConvHelper) and import of height...
double length() const
Returns the length.
bool crossesEdge(NIVissimAbstractEdge *c) const
bool hasNodeCluster() const
std::map< int, NIVissimAbstractEdge * > DictType
Position crossesEdgeAtPoint(NIVissimAbstractEdge *c) const
bool intersects(const Position &p1, const Position &p2) const
Returns the information whether this list of points interesects the given line.
void push_back_noDoublePos(const Position &p)
insert in back a non double position
void addDisturbance(int disturbance)
std::vector< int > myDisturbances
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
A point in 2D or 3D with translation and scaling methods.
const PositionVector & getGeometry() const
const std::vector< int > & getDisturbances() const
static bool dictionary(int id, NIVissimAbstractEdge *e)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
Position getGeomPosition(double pos) const
Position intersectionPosition2D(const Position &p1, const Position &p2, const double withinDist=0.) const
Returns the position of the intersection.
static void splitAndAssignToNodes()
virtual ~NIVissimAbstractEdge()
bool overlapsWith(const AbstractPoly &p, double offset=0.0) const
NIVissimAbstractEdge(int id, const PositionVector &geom)