GEOS  3.3.3
PreparedPolygonCovers.h
1 /**********************************************************************
2  * $Id: PreparedPolygonCovers.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/PreparedPolygonCovers.java rev 1.2 (JTS-1.10)
18  * (2007-12-12)
19  *
20  **********************************************************************/
21 
22 #ifndef GEOS_GEOM_PREP_PREPAREDPOLYGONCOVERS_H
23 #define GEOS_GEOM_PREP_PREPAREDPOLYGONCOVERS_H
24 
25 #include <geos/geom/prep/AbstractPreparedPolygonContains.h> // inherited
26 
27 // forward declarations
28 namespace geos {
29  namespace geom {
30  class Geometry;
31 
32  namespace prep {
33  class PreparedPolygon;
34  }
35  }
36 }
37 
38 namespace geos {
39 namespace geom { // geos::geom
40 namespace prep { // geos::geom::prep
41 
57 {
58 private:
59 protected:
67  bool fullTopologicalPredicate( const geom::Geometry * geom);
68 
69 public:
78  static bool covers(const PreparedPolygon * const prep, const geom::Geometry * geom)
79  {
80  PreparedPolygonCovers polyInt(prep);
81  return polyInt.covers(geom);
82  }
83 
90  : AbstractPreparedPolygonContains( prep, false)
91  { }
92 
99  bool covers( const Geometry * geom)
100  {
101  return eval( geom);
102  }
103 
104 };
105 
106 } // geos::geom::prep
107 } // geos::geom
108 } // geos
109 
110 #endif // GEOS_GEOM_PREP_PREPAREDPOLYGONCOVERS_H
111 /**********************************************************************
112  * $Log$
113  **********************************************************************/
114