# MultiLineString.h

    00001 /**********************************************************************
    00002  * $Id: MultiLineString.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_MULTILINESTRING_H
    00018 #define GEOS_GEOS_MULTILINESTRING_H
    00019
    00020 #include <geos/geom/GeometryCollection.h> // for inheritance
    00021 //#include <geos/platform.h>
    00022 #include <geos/geom/Dimension.h>
    00023
    00024 #include <string>
    00025 #include <vector>
    00026
    00027 #include <geos/inline.h>
    00028
    00029 // Forward declarations
    00030 namespace geos {
    00031         namespace geom { // geos::geom
    00032                 class Coordinate;
    00033                 class CoordinateArraySequence;
    00034         }
    00035 }
    00036
    00037 namespace geos {
    00038 namespace geom { // geos::geom
    00039
    00041 class MultiLineString: public GeometryCollection {
    00042
    00043 public:
    00044
    00045         friend class GeometryFactory;
    00046
    00047         virtual ~MultiLineString();
    00048
    00050         Dimension::DimensionType getDimension() const;
    00051
    00057         int getBoundaryDimension() const;
    00058
    00060         Geometry* getBoundary() const;
    00061
    00062         std::string getGeometryType() const;
    00063
    00064         virtual GeometryTypeId getGeometryTypeId() const;
    00065
    00066         bool isClosed() const;
    00067
    00068         bool isSimple() const;
    00069
    00070         bool equalsExact(const Geometry *other, double tolerance=0) const;
    00071
    00072         Geometry *clone() const;
    00073
    00083         MultiLineString* reverse() const;
    00084
    00085 protected:
    00086
    00106         MultiLineString(std::vector<Geometry *> *newLines,
    00107                         const GeometryFactory *newFactory);
    00108
    00109         MultiLineString(const MultiLineString &mp);
    00110 };
    00111
    00112 } // namespace geos::geom
    00113 } // namespace geos
    00114
    00115 #ifdef GEOS_INLINE
    00116 # include "geos/geom/MultiLineString.inl"
    00117 #endif
    00118
    00119 #endif // ndef GEOS_GEOS_MULTILINESTRING_H
    00120
    00121 /**********************************************************************
    00122  * $Log$
    00123  * Revision 1.5  2006/05/04 15:49:39  strk
    00124  * updated all Geometry::getDimension() methods to return Dimension::DimensionType (closes bug#93)
    00125  *
    00126  * Revision 1.4  2006/04/28 10:55:39  strk
    00127  * Geometry constructors made protected, to ensure all constructions use GeometryFactory,
    00128  * which has been made friend of all Geometry derivates. getNumPoints() changed to return
    00129  * size_t.
    00130  *
    00131  * Revision 1.3  2006/03/24 09:52:41  strk
    00132  * USE_INLINE => GEOS_INLINE
    00133  *
    00134  * Revision 1.2  2006/03/23 12:12:01  strk
    00135  * Fixes to allow build with -DGEOS_INLINE
    00136  *
    00137  * Revision 1.1  2006/03/09 16:46:49  strk
    00138  * geos::geom namespace definition, first pass at headers split
    00139  *
    00140  **********************************************************************/