GEOS
3.4.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2005-2006 Refractions Research Inc. 00007 * Copyright (C) 2001-2002 Vivid Solutions 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: geomgraph/Position.java rev. 1.4 (JTS-1.10) 00017 * 00018 **********************************************************************/ 00019 00020 00021 #ifndef GEOS_GEOMGRAPH_POSITION_H 00022 #define GEOS_GEOMGRAPH_POSITION_H 00023 00024 #include <geos/export.h> 00025 #include <map> 00026 #include <vector> 00027 #include <string> 00028 00029 #include <geos/inline.h> 00030 00031 00032 namespace geos { 00033 namespace geomgraph { // geos.geomgraph 00034 00035 class GEOS_DLL Position { 00036 public: 00037 enum { 00038 /* 00039 * An indicator that a Location is <i>on</i> 00040 * a GraphComponent 00041 */ 00042 ON=0, 00043 00044 /* 00045 * An indicator that a Location is to the 00046 * <i>left</i> of a GraphComponent 00047 */ 00048 LEFT, 00049 00050 /* 00051 * An indicator that a Location is to the 00052 * <i>right</i> of a GraphComponent 00053 */ 00054 RIGHT 00055 }; 00056 00061 static int opposite(int position); 00062 }; 00063 00064 } // namespace geos.geomgraph 00065 } // namespace geos 00066 00067 #endif // ifndef GEOS_GEOMGRAPH_POSITION_H 00068