00001 /********************************************************************** 00002 * $Id: Position.h 2557 2009-06-08 09:30:55Z 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: geomgraph/Position.java rev. 1.4 (JTS-1.10) 00018 * 00019 **********************************************************************/ 00020 00021 00022 #ifndef GEOS_GEOMGRAPH_POSITION_H 00023 #define GEOS_GEOMGRAPH_POSITION_H 00024 00025 #include <geos/export.h> 00026 #include <map> 00027 #include <vector> 00028 #include <string> 00029 00030 #include <geos/inline.h> 00031 00032 00033 namespace geos { 00034 namespace geomgraph { // geos.geomgraph 00035 00036 class GEOS_DLL Position { 00037 public: 00038 enum { 00039 /* 00040 * An indicator that a Location is <i>on</i> 00041 * a GraphComponent 00042 */ 00043 ON=0, 00044 00045 /* 00046 * An indicator that a Location is to the 00047 * <i>left</i> of a GraphComponent 00048 */ 00049 LEFT, 00050 00051 /* 00052 * An indicator that a Location is to the 00053 * <i>right</i> of a GraphComponent 00054 */ 00055 RIGHT 00056 }; 00057 00062 static int opposite(int position); 00063 }; 00064 00065 } // namespace geos.geomgraph 00066 } // namespace geos 00067 00068 //#ifdef GEOS_INLINE 00069 //# include "geos/geomgraph/Position.inl" 00070 //#endif 00071 00072 #endif // ifndef GEOS_GEOMGRAPH_POSITION_H 00073 00074 /********************************************************************** 00075 * $Log$ 00076 * Revision 1.2 2006/03/24 09:52:41 strk 00077 * USE_INLINE => GEOS_INLINE 00078 * 00079 * Revision 1.1 2006/03/09 16:46:49 strk 00080 * geos::geom namespace definition, first pass at headers split 00081 * 00082 **********************************************************************/ 00083