GEOS: SimplePointInRing.h Source File

GEOS 3.5.0

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

- File List

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
23 namespace geos {
24 namespace geom {
25 class Coordinate;
26 class LinearRing;
27 class CoordinateSequence;
28 }
29 }
30
31 namespace geos {
32 namespace algorithm { // geos::algorithm
33
34 class GEOS_DLL SimplePointInRing: public PointInRing {
35 public:
36 SimplePointInRing(geom::LinearRing *ring);
37 virtual ~SimplePointInRing();
38 bool isInside(const geom::Coordinate& pt);
39 private:
40 const geom::CoordinateSequence* pts;
41 };
42
43 } // namespace geos::algorithm
44 } // namespace geos
45
46
47 #endif // GEOS_ALGORITHM_SIMPLEPOINTINRING_H
48
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25