00001 /********************************************************************** 00002 * $Id: GeometryGraphOperation.h 1820 2006-09-06 16:54:23Z mloskot $ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2005-2006 Refractions Research Inc. 00008 * Copyright (C) 2001-2002 Vivid Solutions Inc. 00009 * 00010 * This is free software; you can redistribute and/or modify it under 00011 * the terms of the GNU Lesser General Public Licence as published 00012 * by the Free Software Foundation. 00013 * See the COPYING file for more information. 00014 * 00015 ********************************************************************** 00016 * 00017 * Last port: operation/GeometryGraphOperation.java rev. 1.14 (JTS-1.7) 00018 * 00019 **********************************************************************/ 00020 00021 #ifndef GEOS_OPERATION_GEOMETRYGRAPHOPERATION_H 00022 #define GEOS_OPERATION_GEOMETRYGRAPHOPERATION_H 00023 00024 #include <geos/algorithm/LineIntersector.h> // for composition 00025 00026 #include <vector> 00027 00028 // Forward declarations 00029 namespace geos { 00030 namespace geom { 00031 class Geometry; 00032 class PrecisionModel; 00033 } 00034 namespace geomgraph { 00035 class GeometryGraph; 00036 } 00037 } 00038 00039 00040 namespace geos { 00041 namespace operation { // geos.operation 00042 00044 class GeometryGraphOperation { 00045 00046 public: 00047 00048 GeometryGraphOperation(const geom::Geometry *g0, 00049 const geom::Geometry *g1); 00050 00051 GeometryGraphOperation(const geom::Geometry *g0); 00052 00053 virtual ~GeometryGraphOperation(); 00054 00055 const geom::Geometry* getArgGeometry(unsigned int i) const; 00056 00057 protected: 00058 00059 algorithm::LineIntersector li; 00060 00061 const geom::PrecisionModel* resultPrecisionModel; 00062 00066 std::vector<geomgraph::GeometryGraph*> arg; 00067 00068 void setComputationPrecision(const geom::PrecisionModel* pm); 00069 }; 00070 00071 } // namespace geos.operation 00072 } // namespace geos 00073 00074 #endif 00075 00076 /********************************************************************** 00077 * $Log$ 00078 * Revision 1.2 2006/04/03 15:54:33 strk 00079 * - getArgGeometry() parameter type changed from 'int' to 'unsigned int' 00080 * - Added port informations 00081 * - minor assertions checking 00082 * - minor cleanups 00083 * 00084 * Revision 1.1 2006/03/09 16:46:49 strk 00085 * geos::geom namespace definition, first pass at headers split 00086 * 00087 **********************************************************************/ 00088