GEOS 3.3.8

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

- File List

PreparedPolygonContainsProperly.h
1 /**********************************************************************
2 * $Id: PreparedPolygonContainsProperly.h 2420 2009-04-29 08:56:14Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2006 Refractions Research 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 *
17 * Last port: geom/prep/PreparedPolygonContainsProperly.java rev 1.5 (JTS-1.10)
18 * (2007-12-12)
19 *
20 **********************************************************************/
21
22 #ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H
23 #define GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H
24
25 #include <geos/geom/prep/PreparedPolygonPredicate.h> // inherited
26
27 namespace geos {
28 namespace geom {
29 class Geometry;
30
31 namespace prep {
32 class PreparedPolygon;
33 }
34 }
35 }
36
37 namespace geos {
38 namespace geom { // geos::geom
39 namespace prep { // geos::geom::prep
40
60 class PreparedPolygonContainsProperly : public PreparedPolygonPredicate
61 {
62 private:
63 protected:
64 public:
73 static
74 bool
75 containsProperly( const PreparedPolygon * const prep, const geom::Geometry * geom)
76 {
77 PreparedPolygonContainsProperly polyInt( prep);
78 return polyInt.containsProperly( geom);
79 }
80
86 PreparedPolygonContainsProperly( const PreparedPolygon * const prep)
87 : PreparedPolygonPredicate( prep)
88 { }
89
96 bool
97 containsProperly( const geom::Geometry * geom);
98
99 };
100
101 } // geos::geom::prep
102 } // geos::geom
103 } // geos
104
105 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONCONTAINSPROPERLY_H
106 /**********************************************************************
107 * $Log$
108 **********************************************************************/
109