- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# Dimension.h

    00001 /**********************************************************************
    00002  * $Id: Dimension.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_GEOM_DIMENSION_H
    00017 #define GEOS_GEOM_DIMENSION_H
    00018
    00019 #include <geos/inline.h>
    00020
    00021 namespace geos {
    00022 namespace geom { // geos::geom
    00023
    00025 //
    00029 class Dimension {
    00030 public:
    00031         enum DimensionType {
    00033                 DONTCARE=-3,
    00034
    00036                 True=-2,
    00037
    00039                 False=-1,
    00040
    00042                 P=0,
    00043
    00045                 L=1,
    00046
    00048                 A=2
    00049         };
    00050
    00051         //static const int P = 0;                       /// Dimension value of a point (0).
    00052         //static const int L = 1;                       /// Dimension value of a curve (1).
    00053         //static const int A = 2;                       /// Dimension value of a surface (2).
    00054         //static const int False = -1;  /// Dimension value of the empty geometry (-1).
    00055         //static const int True = -2;           /// Dimension value of non-empty geometries (= {P, L, A}).
    00056         //static const int DONTCARE = -3;       /// Dimension value for any dimension (= {FALSE, TRUE}).
    00057         static char toDimensionSymbol(int dimensionValue);
    00058
    00059         static int toDimensionValue(char dimensionSymbol);
    00060
    00061 };
    00062
    00063 } // namespace geos::geom
    00064 } // namespace geos
    00065
    00066 #ifdef GEOS_INLINE
    00067 # include "geos/geom/Envelope.inl"
    00068 #endif
    00069
    00070 #endif // ndef GEOS_GEOM_DIMENSION_H
    00071
    00072 /**********************************************************************
    00073  * $Log$
    00074  * Revision 1.4  2006/05/04 15:49:39  strk
    00075  * updated all Geometry::getDimension() methods to return Dimension::DimensionType (closes bug#93)
    00076  *
    00077  * Revision 1.3  2006/04/07 05:44:32  mloskot
    00078  * Added name for anonymous enum in Dimension class (bug). Added missing new-line at the end of source files. Removed CR from line ends.
    00079  *
    00080  * Revision 1.2  2006/03/24 09:52:41  strk
    00081  * USE_INLINE => GEOS_INLINE
    00082  *
    00083  * Revision 1.1  2006/03/09 16:46:49  strk
    00084  * geos::geom namespace definition, first pass at headers split
    00085  *
    00086  **********************************************************************/