# MultiPolygon.h

    00001 /**********************************************************************
    00002  * $Id: MultiPolygon.h 1820 2006-09-06 16:54:23Z mloskot $
    00003  *
    00004  * GEOS - Geometry Engine Open Source
    00005  * http://geos.refractions.net
    00006  *
    00007  * Copyright (C) 2001-2002 Vivid Solutions Inc.
    00008  * Copyright (C) 2005 2006 Refractions Research Inc.
    00009  *
    00010  * This is free software; you can redistribute and/or modify it under
    00011  * the terms of the GNU Lesser General Public Licence as published
    00012  * by the Free Software Foundation.
    00013  * See the COPYING file for more information.
    00014  *
    00015  **********************************************************************/
    00016
    00017 #ifndef GEOS_GEOS_MULTIPOLYGON_H
    00018 #define GEOS_GEOS_MULTIPOLYGON_H
    00019
    00020 #include <string>
    00021 #include <vector>
    00022 #include <geos/platform.h>
    00023 #include <geos/geom/GeometryCollection.h>
    00024 #include <geos/geom/Dimension.h> // for Dimension::DimensionType
    00025
    00026 #include <geos/inline.h>
    00027
    00028 // Forward declarations
    00029 namespace geos {
    00030         namespace geom { // geos::geom
    00031                 class Coordinate;
    00032                 class CoordinateArraySequence;
    00033                 class MultiPoint;
    00034         }
    00035 }
    00036
    00037
    00038 namespace geos {
    00039 namespace geom { // geos::geom
    00040
    00042 class MultiPolygon: public GeometryCollection {
    00043
    00044 public:
    00045
    00046         friend class GeometryFactory;
    00047
    00048         virtual ~MultiPolygon();
    00049
    00051         Dimension::DimensionType getDimension() const;
    00052
    00054         int getBoundaryDimension() const;
    00055
    00061         Geometry* getBoundary() const;
    00062
    00063         std::string getGeometryType() const;
    00064
    00065         virtual GeometryTypeId getGeometryTypeId() const;
    00066
    00067         bool isSimple() const;
    00068
    00069         bool equalsExact(const Geometry *other, double tolerance=0) const;
    00070
    00071         Geometry *clone() const;
    00072
    00073 protected:
    00074
    00096         MultiPolygon(std::vector<Geometry *> *newPolys, const GeometryFactory *newFactory);
    00097
    00098         MultiPolygon(const MultiPolygon &mp);
    00099
    00100
    00101 };
    00102
    00103
    00104 } // namespace geos::geom
    00105 } // namespace geos
    00106
    00107 #ifdef GEOS_INLINE
    00108 # include "geos/geom/MultiPolygon.inl"
    00109 #endif
    00110
    00111 #endif // ndef GEOS_GEOS_MULTIPOLYGON_H
    00112
    00113 /**********************************************************************
    00114  * $Log$
    00115  * Revision 1.4  2006/05/04 15:49:39  strk
    00116  * updated all Geometry::getDimension() methods to return Dimension::DimensionType (closes bug#93)
    00117  *
    00118  * Revision 1.3  2006/04/28 10:55:39  strk
    00119  * Geometry constructors made protected, to ensure all constructions use GeometryFactory,
    00120  * which has been made friend of all Geometry derivates. getNumPoints() changed to return
    00121  * size_t.
    00122  *
    00123  * Revision 1.2  2006/03/24 09:52:41  strk
    00124  * USE_INLINE => GEOS_INLINE
    00125  *
    00126  * Revision 1.1  2006/03/09 16:46:49  strk
    00127  * geos::geom namespace definition, first pass at headers split
    00128  *
    00129  **********************************************************************/