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

# SegmentIntersectionTester.h

    00001 /**********************************************************************
    00002  * $Id: SegmentIntersectionTester.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_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H
    00017 #define GEOS_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H
    00018
    00019 #include <geos/algorithm/LineIntersector.h> // for composition
    00020
    00021 // Forward declarations
    00022 namespace geos {
    00023         namespace geom {
    00024                 class LineString;
    00025                 class CoordinateSequence;
    00026         }
    00027 }
    00028
    00029 namespace geos {
    00030 namespace operation { // geos::operation
    00031 namespace predicate { // geos::operation::predicate
    00032
    00043 class SegmentIntersectionTester {
    00044
    00045 private:
    00046
    00051         algorithm::LineIntersector li; // Robust
    00052
    00053         bool hasIntersectionVar;
    00054
    00055 public:
    00056
    00057         SegmentIntersectionTester(): hasIntersectionVar(false) {}
    00058
    00059         bool hasIntersectionWithLineStrings(const geom::CoordinateSequence &seq,
    00060                 const std::vector<const geom::LineString *>& lines);
    00061
    00062         bool hasIntersection(const geom::CoordinateSequence &seq0,
    00063                 const geom::CoordinateSequence &seq1);
    00064
    00065
    00066 };
    00067
    00068 } // namespace geos::operation::predicate
    00069 } // namespace geos::operation
    00070 } // namespace geos
    00071
    00072 #endif // ifndef GEOS_OP_PREDICATE_SEGMENTINTERSECTIONTESTER_H