SinglePassNoder.h

00001 /**********************************************************************
00002  * $Id: SinglePassNoder.h 1820 2006-09-06 16:54:23Z mloskot $
00003  *
00004  * GEOS - Geometry Engine Open Source
00005  * http://geos.refractions.net
00006  *
00007  * Copyright (C) 2006      Refractions Research Inc.
00008  *
00009  * This is free software; you can redistribute and/or modify it under
00010  * the terms of the GNU Lesser General Public Licence as published
00011  * by the Free Software Foundation. 
00012  * See the COPYING file for more information.
00013  *
00014  **********************************************************************/
00015 
00016 #ifndef GEOS_NODING_SINGLEPASSNODER_H
00017 #define GEOS_NODING_SINGLEPASSNODER_H
00018 
00019 #include <vector>
00020 
00021 #include <geos/inline.h>
00022 
00023 #include <geos/noding/Noder.h>
00024 
00025 // Forward declarations
00026 namespace geos {
00027         namespace noding {
00028                 class SegmentString;
00029                 class SegmentIntersector;
00030         }
00031 }
00032 
00033 namespace geos {
00034 namespace noding { // geos.noding
00035 
00036 
00049 class SinglePassNoder : public Noder { // implements Noder
00050 
00051 protected:
00052 
00054         SegmentIntersector* segInt;
00055 
00056 public:
00057 
00058         SinglePassNoder(SegmentIntersector* nSegInt=NULL): segInt(nSegInt) {}
00059 
00060         virtual ~SinglePassNoder() {}
00061 
00071         virtual void setSegmentIntersector(SegmentIntersector* newSegInt) {
00072           segInt = newSegInt;
00073         }
00074 
00080         virtual void computeNodes(std::vector<SegmentString*>* segStrings)=0;
00081 
00088         virtual std::vector<SegmentString*>* getNodedSubstrings() const=0;
00089         
00090 };
00091 
00092 } // namespace geos.noding
00093 } // namespace geos
00094 
00095 //#ifdef GEOS_INLINE
00096 //# include "geos/noding/SinglePassNoder.inl"
00097 //#endif
00098 
00099 #endif // GEOS_NODING_SINGLEPASSNODER_H
00100 
00101 /**********************************************************************
00102  * $Log$
00103  * Revision 1.2  2006/03/24 09:52:41  strk
00104  * USE_INLINE => GEOS_INLINE
00105  *
00106  * Revision 1.1  2006/03/09 16:46:49  strk
00107  * geos::geom namespace definition, first pass at headers split
00108  *
00109  **********************************************************************/
00110 

Generated on Fri Mar 27 04:53:01 2009 for GEOS by  doxygen 1.5.4