IAnalyseDistance Class Reference
interface for analysing distances between polyline objects (see GeometricAlgorithms::analyseDistance) More...
#include "GeometricAlgorithms.hpp"
Public Member Functions | |
| virtual void | closest (double distance, unsigned idx, const IPoint &basePt, unsigned lineIdx1, unsigned lineIdx2, const IPoint &minDistPt)=0 |
| this function is called if non max. distance threshold is set or the distance is below the given threshold. | |
| virtual void | exceeds (unsigned idx)=0 |
| this function is called if the distance between the current base vertex and the 'other' polyline exceeds the given distance threshold | |
Detailed Description
interface for analysing distances between polyline objects (see GeometricAlgorithms::analyseDistance)
Member Function Documentation
|
pure virtual |
this function is called if non max. distance threshold is set or the distance is below the given threshold.
Note: if lineIdx1 == lineIdx2 then the closest point is a vertex and not a point on a segment
- Parameters
-
[in] distance shortest 3d/2d distance between basePt (=base[idx]) and polyline 'other' [in] idx index of the current vertex (of the base polyline) [in] basePt current vertex (of the base polyline) [in] lineIdx1 source point index of closest segment of polyline 'other' [in] lineIdx2 target point index of closest segment of polyline 'other' [in] minDistPt point on polyline 'other' with the shortest distance to basePt
|
pure virtual |
this function is called if the distance between the current base vertex and the 'other' polyline exceeds the given distance threshold
- Parameters
-
[in] idx index of the current vertex (of the base polyline)
