?? dimension.h
字號:
/********************************************************************** * $Id: Dimension.h 1820 2006-09-06 16:54:23Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2006 Refractions Research Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * by the Free Software Foundation. * See the COPYING file for more information. * **********************************************************************/#ifndef GEOS_GEOM_DIMENSION_H#define GEOS_GEOM_DIMENSION_H#include <geos/inline.h>namespace geos {namespace geom { // geos::geom/// Constants representing the dimensions of a point, a curve and a surface.///// Also, constants representing the dimensions of the empty geometry and/// non-empty geometries, and a wildcard dimension meaning "any dimension".///class Dimension {public: enum DimensionType { /// Dimension value for any dimension (= {FALSE, TRUE}). DONTCARE=-3, /// Dimension value of non-empty geometries (= {P, L, A}). True=-2, /// Dimension value of the empty geometry (-1). False=-1, /// Dimension value of a point (0). P=0, /// Dimension value of a curve (1). L=1, /// Dimension value of a surface (2). A=2 }; //static const int P = 0; /// Dimension value of a point (0). //static const int L = 1; /// Dimension value of a curve (1). //static const int A = 2; /// Dimension value of a surface (2). //static const int False = -1; /// Dimension value of the empty geometry (-1). //static const int True = -2; /// Dimension value of non-empty geometries (= {P, L, A}). //static const int DONTCARE = -3; /// Dimension value for any dimension (= {FALSE, TRUE}). static char toDimensionSymbol(int dimensionValue); static int toDimensionValue(char dimensionSymbol);};} // namespace geos::geom} // namespace geos#ifdef GEOS_INLINE# include "geos/geom/Envelope.inl"#endif#endif // ndef GEOS_GEOM_DIMENSION_H/********************************************************************** * $Log$ * Revision 1.4 2006/05/04 15:49:39 strk * updated all Geometry::getDimension() methods to return Dimension::DimensionType (closes bug#93) * * Revision 1.3 2006/04/07 05:44:32 mloskot * Added name for anonymous enum in Dimension class (bug). Added missing new-line at the end of source files. Removed CR from line ends. * * Revision 1.2 2006/03/24 09:52:41 strk * USE_INLINE => GEOS_INLINE * * Revision 1.1 2006/03/09 16:46:49 strk * geos::geom namespace definition, first pass at headers split * **********************************************************************/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -