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