00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H
00020 #define GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H
00021
00022 #include <geos/export.h>
00023 #include <geos/geom/LineSegment.h>
00024 #include <geos/geom/Envelope.h>
00025
00026
00027
00028 namespace geos {
00029 namespace index {
00030 namespace chain {
00031 class MonotoneChain;
00032 }
00033 }
00034 }
00035
00036 namespace geos {
00037 namespace index {
00038 namespace chain {
00039
00044 class GEOS_DLL MonotoneChainOverlapAction {
00045
00046 protected:
00047
00048 geom::LineSegment overlapSeg1;
00049
00050 geom::LineSegment overlapSeg2;
00051
00052 public:
00053
00054 MonotoneChainOverlapAction() {}
00055
00056 virtual ~MonotoneChainOverlapAction() {}
00057
00066 virtual void overlap(MonotoneChain& mc1, std::size_t start1,
00067 MonotoneChain& mc2, std::size_t start2);
00068
00075 virtual void overlap(const geom::LineSegment& ,
00076 const geom::LineSegment& )
00077 {}
00078
00079
00080 geom::Envelope tempEnv1;
00081 geom::Envelope tempEnv2;
00082 };
00083
00084 }
00085 }
00086 }
00087
00088 #endif // GEOS_IDX_CHAIN_MONOTONECHAINOVERLAPACTION_H
00089