# SweepLineSegment.h

    00001 /**********************************************************************
    00002  * $Id: SweepLineSegment.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) 2005-2006 Refractions Research Inc.
    00008  * Copyright (C) 2001-2002 Vivid Solutions Inc.
    00009  *
    00010  * This is free software; you can redistribute and/or modify it under
    00011  * the terms of the GNU Lesser General Public Licence as published
    00012  * by the Free Software Foundation.
    00013  * See the COPYING file for more information.
    00014  *
    00015  **********************************************************************/
    00016
    00017 #ifndef GEOS_GEOMGRAPH_INDEX_SWEEPLINESEGMENT_H
    00018 #define GEOS_GEOMGRAPH_INDEX_SWEEPLINESEGMENT_H
    00019
    00020 #include <geos/geomgraph/index/SweepLineEventObj.h> // for inheritance
    00021
    00022 // Forward declarations
    00023 namespace geos {
    00024         namespace geom {
    00025                 class CoordinateSequence;
    00026         }
    00027         namespace geomgraph {
    00028                 class Edge;
    00029                 namespace index {
    00030                         class SegmentIntersector;
    00031                 }
    00032         }
    00033 }
    00034
    00035 namespace geos {
    00036 namespace geomgraph { // geos::geomgraph
    00037 namespace index { // geos::geomgraph::index
    00038
    00039 class SweepLineSegment: public SweepLineEventOBJ {
    00040 public:
    00041         SweepLineSegment(Edge *newEdge, int newPtIndex);
    00042         ~SweepLineSegment();
    00043         double getMinX();
    00044         double getMaxX();
    00045         void computeIntersections(SweepLineSegment *ss, SegmentIntersector *si);
    00046 protected:
    00047         Edge *edge;
    00048         const geom::CoordinateSequence* pts;
    00049         int ptIndex;
    00050 };
    00051
    00052
    00053
    00054 } // namespace geos.geomgraph.index
    00055 } // namespace geos.geomgraph
    00056 } // namespace geos
    00057
    00058 #endif
    00059
    00060 /**********************************************************************
    00061  * $Log$
    00062  * Revision 1.1  2006/03/14 12:55:56  strk
    00063  * Headers split: geomgraphindex.h, nodingSnapround.h
    00064  *
    00065  **********************************************************************/
    00066