noding/SegmentIntersector.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************/
#pragma once
#include <cstddef>
#include <geos/export.h>
// Forward declarations
namespace geos {
namespace noding {
class SegmentString;
}
}
namespace geos {
namespace noding { // geos.noding
class GEOS_DLL SegmentIntersector {
public:
virtual void processIntersections(
SegmentString* e0, std::size_t segIndex0,
SegmentString* e1, std::size_t segIndex1) = 0;
virtual bool
isDone() const
{
return false;
}
virtual
~SegmentIntersector()
{ }
protected:
SegmentIntersector() {}
};
typedef SegmentIntersector nodingSegmentIntersector;
} // namespace geos.noding
} // namespace geos
geos::noding::SegmentIntersector
Processes possible intersections detected by a Noder.
Definition noding/SegmentIntersector.h:45
geos::noding::SegmentIntersector::processIntersections
virtual void processIntersections(SegmentString *e0, std::size_t segIndex0, SegmentString *e1, std::size_t segIndex1)=0
geos::noding::SegmentIntersector::isDone
virtual bool isDone() const
Reports whether the client of this class needs to continue testing all intersections in an arrangemen...
Definition noding/SegmentIntersector.h:69
geos::noding::SegmentString
An interface for classes which represent a sequence of contiguous line segments.
Definition SegmentString.h:47
geos::noding
Classes to compute nodings for arrangements of line segments and line segment sequences.
Definition CoverageCleaner.h:42
geos::noding::nodingSegmentIntersector
SegmentIntersector nodingSegmentIntersector
Temporary typedef for namespace transition.
Definition noding/SegmentIntersector.h:85
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38