GEOS
3.3.2
|
00001 /********************************************************************** 00002 * $Id$ 00003 * 00004 * GEOS - Geometry Engine Open Source 00005 * http://geos.refractions.net 00006 * 00007 * Copyright (C) 2011 Sandro Santilli <strk@keybit.net 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/union/PointGeometryUnion.java r320 (JTS-1.12) 00017 * 00018 **********************************************************************/ 00019 00020 #ifndef GEOS_OP_UNION_POINTGEOMETRYUNION_H 00021 #define GEOS_OP_UNION_POINTGEOMETRYUNION_H 00022 #include <geos/export.h> 00023 00024 #include <vector> 00025 #include <algorithm> 00026 00027 // Forward declarations 00028 namespace geos { 00029 namespace geom { 00030 class GeometryFactory; 00031 class Geometry; 00032 class Puntal; 00033 } 00034 } 00035 00036 namespace geos { 00037 namespace operation { // geos::operation 00038 namespace geounion { // geos::operation::geounion 00039 00048 class GEOS_DLL PointGeometryUnion 00049 { 00050 public: 00051 00052 static std::auto_ptr<geom::Geometry> Union( 00053 const geom::Puntal& pointGeom, 00054 const geom::Geometry& otherGeom); 00055 00056 00057 PointGeometryUnion(const geom::Puntal& pointGeom, 00058 const geom::Geometry& otherGeom); 00059 00060 std::auto_ptr<geom::Geometry> Union() const; 00061 00062 private: 00063 const geom::Geometry& pointGeom; 00064 const geom::Geometry& otherGeom; 00065 const geom::GeometryFactory* geomFact; 00066 00067 // Declared as non-copyable 00068 PointGeometryUnion(const PointGeometryUnion& other); 00069 PointGeometryUnion& operator=(const PointGeometryUnion& rhs); 00070 }; 00071 00072 } // namespace geos::operation::union 00073 } // namespace geos::operation 00074 } // namespace geos 00075 00076 #endif