GEOS  3.4.2
GeometryGraphOperation.h
00001 /**********************************************************************
00002  *
00003  * GEOS - Geometry Engine Open Source
00004  * http://geos.osgeo.org
00005  *
00006  * Copyright (C) 2005-2006 Refractions Research Inc.
00007  * Copyright (C) 2001-2002 Vivid Solutions Inc.
00008  *
00009  * This is free software; you can redistribute and/or modify it under
00010  * the terms of the GNU Lesser General Public Licence as published
00011  * by the Free Software Foundation. 
00012  * See the COPYING file for more information.
00013  *
00014  **********************************************************************
00015  *
00016  * Last port: operation/GeometryGraphOperation.java rev. 1.18 (JTS-1.10)
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> // for composition
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 // Forward declarations
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 { // geos.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 } // namespace geos.operation
00084 } // namespace geos
00085 
00086 #ifdef _MSC_VER
00087 #pragma warning(pop)
00088 #endif
00089 
00090 #endif