GEOS: SimpleNoder.h Source File

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

# SimpleNoder.h

    00001 /**********************************************************************
    00002  * $Id: SimpleNoder.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_SIMPLENODER_H
    00017 #define GEOS_NODING_SIMPLENODER_H
    00018
    00019 #include <vector>
    00020
    00021 #include <geos/inline.h>
    00022
    00023 #include <geos/noding/SinglePassNoder.h>
    00024 #include <geos/noding/SegmentString.h> // for inlined (FIXME)
    00025
    00026 // Forward declarations
    00027 namespace geos {
    00028         namespace noding {
    00029                 //class SegmentString;
    00030         }
    00031 }
    00032
    00033 namespace geos {
    00034 namespace noding { // geos.noding
    00035
    00036
    00046 class SimpleNoder: public SinglePassNoder {
    00047 private:
    00048         std::vector<SegmentString*>* nodedSegStrings;
    00049         virtual void computeIntersects(SegmentString *e0, SegmentString *e1);
    00050
    00051 public:
    00052         SimpleNoder(SegmentIntersector* nSegInt=NULL)
    00053                 :
    00054                 SinglePassNoder(nSegInt)
    00055         {};
    00056
    00057         void computeNodes(std::vector<SegmentString*>* inputSegmentStrings);
    00058
    00059         std::vector<SegmentString*>* getNodedSubstrings() const {
    00060                 return SegmentString::getNodedSubstrings(*nodedSegStrings);
    00061         }
    00062 };
    00063
    00064 } // namespace geos.noding
    00065 } // namespace geos
    00066
    00067 //#ifdef GEOS_INLINE
    00068 //# include "geos/noding/SimpleNoder.inl"
    00069 //#endif
    00070
    00071 #endif // GEOS_NODING_SIMPLENODER_H
    00072
    00073 /**********************************************************************
    00074  * $Log$
    00075  * Revision 1.3  2006/03/24 09:52:41  strk
    00076  * USE_INLINE => GEOS_INLINE
    00077  *
    00078  * Revision 1.2  2006/03/15 09:51:49  strk
    00079  * streamlined header usage
    00080  *
    00081  * Revision 1.1  2006/03/09 16:46:49  strk
    00082  * geos::geom namespace definition, first pass at headers split
    00083  *
    00084  **********************************************************************/
    00085