Position.h

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

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