GEOS: CoordinateSequenceFactory.h Source File

GEOS 3.5.0

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

- File List

CoordinateSequenceFactory.h
1 /**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************
14 *
15 * Last port: geom/CoordinateSequenceFactory.java r591 (JTS-1.12)
16 *
17 **********************************************************************/
18
19 #ifndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
20 #define GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
21
22
23 #include <geos/export.h>
24 #include <vector>
25
26 //#include <geos/geom/Coordinate.h>
27 #include <geos/inline.h>
28
29 // Forward declarations
30 namespace geos {
31 namespace geom {
32 class CoordinateSequence;
33 class Coordinate;
34 }
35 }
36
37 namespace geos {
38 namespace geom { // geos::geom
39
47 class GEOS_DLL CoordinateSequenceFactory {
48 public:
49
54 virtual CoordinateSequence *create() const=0;
55
71 virtual CoordinateSequence *create(
72 std::vector<Coordinate> *coordinates,
73 std::size_t dimension=0 ) const=0;
74
85 virtual CoordinateSequence *create(std::size_t size,
86 std::size_t dimension=0) const=0;
87
95 virtual CoordinateSequence *create(const CoordinateSequence &coordSeq) const=0;
96
97 virtual ~CoordinateSequenceFactory();
98 };
99
100 } // namespace geos::geom
101 } // namespace geos
102
103 //#ifdef GEOS_INLINE
104 //# include "geos/geom/CoordinateSequenceFactory.inl"
105 //#endif
106
107 #endif // ndef GEOS_GEOM_COORDINATESEQUENCEFACTORY_H
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
geos::geom::CoordinateSequenceFactory
A factory to create concrete instances of CoordinateSequences.
Definition: CoordinateSequenceFactory.h:47
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:59