MultiPoint.h

00001 /**********************************************************************
00002  * $Id: MultiPoint.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_MULTIPOINT_H
00018 #define GEOS_GEOS_MULTIPOINT_H
00019 
00020 #include <geos/platform.h>
00021 #include <geos/geom/GeometryCollection.h>
00022 #include <geos/geom/Dimension.h> // for Dimension::DimensionType
00023 
00024 #include <geos/inline.h>
00025 
00026 #include <string>
00027 #include <vector>
00028 
00029 namespace geos {
00030         namespace geom { // geos::geom
00031                 class Coordinate;
00032                 class CoordinateArraySequence;
00033         }
00034 }
00035 
00036 namespace geos {
00037 namespace geom { // geos::geom
00038 
00043 class MultiPoint: public GeometryCollection {
00044 
00045 public:
00046 
00047         friend class GeometryFactory;
00048 
00049         virtual ~MultiPoint();
00050 
00052         Dimension::DimensionType getDimension() const;
00053 
00055         int getBoundaryDimension() const;
00056 
00058         Geometry* getBoundary() const;
00059 
00060         std::string getGeometryType() const;
00061 
00062         virtual GeometryTypeId getGeometryTypeId() const;
00063 
00064         //bool isValid() const;
00065 
00066         bool isSimple() const;
00067 
00068         bool equalsExact(const Geometry *other, double tolerance=0) const;
00069 
00070         Geometry *clone() const { return new MultiPoint(*this); };
00071 
00072 protected:
00073 
00092         MultiPoint(std::vector<Geometry *> *newPoints, const GeometryFactory *newFactory);
00093 
00094         MultiPoint(const MultiPoint &mp): GeometryCollection(mp) {}
00095 
00096         const Coordinate* getCoordinateN(int n) const;
00097 };
00098 
00099 } // namespace geos::geom
00100 } // namespace geos
00101 
00102 //#ifdef GEOS_INLINE
00103 //# include "geos/geom/MultiPoint.inl"
00104 //#endif
00105 
00106 #endif // ndef GEOS_GEOS_MULTIPOINT_H
00107 
00108 /**********************************************************************
00109  * $Log$
00110  * Revision 1.4  2006/05/04 15:49:39  strk
00111  * updated all Geometry::getDimension() methods to return Dimension::DimensionType (closes bug#93)
00112  *
00113  * Revision 1.3  2006/04/28 10:55:39  strk
00114  * Geometry constructors made protected, to ensure all constructions use GeometryFactory,
00115  * which has been made friend of all Geometry derivates. getNumPoints() changed to return
00116  * size_t.
00117  *
00118  * Revision 1.2  2006/03/24 09:52:41  strk
00119  * USE_INLINE => GEOS_INLINE
00120  *
00121  * Revision 1.1  2006/03/09 16:46:49  strk
00122  * geos::geom namespace definition, first pass at headers split
00123  *
00124  **********************************************************************/

Generated on Fri Mar 27 04:52:52 2009 for GEOS by  doxygen 1.5.4