GEOS 3.3.8

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

- File List

MultiLineString.h
1 /**********************************************************************
2 * $Id: MultiLineString.h 3211 2011-02-13 19:54:01Z mloskot $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
9 * Copyright (C) 2005 2006 Refractions Research Inc.
10 *
11 * This is free software; you can redistribute and/or modify it under
12 * the terms of the GNU Lesser General Public Licence as published
13 * by the Free Software Foundation.
14 * See the COPYING file for more information.
15 *
16 **********************************************************************
17 *
18 * Last port: geom/MultiLineString.java r320 (JTS-1.12)
19 *
20 **********************************************************************/
21
22 #ifndef GEOS_GEOS_MULTILINESTRING_H
23 #define GEOS_GEOS_MULTILINESTRING_H
24
25 #include <geos/export.h>
26 #include <geos/geom/GeometryCollection.h> // for inheritance
27 #include <geos/geom/Lineal.h> // for inheritance
28 #include <geos/geom/Dimension.h>
29
30 #include <string>
31 #include <vector>
32
33 #include <geos/inline.h>
34
35 // Forward declarations
36 namespace geos {
37 namespace geom { // geos::geom
38 class Coordinate;
39 class CoordinateArraySequence;
40 }
41 }
42
43 namespace geos {
44 namespace geom { // geos::geom
45
46 #ifdef _MSC_VER
47 #pragma warning(push)
48 #pragma warning(disable:4250) // T1 inherits T2 via dominance
49 #endif
50
52 class GEOS_DLL MultiLineString: public GeometryCollection, public Lineal {
53
54 public:
55
56 friend class GeometryFactory;
57
58 virtual ~MultiLineString();
59
61 Dimension::DimensionType getDimension() const;
62
68 int getBoundaryDimension() const;
69
71 Geometry* getBoundary() const;
72
73 std::string getGeometryType() const;
74
75 virtual GeometryTypeId getGeometryTypeId() const;
76
77 bool isClosed() const;
78
79 bool equalsExact(const Geometry *other, double tolerance=0) const;
80
81 Geometry *clone() const;
82
92 MultiLineString* reverse() const;
93
94 protected:
95
115 MultiLineString(std::vector<Geometry *> *newLines,
116 const GeometryFactory *newFactory);
117
118 MultiLineString(const MultiLineString &mp);
119 };
120
121 #ifdef _MSC_VER
122 #pragma warning(pop)
123 #endif
124
125 } // namespace geos::geom
126 } // namespace geos
127
128 #ifdef GEOS_INLINE
129 # include "geos/geom/MultiLineString.inl"
130 #endif
131
132 #endif // ndef GEOS_GEOS_MULTILINESTRING_H
133
134 /**********************************************************************
135 * $Log$
136 * Revision 1.5 2006/05/04 15:49:39 strk
137 * updated all Geometry::getDimension() methods to return Dimension::DimensionType (closes bug#93)
138 *
139 * Revision 1.4 2006/04/28 10:55:39 strk
140 * Geometry constructors made protected, to ensure all constructions use GeometryFactory,
141 * which has been made friend of all Geometry derivates. getNumPoints() changed to return
142 * size_t.
143 *
144 * Revision 1.3 2006/03/24 09:52:41 strk
145 * USE_INLINE => GEOS_INLINE
146 *
147 * Revision 1.2 2006/03/23 12:12:01 strk
148 * Fixes to allow build with -DGEOS_INLINE
149 *
150 * Revision 1.1 2006/03/09 16:46:49 strk
151 * geos::geom namespace definition, first pass at headers split
152 *
153 **********************************************************************/