• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kalzium

global.h

Go to the documentation of this file.
00001 /**********************************************************************
00002   global.h - Setup some default defines.
00003 
00004   Copyright (C) 2007 by Donald Ephraim Curtis <donald-curtis@uiowa.edu>
00005 
00006   This file is part of the Avogadro molecular editor project.
00007   For more information, see <http://avogadro.sourceforge.net/>
00008 
00009   Avogadro is free software; you can redistribute it and/or modify 
00010   it under the terms of the GNU General Public License as published by 
00011   the Free Software Foundation; either version 2 of the License, or 
00012   (at your option) any later version.
00013 
00014   Avogadro 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 General Public License for more details.
00018 
00019   You should have received a copy of the GNU General Public License
00020   along with this program; if not, write to the Free Software
00021   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00022   02110-1301, USA.
00023  **********************************************************************/
00024 
00025 #ifndef __GLOBAL_H
00026 #define __GLOBAL_H
00027 
00028 #include <kdemacros.h>
00029 
00030 #ifdef WIN32
00031 # ifndef NOMINMAX
00032 #  define NOMINMAX 1
00033 # endif
00034 #endif
00035 
00036 #ifndef A_EXPORT
00037 # if defined(MAKE_AVOGADRO_KALZIUM_LIB)
00038    /* We are building this library */
00039 #  define A_EXPORT KDE_EXPORT
00040 # else
00041    /* We are using this library */
00042 #  define A_EXPORT KDE_IMPORT
00043 # endif
00044 #endif
00045 
00046 #ifndef GL_RESCALE_NORMAL
00047 # define GL_RESCALE_NORMAL 0x803A
00048 #endif
00049 
00050 #ifndef GL_COLOR_SUM_EXT
00051 # define GL_COLOR_SUM_EXT 0x8458
00052 #endif
00053 
00054 #ifndef GL_LIGHT_MODEL_COLOR_CONTROL_EXT
00055 # define GL_LIGHT_MODEL_COLOR_CONTROL_EXT 0x81F8
00056 #endif
00057 
00058 #ifndef GL_SEPARATE_SPECULAR_COLOR_EXT
00059 # define GL_SEPARATE_SPECULAR_COLOR_EXT 0x81FA
00060 #endif
00061 
00062 #ifndef GL_TEXTURE_RECTANGLE_ARB
00063 # define GL_TEXTURE_RECTANGLE_ARB 0x84F5
00064 #endif
00065 
00066 const double   ROTATION_SPEED                        = 0.005;
00067 const double   ZOOM_SPEED                            = 0.02;
00068 const double   MOUSE_WHEEL_SPEED                     = 0.1;
00069 const double   CAMERA_MOL_RADIUS_MARGIN              = 10.0;
00070 const double   CAMERA_NEAR_DISTANCE                  = 2.0;
00071 const int      SEL_BUF_MAX_SIZE                      = 262144;
00072 const int      SEL_BUF_MARGIN                        = 128;
00073 const int      SEL_BOX_HALF_SIZE                     = 4;
00074 const int      SEL_BOX_SIZE                          = 2 * SEL_BOX_HALF_SIZE + 1;
00075 const double   SEL_ATOM_EXTRA_RADIUS                 = 0.18;
00076 const int      PAINTER_GLOBAL_QUALITY_SETTINGS       = 3;
00077 const int      DEFAULT_GLOBAL_QUALITY_SETTING        = PAINTER_GLOBAL_QUALITY_SETTINGS - 1;
00078 const int      PAINTER_DETAIL_LEVELS                 = 10;
00079 const int      PAINTER_SPHERES_LEVELS_ARRAY[3][10]
00080                  = { {0, 0, 1, 1, 2, 2, 3, 3, 4, 4} ,
00081                      {0, 1, 2, 3, 4, 4, 5, 5, 6, 6} ,
00082                      {1, 2, 3, 4, 5, 6, 7, 8, 9, 9} };
00083 const double   PAINTER_SPHERES_LIMIT_MIN_LEVEL       = 0.005;
00084 const double   PAINTER_SPHERES_LIMIT_MAX_LEVEL       = 0.15;
00085 
00086 const int      PAINTER_CYLINDERS_LEVELS_ARRAY[3][10]
00087                  = { {0, 3, 5, 5, 8, 8, 12, 12, 16, 16} ,
00088                      {0, 4, 6, 9, 12, 12, 16, 16, 20, 20},
00089                      {0, 4, 6, 10, 14, 18, 22, 26, 32, 40} };
00090 const double   PAINTER_CYLINDERS_LIMIT_MIN_LEVEL     = 0.001;
00091 const double   PAINTER_CYLINDERS_LIMIT_MAX_LEVEL     = 0.03;
00092 
00093 #endif  // __GLOBAL_H

kalzium

Skip menu "kalzium"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal