GEOS: MultiLineString.h Source File

GEOS 3.5.0

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

- File List

MultiLineString.h
1 /**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 * Copyright (C) 2005 2006 Refractions Research Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************
16 *
17 * Last port: geom/MultiLineString.java r320 (JTS-1.12)
18 *
19 **********************************************************************/
20
21 #ifndef GEOS_GEOS_MULTILINESTRING_H
22 #define GEOS_GEOS_MULTILINESTRING_H
23
24 #include <geos/export.h>
25 #include <geos/geom/GeometryCollection.h> // for inheritance
26 #include <geos/geom/Lineal.h> // for inheritance
27 #include <geos/geom/Dimension.h>
28
29 #include <string>
30 #include <vector>
31
32 #include <geos/inline.h>
33
34 // Forward declarations
35 namespace geos {
36 namespace geom { // geos::geom
37 class Coordinate;
38 class CoordinateArraySequence;
39 }
40 }
41
42 namespace geos {
43 namespace geom { // geos::geom
44
45 #ifdef _MSC_VER
46 #pragma warning(push)
47 #pragma warning(disable:4250) // T1 inherits T2 via dominance
48 #endif
49
51 class GEOS_DLL MultiLineString: public GeometryCollection, public Lineal {
52
53 public:
54
55 friend class GeometryFactory;
56
57 virtual ~MultiLineString();
58
60 Dimension::DimensionType getDimension() const;
61
67 int getBoundaryDimension() const;
68
70 Geometry* getBoundary() const;
71
72 std::string getGeometryType() const;
73
74 virtual GeometryTypeId getGeometryTypeId() const;
75
76 bool isClosed() const;
77
78 bool equalsExact(const Geometry *other, double tolerance=0) const;
79
80 Geometry *clone() const;
81
91 MultiLineString* reverse() const;
92
93 protected:
94
114 MultiLineString(std::vector<Geometry *> *newLines,
115 const GeometryFactory *newFactory);
116
117 MultiLineString(const MultiLineString &mp);
118 };
119
120 #ifdef _MSC_VER
121 #pragma warning(pop)
122 #endif
123
124 } // namespace geos::geom
125 } // namespace geos
126
127 #ifdef GEOS_INLINE
128 # include "geos/geom/MultiLineString.inl"
129 #endif
130
131 #endif // ndef GEOS_GEOS_MULTILINESTRING_H
geos::geom::GeometryTypeId
GeometryTypeId
Geometry types.
Definition: Geometry.h:65
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
geos::geom::Lineal
Definition: Lineal.h:32
geos::geom::GeometryFactory
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:67
geos::geom::GeometryCollection
Represents a collection of heterogeneous Geometry objects.
Definition: GeometryCollection.h:56
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::geom::MultiLineString
Models a collection of (}s.
Definition: MultiLineString.h:51
geos::geom::Dimension::DimensionType
DimensionType
Definition: Dimension.h:31