GeometryLocation.h

00001 /**********************************************************************
00002  * $Id: GeometryLocation.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) 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 #ifndef GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
00017 #define GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
00018 
00019 #include <geos/geom/Coordinate.h> // for composition
00020 
00021 // Forward declarations
00022 namespace geos {
00023         namespace geom { 
00024                 class Geometry;
00025         }
00026 }
00027 
00028 
00029 namespace geos {
00030 namespace operation { // geos::operation
00031 namespace distance { // geos::operation::distance
00032 
00033 
00044 class GeometryLocation {
00045 private:
00046         const geom::Geometry *component;
00047         int segIndex;
00048         geom::Coordinate pt;
00049 public:  
00054         static const int INSIDE_AREA = -1;
00055 
00060         GeometryLocation(const geom::Geometry *newComponent,
00061                         int newSegIndex, const geom::Coordinate &newPt);
00062 
00066         GeometryLocation(const geom::Geometry *newComponent, const geom::Coordinate &newPt);
00067 
00071         const geom::Geometry* getGeometryComponent();
00072 
00079         int getSegmentIndex();
00080 
00084         geom::Coordinate& getCoordinate();
00085 
00089         bool isInsideArea();
00090 };
00091 
00092 } // namespace geos::operation::distance
00093 } // namespace geos::operation
00094 } // namespace geos
00095 
00096 #endif // GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
00097 
00098 /**********************************************************************
00099  * $Log$
00100  * Revision 1.1  2006/03/21 17:55:01  strk
00101  * opDistance.h header split
00102  *
00103  **********************************************************************/
00104 

Generated on Fri Mar 27 04:52:45 2009 for GEOS by  doxygen 1.5.4