GEOS: GeometryGraphOperation.h Source File

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

# GeometryGraphOperation.h

    00001 /**********************************************************************
    00002  * $Id: GeometryGraphOperation.h 2958 2010-03-29 11:29:40Z 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.18 (JTS-1.10)
    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> // for composition
    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 // Forward declarations
    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 { // geos.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 } // namespace geos.operation
    00085 } // namespace geos
    00086
    00087 #ifdef _MSC_VER
    00088 #pragma warning(pop)
    00089 #endif
    00090
    00091 #endif
    00092
    00093 /**********************************************************************
    00094  * $Log$
    00095  * Revision 1.2  2006/04/03 15:54:33  strk
    00096  * - getArgGeometry() parameter type changed from 'int' to 'unsigned int'
    00097  * - Added port informations
    00098  * - minor assertions checking
    00099  * - minor cleanups
    00100  *
    00101  * Revision 1.1  2006/03/09 16:46:49  strk
    00102  * geos::geom namespace definition, first pass at headers split
    00103  *
    00104  **********************************************************************/
    00105