00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef GEOS_OPERATION_GEOMETRYGRAPHOPERATION_H
00022 #define GEOS_OPERATION_GEOMETRYGRAPHOPERATION_H
00023
00024 #include <geos/export.h>
00025 #include <geos/algorithm/LineIntersector.h>
00026
00027 #include <vector>
00028
00029
00030 namespace geos {
00031 namespace algorithm {
00032 class BoundaryNodeRule;
00033 }
00034 namespace geom {
00035 class Geometry;
00036 class PrecisionModel;
00037 }
00038 namespace geomgraph {
00039 class GeometryGraph;
00040 }
00041 }
00042
00043
00044 namespace geos {
00045 namespace operation {
00046
00048 class GEOS_DLL GeometryGraphOperation {
00049
00050 public:
00051
00052 GeometryGraphOperation(const geom::Geometry *g0,
00053 const geom::Geometry *g1);
00054
00055 GeometryGraphOperation(const geom::Geometry *g0,
00056 const geom::Geometry *g1,
00057 const algorithm::BoundaryNodeRule& boundaryNodeRule);
00058
00059 GeometryGraphOperation(const geom::Geometry *g0);
00060
00061 virtual ~GeometryGraphOperation();
00062
00063 const geom::Geometry* getArgGeometry(unsigned int i) const;
00064
00065 protected:
00066
00067 algorithm::LineIntersector li;
00068
00069 const geom::PrecisionModel* resultPrecisionModel;
00070
00074 std::vector<geomgraph::GeometryGraph*> arg;
00075
00076 void setComputationPrecision(const geom::PrecisionModel* pm);
00077 };
00078
00079 }
00080 }
00081
00082 #endif
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096