GEOS: SinglePassNoder.h Source File

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

- File List

# SinglePassNoder.h

    00001 /**********************************************************************
    00002  * $Id: SinglePassNoder.h 2556 2009-06-06 22:22:28Z strk $
    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 <geos/export.h>
    00020
    00021 #include <vector>
    00022
    00023 #include <geos/inline.h>
    00024
    00025 #include <geos/noding/Noder.h>
    00026
    00027 // Forward declarations
    00028 namespace geos {
    00029         namespace noding {
    00030                 class SegmentString;
    00031                 class SegmentIntersector;
    00032         }
    00033 }
    00034
    00035 namespace geos {
    00036 namespace noding { // geos.noding
    00037
    00038
    00051 class GEOS_DLL SinglePassNoder : public Noder { // implements Noder
    00052
    00053 protected:
    00054
    00056         SegmentIntersector* segInt;
    00057
    00058 public:
    00059
    00060         SinglePassNoder(SegmentIntersector* nSegInt=NULL): segInt(nSegInt) {}
    00061
    00062         virtual ~SinglePassNoder() {}
    00063
    00073         virtual void setSegmentIntersector(SegmentIntersector* newSegInt) {
    00074           segInt = newSegInt;
    00075         }
    00076
    00082         virtual void computeNodes(std::vector<SegmentString*>* segStrings)=0;
    00083
    00090         virtual std::vector<SegmentString*>* getNodedSubstrings() const=0;
    00091
    00092 };
    00093
    00094 } // namespace geos.noding
    00095 } // namespace geos
    00096
    00097 //#ifdef GEOS_INLINE
    00098 //# include "geos/noding/SinglePassNoder.inl"
    00099 //#endif
    00100
    00101 #endif // GEOS_NODING_SINGLEPASSNODER_H
    00102
    00103 /**********************************************************************
    00104  * $Log$
    00105  * Revision 1.2  2006/03/24 09:52:41  strk
    00106  * USE_INLINE => GEOS_INLINE
    00107  *
    00108  * Revision 1.1  2006/03/09 16:46:49  strk
    00109  * geos::geom namespace definition, first pass at headers split
    00110  *
    00111  **********************************************************************/
    00112