#include "../Config.h"#include "GAP.h"#include <geos.h>#include <geos/geom/Coordinate.h>#include <geos/geom/LineSegment.h>#include <geos/geosAlgorithm.h>#include <geos/simplify/DouglasPeuckerLineSimplifier.h>#include <geos/algorithm/distance/DiscreteHausdorffDistance.h>#include <terralib/geometry/Coord2d.h>#include <terralib/geometry/GEOSWriter.h>Go to the source code of this file.
Classes | |
| class | sortpoints |
Functions | |
| te::gm::Coord2D | appGetCenterPointOfPoints (std::vector< te::gm::Coord2D > &pts) |
| float | coef_angular (double fx, double fy, double lx, double ly) |
| double | coordToSegmentDistance (te::gm::Coord2D &fseg, te::gm::Coord2D &lseg, te::gm::Coord2D &pt, te::gm::Coord2D *pti) |
| double | Distance (const double pt1x, const double pt1y, const double pt2x, const double pt2y) |
| double | Distance (const te::gm::Coord2D &pt1, const te::gm::Coord2D &pt2) |
| te::gm::LineString * | GEOS_DouglasPeucker (te::gm::LineString *ls, double snap) |
| bool | isInside (te::gm::Coord2D &first, te::gm::Coord2D &last, te::gm::Coord2D &c, te::gm::Coord2D ¢) |
| bool | segInterPoint (te::gm::Coord2D &pfr, te::gm::Coord2D &pto, te::gm::Coord2D &lfr, te::gm::Coord2D <o, te::gm::Coord2D *pt) |
| double | SegmentDistance (double fx, double fy, double lx, double ly, double ptx, double pty, double *pix, double *piy) |
| Function that evaluates the distance between a point and a segment. More... | |
| te::gm::Coord2D appGetCenterPointOfPoints | ( | std::vector< te::gm::Coord2D > & | pts | ) |
Definition at line 16 of file GAP.cpp.
References te::gm::Coord2D::getX().
| float coef_angular | ( | double | fx, |
| double | fy, | ||
| double | lx, | ||
| double | ly | ||
| ) |
| double coordToSegmentDistance | ( | te::gm::Coord2D & | fseg, |
| te::gm::Coord2D & | lseg, | ||
| te::gm::Coord2D & | pt, | ||
| te::gm::Coord2D * | pti | ||
| ) |
Definition at line 238 of file GAP.cpp.
References sortpoints::c, te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), SegmentDistance(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by GAP::step1(), GAP::step3(), GAP::step4(), and GAP::verifyIntersections().
| double Distance | ( | const double | pt1x, |
| const double | pt1y, | ||
| const double | pt2x, | ||
| const double | pt2y | ||
| ) |
Definition at line 63 of file GAP.cpp.
References dx.
Referenced by te::mnt::Distance(), Distance(), GAP_segment::isInside(), isInside(), te::da::ST_DistanceBuffer::operator=(), te::mnt::pointListSimplify(), te::da::ST_DistanceBuffer::ST_DistanceBuffer(), GAP::step0(), GAP::step2(), GAP::step3(), and GAP::step4().
| double Distance | ( | const te::gm::Coord2D & | pt1, |
| const te::gm::Coord2D & | pt2 | ||
| ) |
Definition at line 78 of file GAP.cpp.
References Distance(), te::gm::Coord2D::getX(), and te::gm::Coord2D::getY().
Referenced by te::mnt::Smooth::AdjustCatmullRom(), te::mnt::Profile::calculateProfile(), and te::mnt::SplineInterpolationGrass::pointListSimplify().
| te::gm::LineString* GEOS_DouglasPeucker | ( | te::gm::LineString * | ls, |
| double | snap | ||
| ) |
Definition at line 261 of file GAP.cpp.
References te::gm::LineString::getPointN(), te::gm::LineStringType, te::gm::LineString::setPoint(), and te::gm::LineString::size().
Referenced by te::mnt::ReadSamples(), and GAP::step00().
| bool isInside | ( | te::gm::Coord2D & | first, |
| te::gm::Coord2D & | last, | ||
| te::gm::Coord2D & | c, | ||
| te::gm::Coord2D & | cent | ||
| ) |
Definition at line 94 of file GAP.cpp.
References coef_angular(), Distance(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by GAP_segment::GAP_segment().
| bool segInterPoint | ( | te::gm::Coord2D & | pfr, |
| te::gm::Coord2D & | pto, | ||
| te::gm::Coord2D & | lfr, | ||
| te::gm::Coord2D & | lto, | ||
| te::gm::Coord2D * | pt | ||
| ) |
Definition at line 141 of file GAP.cpp.
References b, sortpoints::c, te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::mnt::segIntersect(), GAP::step2(), and GAP::step4().
| double SegmentDistance | ( | double | fx, |
| double | fy, | ||
| double | lx, | ||
| double | ly, | ||
| double | ptx, | ||
| double | pty, | ||
| double * | pix, | ||
| double * | piy | ||
| ) |
Function that evaluates the distance between a point and a segment.
| fseg | is a pointer to the segment first point |
| lseg | is a pointer to the segment last point |
| pt | is a pointer to the considered point |
| pti | is a pointer to the intersection point |
Definition at line 185 of file GAP.cpp.
References b, and sortpoints::c.
Referenced by te::mnt::coordToSegmentDistance(), and te::mnt::pointToSegmentDistance().