Finds in a given set of rectangles for each point in a given set of points the nearest rectangle. More...
#include <ogdf/basic/NearestRectangleFinder.h>
Classes | |
| struct | PairRectDist |
| Represents a rectangle (given by its index) and a distance value. More... | |
| struct | RectRegion |
| Represents a rectangle given by center point, width and height. More... | |
Public Member Functions | |
| NearestRectangleFinder (double mad=20, double td=5) | |
| void | find (const Array< RectRegion > ®ion, const Array< DPoint > &point, Array< List< PairRectDist > > &nearest) |
| void | findSimple (const Array< RectRegion > ®ion, const Array< DPoint > &point, Array< List< PairRectDist > > &nearest) |
| double | maxAllowedDistance () const |
| void | maxAllowedDistance (double mad) |
| double | toleranceDistance () const |
| void | toleranceDistance (double td) |
Private Attributes | |
| double | m_maxAllowedDistance |
| double | m_toleranceDistance |
Finds in a given set of rectangles for each point in a given set of points the nearest rectangle.
Definition at line 41 of file NearestRectangleFinder.h.
|
inlineexplicit |
Definition at line 47 of file NearestRectangleFinder.h.
| void ogdf::NearestRectangleFinder::find | ( | const Array< RectRegion > & | region, |
| const Array< DPoint > & | point, | ||
| Array< List< PairRectDist > > & | nearest | ||
| ) |
| void ogdf::NearestRectangleFinder::findSimple | ( | const Array< RectRegion > & | region, |
| const Array< DPoint > & | point, | ||
| Array< List< PairRectDist > > & | nearest | ||
| ) |
|
inline |
Definition at line 56 of file NearestRectangleFinder.h.
Definition at line 54 of file NearestRectangleFinder.h.
|
inline |
Definition at line 64 of file NearestRectangleFinder.h.
Definition at line 62 of file NearestRectangleFinder.h.
|
private |
Definition at line 85 of file NearestRectangleFinder.h.
|
private |
Definition at line 86 of file NearestRectangleFinder.h.