Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Tools/PotentialFields/PfieldConfig.h

Go to the documentation of this file.
00001 /**
00002 * @file PfieldConfig.h
00003 * 
00004 * This file contains global definitions for using the potential fields on
00005 * different platforms
00006 *
00007 * @author <a href="mailto:timlaue@informatik.uni-bremen.de">Tim Laue</a>
00008 */
00009 
00010 
00011 #ifndef PFIELD_CONFIG_H_
00012 #define PFIELD_CONFIG_H_
00013 
00014 
00015 //A global define, please change for your use
00016 #define POTENTIALFIELDS_FOR_GT2004_
00017 
00018 
00019 //Disable MS Visual C++ warnings about limited debugging information on STL containers
00020 #ifdef _MSC_VER
00021 #pragma warning (disable: 4786)
00022 #endif
00023 
00024 
00025 //Include some platform specific headers to get access to global functions and constants
00026 #ifdef POTENTIALFIELDS_FOR_GT2004_
00027 #include "Platform/SystemCall.h"
00028 #include "Tools/Math/Common.h"
00029 #else
00030 /** constant for a half circle*/
00031 const double pi = 3.1415926535897932384626433832795;
00032 /** constant for a full circle*/
00033 const double pi2 = 2.0*3.1415926535897932384626433832795;
00034 /** constant for three quater circle*/
00035 const double pi3_2 = 1.5*3.1415926535897932384626433832795;
00036 /** constant for a quarter circle*/
00037 const double pi_2 = 0.5*3.1415926535897932384626433832795;
00038 /** constant for a 1 degree*/
00039 const double pi_180 = 3.1415926535897932384626433832795/180;
00040 /** constant for a 1/8 circle*/
00041 const double pi_4 = 3.1415926535897932384626433832795*0.25;
00042 /** constant for a 3/8 circle*/
00043 const double pi3_4 = 3.1415926535897932384626433832795*0.75;
00044 #endif //POTENTIALFIELDS_FOR_GT2004_
00045 
00046 
00047 /** Time function*/
00048 static unsigned long getSystemTime()
00049 { 
00050 #ifdef POTENTIALFIELDS_FOR_GT2004_
00051   return SystemCall::getCurrentSystemTime();
00052 #else
00053   return 0;
00054 #endif //POTENTIALFIELDS_FOR_GT2004_
00055 }
00056 
00057 
00058 #endif  //PFIELD_CONFIG_H_
00059 
00060 
00061 
00062 /*
00063 * $Log: PfieldConfig.h,v $
00064 * Revision 1.1.1.1  2004/05/22 17:37:31  cvsadm
00065 * created new repository GT2004_WM
00066 *
00067 * Revision 1.1  2004/01/20 15:42:19  tim
00068 * Added potential fields implementation
00069 *
00070 * Revision 1.3  2003/06/13 14:27:58  tim
00071 * added random generator and tangential fields
00072 *
00073 * Revision 1.2  2003/06/09 20:00:04  tim
00074 * Changed potentialfield architecture
00075 *
00076 * Revision 1.1  2003/03/23 17:51:27  tim
00077 * Added potentialfields
00078 *
00079 */

Generated on Thu Sep 23 19:57:41 2004 for GT2004 by doxygen 1.3.6