MeVisLabToolboxReference
|
00001 // **InsertLicense** code 00002 //---------------------------------------------------------------------------------- 00004 00009 //---------------------------------------------------------------------------------- 00010 00011 #ifndef __SoUtilsSystem_H 00012 #define __SoUtilsSystem_H 00013 00014 #include <mlOpenGL.h> 00015 00016 // Include inventor wrapper 00017 #ifndef __XVInventorWrapper_H 00018 #include "XVInventorWrapper.h" 00019 #endif 00020 00021 00022 00025 #ifdef SOUTILS_EXPORTS 00026 #define SOUTILS_EXPORT ML_LIBRARY_EXPORT_ATTRIBUTE 00027 #else 00028 #define SOUTILS_EXPORT ML_LIBRARY_IMPORT_ATTRIBUTE 00029 #endif 00030 00031 00032 #ifdef WIN32 00033 00034 //-------------------------- WINDOWS SETTINGS 00035 //Unterdr"uckt die Warnung warning C4275: class 'SoCoordinate4' ist keine DLL-Schnittstelle 00036 //und wurde als Basisklasse fuer die DLL-Schnittstelle class '...' verwendet 00037 #pragma warning (disable : 4275) 00038 00039 // Disable "class 'SoType' benoetigt eine DLL-Schnittstelle, die von Clients von class '...2DArea' verwendet wird" 00040 #pragma warning (disable : 4251) 00041 00042 // Disable warning C4514: '/=' : Nichtreferenzierte Inline-Funktion wurde entfernt 00043 #pragma warning (disable : 4514) 00044 00045 // Disable warning C4244: 'argument' : Konvertierung von 'int' in 'short', moeglicher Datenverlust (at inventor node initialization) 00046 #pragma warning (disable : 4244) 00047 00048 // Disable warning C4786: '??0?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAE@IABV?$ba 00049 #pragma warning ( disable : 4786) 00050 // Include often used libraries automatically and disable its warnings 00051 // to be able to compile the ml in highest warning level. 00052 00054 #if _MSC_VER >= 1400 00055 #pragma warning(disable : 4996 ) 00056 #endif 00057 00058 00059 // Disable ugly warnings of windows headers. 00060 #pragma warning ( push, 3 ) 00061 #pragma warning ( disable : 4018) 00062 #include <windows.h> 00063 #include <string> 00064 #include <stdio.h> 00065 #include <stdlib.h> 00066 #include <iostream> 00067 #include <math.h> 00068 #include <FLOAT.H> 00069 #include <iomanip> 00070 #include <fstream> 00071 #include <string> 00072 #pragma warning ( pop ) 00073 00074 #elif defined(MACOS) 00075 00076 //-------------------------- SETTINGS FOR MACOS 00077 00078 #include <stdio.h> 00079 #include <stdlib.h> 00080 #include <iostream> 00081 #include <math.h> 00082 #include <ctype.h> 00083 #include <iomanip> 00084 #include <fstream> 00085 #include <string> 00086 00087 #elif defined(LINUX) 00088 00089 //-------------------------- LINUX SETTINGS 00090 00091 #include <stdio.h> 00092 #include <stdlib.h> 00093 #include <iostream> 00094 #include <math.h> 00095 #include <ctype.h> 00096 #include <iomanip> 00097 #include <fstream> 00098 #include <string> 00099 00100 #endif 00101 00102 //-------------------------- INCLUDES 00103 #include <OIVConfig.h> 00104 00105 #ifdef WIN32 00106 // Disable ugly warnings of windows headers. 00107 #pragma warning ( push, 3 ) 00108 #pragma warning ( disable : 4018) 00109 #include <XVEnterScope.h> 00110 #endif 00111 00112 #include <Inventor/SbBasic.h> 00113 #include <Inventor/SoTrace.h> 00114 #include <Inventor/elements/SoInt32Element.h> 00115 #include <Inventor/elements/SoViewportRegionElement.h> 00116 #include <Inventor/elements/SoOverrideElement.h> 00117 #include <Inventor/elements/SoReplacedElement.h> 00118 00119 // Open Inventor include goes here 00120 #include <Inventor/actions/SoCallbackAction.h> 00121 #include <Inventor/actions/SoGLRenderAction.h> 00122 #include <Inventor/fields/SoSFFloat.h> 00123 #include <Inventor/fields/SoSFBitMask.h> 00124 #include <Inventor/fields/SoSFBool.h> 00125 00126 00127 // No need to touch anything below 00128 #include "XVSubNode.h" 00129 #ifdef WIN32 00130 #include <XVLeaveScope.h> 00131 #endif 00132 00133 #ifdef WIN32 00134 #pragma warning ( pop ) 00135 #endif 00136 00137 #endif // _SOUTILS_SYSTEM_H