00001 #pragma ident "$Id: GraphicsConstants.hpp 1644 2009-01-27 19:26:14Z ckiesch $" 00002 00004 00005 //============================================================================ 00006 // 00007 // This file is part of GPSTk, the GPS Toolkit. 00008 // 00009 // The GPSTk is free software; you can redistribute it and/or modify 00010 // it under the terms of the GNU Lesser General Public License as published 00011 // by the Free Software Foundation; either version 2.1 of the License, or 00012 // any later version. 00013 // 00014 // The GPSTk is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU Lesser General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU Lesser General Public 00020 // License along with GPSTk; if not, write to the Free Software Foundation, 00021 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 // 00023 // Copyright 2004, The University of Texas at Austin 00024 // 00025 //============================================================================ 00026 00027 00028 #ifndef VDRAW_GRAPHIC_CONSTANTS_H 00029 #define VDRAW_GRAPHIC_CONSTANTS_H 00030 00031 00032 namespace vdraw 00033 { 00036 00038 extern const double PI; 00040 extern const double HALF_PI; 00042 extern const double TWO_PI; 00044 extern const double DEGREES_TO_RADIANS; 00046 extern const double RADIANS_TO_DEGREES; 00047 00049 extern const double PTS_PER_INCH; 00050 00052 extern const double PTS_PER_CM; 00053 00055 extern const double US_LETTER_WIDTH_PTS; 00057 extern const double US_LETTER_HEIGHT_PTS; 00058 00059 // For the rest of the world... there's ISO 216-series sizes 00061 extern const double A3_WIDTH_PTS; 00063 extern const double A3_HEIGHT_PTS; 00064 00065 // A4 and US customary letter are of comparable size 00067 extern const double A4_WIDTH_PTS; 00069 extern const double A4_HEIGHT_PTS; 00070 00072 extern const double A5_WIDTH_PTS; 00074 extern const double A5_HEIGHT_PTS; 00075 00077 00078 } // namespace vdraw 00079 00080 #endif //VDRAW_GRAPHIC_CONSTANTS_H 00081
1.3.9.1