GEOS: SegmentIntersectionTester.h Source File

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

- File List

# SegmentIntersectionTester.h

    00001 /**********************************************************************
    00002  * $Id: SegmentIntersectionTester.h 2570 2009-06-08 17:15:46Z 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  * Last port: operation/predicate/SegmentIntersectionTester.java rev. 1.3 (JTS-1.10)
    00017  *
    00018  **********************************************************************/
    00019
    00020 #ifndef GEOS_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H
    00021 #define GEOS_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H
    00022
    00023 #include <geos/export.h>
    00024
    00025 #include <geos/algorithm/LineIntersector.h> // for composition
    00026
    00027 // Forward declarations
    00028 namespace geos {
    00029         namespace geom {
    00030                 class LineString;
    00031                 class CoordinateSequence;
    00032         }
    00033 }
    00034
    00035 namespace geos {
    00036 namespace operation { // geos::operation
    00037 namespace predicate { // geos::operation::predicate
    00038
    00046 class GEOS_DLL SegmentIntersectionTester {
    00047
    00048 private:
    00049
    00054         algorithm::LineIntersector li; // Robust
    00055
    00056         bool hasIntersectionVar;
    00057
    00058 public:
    00059
    00060         SegmentIntersectionTester(): hasIntersectionVar(false) {}
    00061
    00062         bool hasIntersectionWithLineStrings(const geom::CoordinateSequence &seq,
    00063                 const std::vector<const geom::LineString *>& lines);
    00064
    00065         bool hasIntersection(const geom::CoordinateSequence &seq0,
    00066                 const geom::CoordinateSequence &seq1);
    00067
    00068
    00069 };
    00070
    00071 } // namespace geos::operation::predicate
    00072 } // namespace geos::operation
    00073 } // namespace geos
    00074
    00075 #endif // ifndef GEOS_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H