GEOS  3.3.3
SimpleNoder.h
1 /**********************************************************************
2  * $Id: SimpleNoder.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  * Last port: noding/SimpleNoder.java rev. 1.7 (JTS-1.9)
17  *
18  **********************************************************************/
19 
20 #ifndef GEOS_NODING_SIMPLENODER_H
21 #define GEOS_NODING_SIMPLENODER_H
22 
23 #include <geos/export.h>
24 
25 #include <vector>
26 
27 #include <geos/inline.h>
28 
29 #include <geos/noding/SinglePassNoder.h>
30 #include <geos/noding/NodedSegmentString.h> // for inlined (FIXME)
31 
32 // Forward declarations
33 namespace geos {
34  namespace noding {
35  //class SegmentString;
36  }
37 }
38 
39 namespace geos {
40 namespace noding { // geos.noding
41 
42 
52 class GEOS_DLL SimpleNoder: public SinglePassNoder {
53 private:
54  std::vector<SegmentString*>* nodedSegStrings;
55  virtual void computeIntersects(SegmentString *e0, SegmentString *e1);
56 
57 public:
58  SimpleNoder(SegmentIntersector* nSegInt=NULL)
59  :
60  SinglePassNoder(nSegInt)
61  {};
62 
63  void computeNodes(std::vector<SegmentString*>* inputSegmentStrings);
64 
65  std::vector<SegmentString*>* getNodedSubstrings() const {
66  return NodedSegmentString::getNodedSubstrings(*nodedSegStrings);
67  }
68 };
69 
70 } // namespace geos.noding
71 } // namespace geos
72 
73 //#ifdef GEOS_INLINE
74 //# include "geos/noding/SimpleNoder.inl"
75 //#endif
76 
77 #endif // GEOS_NODING_SIMPLENODER_H
78 
79 /**********************************************************************
80  * $Log$
81  * Revision 1.3 2006/03/24 09:52:41 strk
82  * USE_INLINE => GEOS_INLINE
83  *
84  * Revision 1.2 2006/03/15 09:51:49 strk
85  * streamlined header usage
86  *
87  * Revision 1.1 2006/03/09 16:46:49 strk
88  * geos::geom namespace definition, first pass at headers split
89  *
90  **********************************************************************/
91