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_