GEOS 3.3.4

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

- File List

PreparedPolygonIntersects.h
1 /**********************************************************************
2 * $Id: PreparedPolygonIntersects.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/PreparedPolygonIntersects.java rev 1.6 (JTS-1.10)
18 * (2007-12-12)
19 *
20 **********************************************************************/
21
22 #ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
23 #define GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_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
51 class PreparedPolygonIntersects : public PreparedPolygonPredicate
52 {
53 private:
54 protected:
55 public:
64 static bool intersects( const PreparedPolygon * const prep, const geom::Geometry * geom)
65 {
66 PreparedPolygonIntersects polyInt(prep);
67 return polyInt.intersects( geom);
68 }
69
75 PreparedPolygonIntersects( const PreparedPolygon * const prep)
76 : PreparedPolygonPredicate( prep)
77 { }
78
85 bool intersects( const geom::Geometry * geom);
86
87 };
88
89 } // geos::geom::prep
90 } // geos::geom
91 } // geos
92
93 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONINTERSECTS_H
94 /**********************************************************************
95 * $Log$
96 **********************************************************************/
97