00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GEOS_GEOS_LINEARRING_H
00018 #define GEOS_GEOS_LINEARRING_H
00019
00020 #include <string>
00021 #include <vector>
00022 #include <geos/platform.h>
00023 #include <geos/geom/LineString.h>
00024
00025 #include <geos/inline.h>
00026
00027
00028 namespace geos {
00029 namespace geom {
00030 class Coordinate;
00031 class CoordinateArraySequence;
00032 }
00033 }
00034
00035 namespace geos {
00036 namespace geom {
00037
00047 class LinearRing : public LineString {
00048
00049 public:
00050
00051 LinearRing(const LinearRing &lr);
00052
00065 LinearRing(CoordinateSequence* points,
00066 const GeometryFactory *newFactory);
00067
00069 LinearRing(CoordinateSequence::AutoPtr points,
00070 const GeometryFactory *newFactory);
00071
00072 virtual Geometry *clone() const { return new LinearRing(*this); }
00073 virtual ~LinearRing();
00074 bool isSimple() const;
00075 std::string getGeometryType() const;
00076 virtual GeometryTypeId getGeometryTypeId() const;
00077 bool isClosed() const;
00078 void setPoints(CoordinateSequence* cl);
00079 private:
00080 void validateConstruction();
00081 };
00082
00083
00084 }
00085 }
00086
00087
00088
00089
00090
00091 #endif // ndef GEOS_GEOS_LINEARRING_H
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108