• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List

GeometryLocation.h

00001 /**********************************************************************
00002  * $Id: GeometryLocation.h 2561 2009-06-08 10:37:11Z strk $
00003  *
00004  * GEOS - Geometry Engine Open Source
00005  * http://geos.refractions.net
00006  *
00007  * Copyright (C) 2006 Refractions Research 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/distance/GeometryLocation.java rev. 1.7 (JTS-1.10)
00017  *
00018  **********************************************************************/
00019 
00020 #ifndef GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
00021 #define GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
00022 
00023 #include <geos/export.h>
00024 
00025 #include <geos/geom/Coordinate.h> // for composition
00026 
00027 // Forward declarations
00028 namespace geos {
00029         namespace geom { 
00030                 class Geometry;
00031         }
00032 }
00033 
00034 
00035 namespace geos {
00036 namespace operation { // geos::operation
00037 namespace distance { // geos::operation::distance
00038 
00039 
00051 class GEOS_DLL GeometryLocation {
00052 private:
00053         const geom::Geometry *component;
00054         int segIndex;
00055         geom::Coordinate pt;
00056 public:  
00064         static const int INSIDE_AREA = -1;
00065 
00075         GeometryLocation(const geom::Geometry *component,
00076                         int segIndex, const geom::Coordinate &pt);
00077 
00085         GeometryLocation(const geom::Geometry *component,
00086                               const geom::Coordinate &pt);
00087 
00091         const geom::Geometry* getGeometryComponent();
00092 
00101         int getSegmentIndex();
00102 
00106         geom::Coordinate& getCoordinate();
00107 
00112         bool isInsideArea();
00113 };
00114 
00115 } // namespace geos::operation::distance
00116 } // namespace geos::operation
00117 } // namespace geos
00118 
00119 #endif // GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
00120 
00121 /**********************************************************************
00122  * $Log$
00123  * Revision 1.1  2006/03/21 17:55:01  strk
00124  * opDistance.h header split
00125  *
00126  **********************************************************************/
00127 

Generated on Thu Jul 22 2010 for GEOS by  doxygen 1.7.1