GEOS: LinearRing.h Source File

- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# LinearRing.h

    00001 /**********************************************************************
    00002  * $Id: LinearRing.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_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 // Forward declarations
    00028 namespace geos {
    00029         namespace geom { // geos::geom
    00030                 class Coordinate;
    00031                 class CoordinateArraySequence;
    00032         }
    00033 }
    00034
    00035 namespace geos {
    00036 namespace geom { // geos::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 } // namespace geos::geom
    00085 } // namespace geos
    00086
    00087 //#ifdef GEOS_INLINE
    00088 //# include "geos/geom/LinearRing.inl"
    00089 //#endif
    00090
    00091 #endif // ndef GEOS_GEOS_LINEARRING_H
    00092
    00093 /**********************************************************************
    00094  * $Log$
    00095  * Revision 1.4  2006/04/11 11:16:25  strk
    00096  * Added LineString and LinearRing constructors by auto_ptr
    00097  *
    00098  * Revision 1.3  2006/04/10 17:35:44  strk
    00099  * Changed LineString::points and Point::coordinates to be wrapped
    00100  * in an auto_ptr<>. This should close bugs #86 and #89
    00101  *
    00102  * Revision 1.2  2006/03/24 09:52:41  strk
    00103  * USE_INLINE => GEOS_INLINE
    00104  *
    00105  * Revision 1.1  2006/03/09 16:46:49  strk
    00106  * geos::geom namespace definition, first pass at headers split
    00107  *
    00108  **********************************************************************/