GEOS 3.6.2
SimplePointInRing.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16#ifndef GEOS_ALGORITHM_SIMPLEPOINTINRING_H
17#define GEOS_ALGORITHM_SIMPLEPOINTINRING_H
18
19#include <geos/export.h>
20#include <geos/algorithm/PointInRing.h> // for inheritance
21
22// Forward declarations
23namespace geos {
24 namespace geom {
25 class Coordinate;
26 class LinearRing;
28 }
29}
30
31namespace geos {
32namespace algorithm { // geos::algorithm
33
34class GEOS_DLL SimplePointInRing: public PointInRing {
35public:
36 SimplePointInRing(geom::LinearRing *ring);
37 virtual ~SimplePointInRing();
38 bool isInside(const geom::Coordinate& pt);
39private:
40 const geom::CoordinateSequence* pts;
41};
42
43} // namespace geos::algorithm
44} // namespace geos
45
46
47#endif // GEOS_ALGORITHM_SIMPLEPOINTINRING_H
48
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:59
Coordinate is the lightweight class used to store coordinates.
Definition Coordinate.h:60
Models an OGC SFS LinearRing.
Definition LinearRing.h:57
Contains classes and interfaces implementing fundamental computational geometry algorithms.
Definition Angle.h:33
Contains the Geometry interface hierarchy and supporting classes.
Definition IndexedNestedRingTester.h:26
Basic namespace for all GEOS functionalities.
Definition IndexedNestedRingTester.h:25