Eclipse SUMO - Simulation of Urban MObility
AbstractPoly Class Referenceabstract

#include <AbstractPoly.h>

Inheritance diagram for AbstractPoly:
[legend]

Public Member Functions

virtual bool around (const Position &p, double offset=0) const =0
 Returns whether the AbstractPoly the given coordinate. More...
 
virtual bool crosses (const Position &p1, const Position &p2) const =0
 Returns whether the AbstractPoly crosses the given line. More...
 
virtual bool overlapsWith (const AbstractPoly &poly, double offset=0) const =0
 Returns whether the AbstractPoly overlaps with the given polygon. More...
 
virtual bool partialWithin (const AbstractPoly &poly, double offset=0) const =0
 Returns whether the AbstractPoly is partially within the given polygon. More...
 
virtual ~AbstractPoly ()
 destructor More...
 

Detailed Description

Definition at line 33 of file AbstractPoly.h.

Constructor & Destructor Documentation

◆ ~AbstractPoly()

virtual AbstractPoly::~AbstractPoly ( )
inlinevirtual

destructor

Definition at line 36 of file AbstractPoly.h.

Member Function Documentation

◆ around()

virtual bool AbstractPoly::around ( const Position p,
double  offset = 0 
) const
pure virtual

Returns whether the AbstractPoly the given coordinate.

Implemented in PositionVector, and Boundary.

Referenced by Boundary::partialWithin(), and PositionVector::partialWithin().

Here is the caller graph for this function:

◆ crosses()

virtual bool AbstractPoly::crosses ( const Position p1,
const Position p2 
) const
pure virtual

Returns whether the AbstractPoly crosses the given line.

Implemented in PositionVector, and Boundary.

Referenced by Boundary::overlapsWith(), and PositionVector::overlapsWith().

Here is the caller graph for this function:

◆ overlapsWith()

virtual bool AbstractPoly::overlapsWith ( const AbstractPoly poly,
double  offset = 0 
) const
pure virtual

Returns whether the AbstractPoly overlaps with the given polygon.

Implemented in PositionVector, and Boundary.

◆ partialWithin()

virtual bool AbstractPoly::partialWithin ( const AbstractPoly poly,
double  offset = 0 
) const
pure virtual

Returns whether the AbstractPoly is partially within the given polygon.

Implemented in PositionVector, and Boundary.

Referenced by Boundary::overlapsWith(), and PositionVector::overlapsWith().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: