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

- File List

# SweepLineSegment.h

    00001 /**********************************************************************
    00002  * $Id: SweepLineSegment.h 2556 2009-06-06 22:22:28Z strk $
    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
    00021 #include <geos/export.h>
    00022 #include <geos/geomgraph/index/SweepLineEventObj.h> // for inheritance
    00023
    00024 // Forward declarations
    00025 namespace geos {
    00026         namespace geom {
    00027                 class CoordinateSequence;
    00028         }
    00029         namespace geomgraph {
    00030                 class Edge;
    00031                 namespace index {
    00032                         class SegmentIntersector;
    00033                 }
    00034         }
    00035 }
    00036
    00037 namespace geos {
    00038 namespace geomgraph { // geos::geomgraph
    00039 namespace index { // geos::geomgraph::index
    00040
    00041 class GEOS_DLL SweepLineSegment: public SweepLineEventOBJ {
    00042 public:
    00043         SweepLineSegment(Edge *newEdge, int newPtIndex);
    00044         ~SweepLineSegment();
    00045         double getMinX();
    00046         double getMaxX();
    00047         void computeIntersections(SweepLineSegment *ss, SegmentIntersector *si);
    00048 protected:
    00049         Edge *edge;
    00050         const geom::CoordinateSequence* pts;
    00051         int ptIndex;
    00052 };
    00053
    00054
    00055
    00056 } // namespace geos.geomgraph.index
    00057 } // namespace geos.geomgraph
    00058 } // namespace geos
    00059
    00060 #endif
    00061
    00062 /**********************************************************************
    00063  * $Log$
    00064  * Revision 1.1  2006/03/14 12:55:56  strk
    00065  * Headers split: geomgraphindex.h, nodingSnapround.h
    00066  *
    00067  **********************************************************************/
    00068