GEOS: DistanceToPoint.h Source File

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

# DistanceToPoint.h

    00001 /**********************************************************************
    00002  * $Id: DistanceToPoint.h 2809 2009-12-06 01:05:24Z mloskot $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2009  Sandro Santilli <strk@keybit.net>
    00008  *
    00009  * This is free software; you can redistribute and/or modify it under
    00010  * the terms of the GNU Lesser General Public Licence as published
    00011  * by the Free Software Foundation.
    00012  * See the COPYING file for more information.
    00013  *
    00014  **********************************************************************
    00015  *
    00016  * Last port: algorithm/distance/DistanceToPoint.java 1.1 (JTS-1.9)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
    00021 #define GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
    00022
    00023 #include <geos/geom/LineSegment.h> // for composition
    00024
    00025 namespace geos {
    00026         namespace algorithm {
    00027                 namespace distance {
    00028                         class PointPairDistance;
    00029                 }
    00030         }
    00031         namespace geom {
    00032                 class Geometry;
    00033                 class Coordinate;
    00034                 class LineString;
    00035                 class Polygon;
    00036         }
    00037 }
    00038
    00039 namespace geos {
    00040 namespace algorithm { // geos::algorithm
    00041 namespace distance { // geos::algorithm::distance
    00042
    00048 class DistanceToPoint
    00049 {
    00050 public:
    00051
    00052         DistanceToPoint() {}
    00053
    00054         static void computeDistance(const geom::Geometry& geom,
    00055                                     const geom::Coordinate& pt,
    00056                                     PointPairDistance& ptDist);
    00057
    00058         static void computeDistance(const geom::LineString& geom,
    00059                                     const geom::Coordinate& pt,
    00060                                     PointPairDistance& ptDist);
    00061
    00062         static void computeDistance(const geom::LineSegment& geom,
    00063                                     const geom::Coordinate& pt,
    00064                                     PointPairDistance& ptDist);
    00065
    00066         static void computeDistance(const geom::Polygon& geom,
    00067                                     const geom::Coordinate& pt,
    00068                                     PointPairDistance& ptDist);
    00069
    00070 };
    00071
    00072 } // geos::algorithm::distance
    00073 } // geos::algorithm
    00074 } // geos
    00075
    00076 #endif // GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
    00077
    00078 /**********************************************************************
    00079  * $Log$
    00080  **********************************************************************/
    00081