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

- File List

# GeometryGraphOperation.h

    00001 /**********************************************************************
    00002  * $Id: GeometryGraphOperation.h 2556 2009-06-06 22:22:28Z strk $
    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 // Forward declarations
    00030 namespace geos {
    00031         namespace algorithm {
    00032                 class BoundaryNodeRule;
    00033         }
    00034         namespace geom {
    00035                 class Geometry;
    00036                 class PrecisionModel;
    00037         }
    00038         namespace geomgraph {
    00039                 class GeometryGraph;
    00040         }
    00041 }
    00042
    00043
    00044 namespace geos {
    00045 namespace operation { // geos.operation
    00046
    00048 class GEOS_DLL GeometryGraphOperation {
    00049
    00050 public:
    00051
    00052         GeometryGraphOperation(const geom::Geometry *g0,
    00053                         const geom::Geometry *g1);
    00054
    00055         GeometryGraphOperation(const geom::Geometry *g0,
    00056                 const geom::Geometry *g1,
    00057                 const algorithm::BoundaryNodeRule& boundaryNodeRule);
    00058
    00059         GeometryGraphOperation(const geom::Geometry *g0);
    00060
    00061         virtual ~GeometryGraphOperation();
    00062
    00063         const geom::Geometry* getArgGeometry(unsigned int i) const;
    00064
    00065 protected:
    00066
    00067         algorithm::LineIntersector li;
    00068
    00069         const geom::PrecisionModel* resultPrecisionModel;
    00070
    00074         std::vector<geomgraph::GeometryGraph*> arg;
    00075
    00076         void setComputationPrecision(const geom::PrecisionModel* pm);
    00077 };
    00078
    00079 } // namespace geos.operation
    00080 } // namespace geos
    00081
    00082 #endif
    00083
    00084 /**********************************************************************
    00085  * $Log$
    00086  * Revision 1.2  2006/04/03 15:54:33  strk
    00087  * - getArgGeometry() parameter type changed from 'int' to 'unsigned int'
    00088  * - Added port informations
    00089  * - minor assertions checking
    00090  * - minor cleanups
    00091  *
    00092  * Revision 1.1  2006/03/09 16:46:49  strk
    00093  * geos::geom namespace definition, first pass at headers split
    00094  *
    00095  **********************************************************************/
    00096