GEOS: SinglePassNoder.h Source File

GEOS 3.3.8

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

- File List

SinglePassNoder.h
1 /**********************************************************************
2 * $Id: SinglePassNoder.h 2556 2009-06-06 22:22:28Z strk $
3 *
4 * GEOS - Geometry Engine Open Source
5 * http://geos.refractions.net
6 *
7 * Copyright (C) 2006 Refractions Research Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16 #ifndef GEOS_NODING_SINGLEPASSNODER_H
17 #define GEOS_NODING_SINGLEPASSNODER_H
18
19 #include <geos/export.h>
20
21 #include <vector>
22
23 #include <geos/inline.h>
24
25 #include <geos/noding/Noder.h>
26
27 // Forward declarations
28 namespace geos {
29 namespace noding {
30 class SegmentString;
31 class SegmentIntersector;
32 }
33 }
34
35 namespace geos {
36 namespace noding { // geos.noding
37
38
51 class GEOS_DLL SinglePassNoder : public Noder { // implements Noder
52
53 protected:
54
56 SegmentIntersector* segInt;
57
58 public:
59
60 SinglePassNoder(SegmentIntersector* nSegInt=NULL): segInt(nSegInt) {}
61
62 virtual ~SinglePassNoder() {}
63
73 virtual void setSegmentIntersector(SegmentIntersector* newSegInt) {
74 segInt = newSegInt;
75 }
76
82 virtual void computeNodes(std::vector<SegmentString*>* segStrings)=0;
83
90 virtual std::vector<SegmentString*>* getNodedSubstrings() const=0;
91
92 };
93
94 } // namespace geos.noding
95 } // namespace geos
96
97 //#ifdef GEOS_INLINE
98 //# include "geos/noding/SinglePassNoder.inl"
99 //#endif
100
101 #endif // GEOS_NODING_SINGLEPASSNODER_H
102
103 /**********************************************************************
104 * $Log$
105 * Revision 1.2 2006/03/24 09:52:41 strk
106 * USE_INLINE => GEOS_INLINE
107 *
108 * Revision 1.1 2006/03/09 16:46:49 strk
109 * geos::geom namespace definition, first pass at headers split
110 *
111 **********************************************************************/
112