MultiLineString.h

00001 /**********************************************************************
00002  *
00003  * GEOS - Geometry Engine Open Source
00004  * http://geos.osgeo.org
00005  *
00006  * Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
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  * Last port: geom/MultiLineString.java r320 (JTS-1.12)
00018  *
00019  **********************************************************************/
00020 
00021 #ifndef GEOS_GEOS_MULTILINESTRING_H
00022 #define GEOS_GEOS_MULTILINESTRING_H
00023 
00024 #include <geos/export.h>
00025 #include <geos/geom/GeometryCollection.h> // for inheritance
00026 #include <geos/geom/Lineal.h> // for inheritance
00027 #include <geos/geom/Dimension.h>
00028 
00029 #include <string>
00030 #include <vector>
00031 
00032 #include <geos/inline.h>
00033 
00034 // Forward declarations
00035 namespace geos {
00036         namespace geom { // geos::geom
00037                 class Coordinate;
00038                 class CoordinateArraySequence;
00039         }
00040 }
00041 
00042 namespace geos {
00043 namespace geom { // geos::geom
00044 
00045 #ifdef _MSC_VER
00046 #pragma warning(push)
00047 #pragma warning(disable:4250) // T1 inherits T2 via dominance
00048 #endif
00049 
00051 class GEOS_DLL MultiLineString: public GeometryCollection, public Lineal {
00052 
00053 public:
00054 
00055         friend class GeometryFactory;
00056 
00057         virtual ~MultiLineString();
00058 
00060         Dimension::DimensionType getDimension() const;
00061 
00067         int getBoundaryDimension() const;
00068 
00070         Geometry* getBoundary() const;
00071 
00072         std::string getGeometryType() const;
00073 
00074         virtual GeometryTypeId getGeometryTypeId() const;
00075 
00076         bool isClosed() const;
00077 
00078         bool equalsExact(const Geometry *other, double tolerance=0) const;
00079 
00080         Geometry *clone() const;
00081 
00091         MultiLineString* reverse() const;
00092 
00093 protected:
00094 
00114         MultiLineString(std::vector<Geometry *> *newLines,
00115                         const GeometryFactory *newFactory);
00116 
00117         MultiLineString(const MultiLineString &mp);
00118 };
00119 
00120 #ifdef _MSC_VER
00121 #pragma warning(pop)
00122 #endif
00123 
00124 } // namespace geos::geom
00125 } // namespace geos
00126 
00127 #ifdef GEOS_INLINE
00128 # include "geos/geom/MultiLineString.inl"
00129 #endif
00130 
00131 #endif // ndef GEOS_GEOS_MULTILINESTRING_H

Generated on 15 May 2014 for GEOS by  doxygen 1.4.7