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 #ifdef _MSC_VER
00030 #pragma warning(push)
00031 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
00032 #endif
00033
00034
00035 namespace geos {
00036 namespace algorithm {
00037 class BoundaryNodeRule;
00038 }
00039 namespace geom {
00040 class Geometry;
00041 class PrecisionModel;
00042 }
00043 namespace geomgraph {
00044 class GeometryGraph;
00045 }
00046 }
00047
00048
00049 namespace geos {
00050 namespace operation {
00051
00053 class GEOS_DLL GeometryGraphOperation {
00054
00055 public:
00056
00057 GeometryGraphOperation(const geom::Geometry *g0,
00058 const geom::Geometry *g1);
00059
00060 GeometryGraphOperation(const geom::Geometry *g0,
00061 const geom::Geometry *g1,
00062 const algorithm::BoundaryNodeRule& boundaryNodeRule);
00063
00064 GeometryGraphOperation(const geom::Geometry *g0);
00065
00066 virtual ~GeometryGraphOperation();
00067
00068 const geom::Geometry* getArgGeometry(unsigned int i) const;
00069
00070 protected:
00071
00072 algorithm::LineIntersector li;
00073
00074 const geom::PrecisionModel* resultPrecisionModel;
00075
00079 std::vector<geomgraph::GeometryGraph*> arg;
00080
00081 void setComputationPrecision(const geom::PrecisionModel* pm);
00082 };
00083
00084 }
00085 }
00086
00087 #ifdef _MSC_VER
00088 #pragma warning(pop)
00089 #endif
00090
00091 #endif
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105