MonotoneChainOverlapAction.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2001-2002 Vivid Solutions 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.
*
**********************************************************************
*
* Last port: index/chain/MonotoneChainOverlapAction.java rev. 1.6 (JTS-1.10)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <geos/geom/LineSegment.h>
// Forward declarations
namespace geos {
namespace index {
namespace chain {
class MonotoneChain;
}
}
}
namespace geos {
namespace index { // geos::index
namespace chain { // geos::index::chain
class GEOS_DLL MonotoneChainOverlapAction {
protected:
geom::LineSegment overlapSeg1;
geom::LineSegment overlapSeg2;
public:
MonotoneChainOverlapAction() {}
virtual
~MonotoneChainOverlapAction() {}
virtual void overlap(const MonotoneChain& mc1, std::size_t start1,
const MonotoneChain& mc2, std::size_t start2);
virtual void
overlap(const geom::LineSegment& /*seg1*/,
const geom::LineSegment& /*seg2*/) {}
};
} // namespace geos::index::chain
} // namespace geos::index
} // namespace geos
geos::geom::LineSegment
Definition LineSegment.h:61
geos::index::chain::MonotoneChainOverlapAction::overlap
virtual void overlap(const MonotoneChain &mc1, std::size_t start1, const MonotoneChain &mc2, std::size_t start2)
This function can be overridden if the original chains are needed.
geos::index::chain::MonotoneChainOverlapAction::overlap
virtual void overlap(const geom::LineSegment &, const geom::LineSegment &)
This is a convenience function which can be overridden to obtain the actual line segments which overl...
Definition MonotoneChainOverlapAction.h:78
geos::index::chain::MonotoneChain
Monotone Chains are a way of partitioning the segments of a linestring to allow for fast searching of...
Definition index/chain/MonotoneChain.h:85
geos::index::chain
Contains classes that implement Monotone Chains.
Definition index/chain/MonotoneChain.h:35
geos::index
Provides classes for various kinds of spatial indexes.
Definition CleanCoverage.h:39
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38