GEOS: Dimension.h Source File

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

- File List

# Dimension.h

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