00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GEOS_GEOS_MULTILINESTRING_H
00023 #define GEOS_GEOS_MULTILINESTRING_H
00024
00025 #include <geos/export.h>
00026 #include <geos/geom/GeometryCollection.h>
00027 #include <geos/geom/Lineal.h>
00028 #include <geos/geom/Dimension.h>
00029
00030 #include <string>
00031 #include <vector>
00032
00033 #include <geos/inline.h>
00034
00035
00036 namespace geos {
00037 namespace geom {
00038 class Coordinate;
00039 class CoordinateArraySequence;
00040 }
00041 }
00042
00043 namespace geos {
00044 namespace geom {
00045
00046 #ifdef _MSC_VER
00047 #pragma warning(push)
00048 #pragma warning(disable:4250) // T1 inherits T2 via dominance
00049 #endif
00050
00052 class GEOS_DLL MultiLineString: public GeometryCollection, public Lineal {
00053
00054 public:
00055
00056 friend class GeometryFactory;
00057
00058 virtual ~MultiLineString();
00059
00061 Dimension::DimensionType getDimension() const;
00062
00068 int getBoundaryDimension() const;
00069
00071 Geometry* getBoundary() const;
00072
00073 std::string getGeometryType() const;
00074
00075 virtual GeometryTypeId getGeometryTypeId() const;
00076
00077 bool isClosed() const;
00078
00079 bool equalsExact(const Geometry *other, double tolerance=0) const;
00080
00081 Geometry *clone() const;
00082
00092 MultiLineString* reverse() const;
00093
00094 protected:
00095
00115 MultiLineString(std::vector<Geometry *> *newLines,
00116 const GeometryFactory *newFactory);
00117
00118 MultiLineString(const MultiLineString &mp);
00119 };
00120
00121 #ifdef _MSC_VER
00122 #pragma warning(pop)
00123 #endif
00124
00125 }
00126 }
00127
00128 #ifdef GEOS_INLINE
00129 # include "geos/geom/MultiLineString.inl"
00130 #endif
00131
00132 #endif // ndef GEOS_GEOS_MULTILINESTRING_H
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153