00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GEOS_GEOS_MULTIPOLYGON_H
00022 #define GEOS_GEOS_MULTIPOLYGON_H
00023
00024 #include <geos/export.h>
00025 #include <string>
00026 #include <vector>
00027 #include <geos/platform.h>
00028 #include <geos/geom/GeometryCollection.h>
00029 #include <geos/geom/Dimension.h>
00030
00031 #include <geos/inline.h>
00032
00033
00034 namespace geos {
00035 namespace geom {
00036 class Coordinate;
00037 class CoordinateArraySequence;
00038 class MultiPoint;
00039 }
00040 }
00041
00042
00043 namespace geos {
00044 namespace geom {
00045
00047 class GEOS_DLL MultiPolygon: public GeometryCollection
00048 {
00049
00050 public:
00051
00052 friend class GeometryFactory;
00053
00054 virtual ~MultiPolygon();
00055
00057 Dimension::DimensionType getDimension() const;
00058
00060 int getBoundaryDimension() const;
00061
00068 Geometry* getBoundary() const;
00069
00070 std::string getGeometryType() const;
00071
00072 virtual GeometryTypeId getGeometryTypeId() const;
00073
00074 bool isSimple() const;
00075
00076 bool equalsExact(const Geometry *other, double tolerance=0) const;
00077
00078 Geometry *clone() const;
00079
00080 protected:
00081
00103 MultiPolygon(std::vector<Geometry *> *newPolys, const GeometryFactory *newFactory);
00104
00105 MultiPolygon(const MultiPolygon &mp);
00106
00107
00108 };
00109
00110
00111 }
00112 }
00113
00114 #ifdef GEOS_INLINE
00115 # include "geos/geom/MultiPolygon.inl"
00116 #endif
00117
00118 #endif // ndef GEOS_GEOS_MULTIPOLYGON_H
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136