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

- File List

# PreparedGeometry.h

    00001 /**********************************************************************
    00002  * $Id: PreparedGeometry.h 2418 2009-04-29 08:15:21Z strk $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2006 Refractions Research Inc.
    00008  *
    00009  * This is free software; you can redistribute and/or modify it under
    00010  * the terms of the GNU Lesser General Public Licence as published
    00011  * by the Free Software Foundation.
    00012  * See the COPYING file for more information.
    00013  *
    00014  **********************************************************************
    00015  *
    00016  * Last port: geom/prep/PreparedGeometry.java rev. 1.11 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_GEOM_PREP_PREPAREDGEOMETRY_H
    00021 #define GEOS_GEOM_PREP_PREPAREDGEOMETRY_H
    00022
    00023
    00024 // Forward declarations
    00025 namespace geos {
    00026         namespace geom {
    00027                 class Geometry;
    00028         }
    00029 }
    00030
    00031
    00032 namespace geos {
    00033 namespace geom { // geos::geom
    00034 namespace prep { // geos::geom::prep
    00035
    00053 class PreparedGeometry {
    00054 public:
    00055         virtual ~PreparedGeometry() {};
    00056
    00062         virtual const geom::Geometry & getGeometry() const =0;
    00063
    00072         virtual bool contains(const geom::Geometry *geom) const =0;
    00073
    00113         virtual bool containsProperly(const geom::Geometry *geom) const =0;
    00114
    00123         virtual bool coveredBy(const geom::Geometry *geom) const =0;
    00124
    00133         virtual bool covers(const geom::Geometry *geom) const =0;
    00134
    00143         virtual bool crosses(const geom::Geometry *geom) const =0;
    00144
    00153         virtual bool disjoint(const geom::Geometry *geom) const =0;
    00154
    00163         virtual bool intersects(const geom::Geometry *geom) const =0;
    00164
    00173         virtual bool overlaps(const geom::Geometry *geom) const =0;
    00174
    00183         virtual bool touches(const geom::Geometry *geom) const =0;
    00184
    00193         virtual bool within(const geom::Geometry *geom) const =0;
    00194 };
    00195
    00196
    00197 } // namespace geos::geom::prep
    00198 } // namespace geos::geom
    00199 } // namespace geos
    00200
    00201
    00202 #endif // ndef GEOS_GEOM_PREP_PREPAREDGEOMETRY_H
    00203
    00204 /**********************************************************************
    00205  * $Log$
    00206  **********************************************************************/