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

- File List

# PreparedLineString.h

    00001 /**********************************************************************
    00002  * $Id: PreparedLineString.h 2811 2009-12-08 17:42:02Z 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  *
    00017  * Last port: geom/prep/PreparedLineString.java rev 1.3 (JTS-1.10)
    00018  *
    00019  **********************************************************************/
    00020
    00021 #ifndef GEOS_GEOM_PREP_PREPAREDLINESTRING_H
    00022 #define GEOS_GEOM_PREP_PREPAREDLINESTRING_H
    00023
    00024 #include <geos/geom/prep/BasicPreparedGeometry.h> // for inheritance
    00025 #include <geos/noding/SegmentString.h>
    00026
    00027 namespace geos {
    00028         namespace noding {
    00029                 class FastSegmentSetIntersectionFinder;
    00030         }
    00031 }
    00032
    00033 namespace geos {
    00034 namespace geom { // geos::geom
    00035 namespace prep { // geos::geom::prep
    00036
    00044 class PreparedLineString : public BasicPreparedGeometry
    00045 {
    00046 private:
    00047         noding::FastSegmentSetIntersectionFinder * segIntFinder;
    00048         mutable noding::SegmentString::ConstVect segStrings;
    00049
    00050 protected:
    00051 public:
    00052         PreparedLineString(const Geometry * geom)
    00053                 :
    00054                 BasicPreparedGeometry( geom),
    00055                 segIntFinder( NULL)
    00056         { }
    00057
    00058         ~PreparedLineString();
    00059
    00060         noding::FastSegmentSetIntersectionFinder * getIntersectionFinder();
    00061
    00062         bool intersects(const geom::Geometry * g) const;
    00063
    00064 };
    00065
    00066 } // namespace geos::geom::prep
    00067 } // namespace geos::geom
    00068 } // namespace geos
    00069
    00070 #endif // GEOS_GEOM_PREP_PREPAREDLINESTRING_H
    00071 /**********************************************************************
    00072  * $Log$
    00073  **********************************************************************/
    00074
    00075