00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _INVENTOR_PORT_H
00024 #define _INVENTOR_PORT_H
00025
00026 #include <SbTypes.h>
00027
00028
00029 #define __IvStaticImport
00030
00031 #ifdef __GNUC__
00032 #define OIV_FUNCTION __PRETTY_FUNCTION__
00033 #else
00034 #define OIV_FUNCTION __FUNCTION__
00035 #endif
00036
00037 #ifdef _WIN32
00038
00039
00040 # pragma warning( disable: 4800)
00041 # pragma warning( disable: 4251)
00042
00043 #include <Inventor/Win/SoWinBeginStrict.h>
00044
00045 # include <windows.h>
00046 # include <winsock.h>
00047 # include <math.h>
00048 # include <string.h>
00049 #ifdef LIBRARYBUILD
00050
00051 # define strcasecmp _stricmp
00052 #endif
00053
00054 # ifdef _WIN64
00055 # define _USE_MATH_DEFINES
00056 # endif
00057 # include <math.h>
00058
00059 #ifndef _USE_MATH_DEFINES
00060 #ifndef M_E
00061 # define M_E 2.7182818284590452354
00062 #endif
00063 #ifndef M_LOG2E
00064 # define M_LOG2E 1.4426950408889634074
00065 #endif
00066 #ifndef M_LOG10E
00067 # define M_LOG10E 0.43429448190325182765
00068 #endif
00069 #ifndef M_LN2
00070 # define M_LN2 0.69314718055994530942
00071 #endif
00072 #ifndef M_LN10
00073 # define M_LN10 2.30258509299404568402
00074 #endif
00075 #ifndef M_PI
00076 # define M_PI 3.14159265358979323846
00077 #endif
00078 #ifndef M_PI_2
00079 # define M_PI_2 1.57079632679489661923
00080 #endif
00081 #ifndef M_PI_4
00082 # define M_PI_4 0.78539816339744830962
00083 #endif
00084 #ifndef M_1_PI
00085 # define M_1_PI 0.31830988618379067154
00086 #endif
00087 #ifndef M_2_PI
00088 # define M_2_PI 0.63661977236758134308
00089 #endif
00090 #ifndef M_2_SQRTPI
00091 # define M_2_SQRTPI 1.12837916709551257390
00092 #endif
00093 #ifndef M_SQRT2
00094 # define M_SQRT2 1.41421356237309504880
00095 #endif
00096 #ifndef M_SQRT1_2
00097 # define M_SQRT1_2 0.70710678118654752440
00098 #endif
00099 #ifndef MAXFLOAT
00100 # define MAXFLOAT ((float)3.40282346638528860e+38)
00101 #endif
00102 #endif
00103
00104
00105 #if defined(_MSC_VER) && (_MSC_VER < 1300)
00106 # define __FUNCTION__ "NO__FUNCTION__FOR_VC6"
00107 #endif
00108
00109 #ifdef bcopy
00110 # undef bcopy
00111 #endif
00112 #define bcopy(from,to,len) memcpy((to),(from),(len))
00113
00114 #include <SoVersion.h>
00115
00116 #define VC_DLL_EXPORT __declspec(dllexport)
00117 #define VC_DLL_IMPORT __declspec(dllimport)
00118
00119 #include <Inventor/Win/SoWinEndStrict.h>
00120
00121 #include <Inventor/SoInventorImageLibName.h>
00122
00123
00124 #if defined(DialogVizXt_EXPORTS) || defined(DialogVizWin_EXPORTS) || defined(DialogVizQt_EXPORTS)
00125 # define VC_DLL_EXPORT
00126 #else
00127 # define VC_DLL_IMPORT
00128 #endif
00129
00130
00131 #ifdef DialogVizQt_EXPORTS
00132 # define VC_DLL_EXPORT
00133 #else
00134 # define VC_DLL_IMPORT
00135 #endif
00136
00137
00138 #ifdef HardCopy_EXPORTS
00139 # define VC_DLL_EXPORT
00140 #else
00141 # define VC_DLL_IMPORT
00142 #endif
00143
00144
00145 #ifdef HardCopyWin_EXPORTS
00146 # define VC_DLL_EXPORT
00147 #else
00148 # define VC_DLL_IMPORT
00149 #endif
00150
00151
00152 #ifdef IvTuneExtenderAPI_EXPORTS
00153 # define VC_DLL_EXPORT
00154 #else
00155 # define VC_DLL_IMPORT
00156 #endif
00157
00158
00159 #ifdef MeshViz_EXPORTS
00160 # define VC_DLL_EXPORT
00161 #else
00162 # define VC_DLL_IMPORT
00163 #endif
00164
00165
00166 #ifdef MeshVizWin_EXPORTS
00167 # define VC_DLL_EXPORT
00168 #else
00169 # define VC_DLL_IMPORT
00170 #endif
00171
00172
00173 #ifdef Inventor_EXPORTS
00174 # define VC_DLL_EXPORT
00175 #else
00176 # define VC_DLL_IMPORT
00177 #endif
00178
00179
00180 #ifdef InventorBase_EXPORTS
00181 # define VC_DLL_EXPORT
00182 #else
00183 # define VC_DLL_IMPORT
00184 #endif
00185
00186
00187 #ifdef InventorGL_EXPORTS
00188 # define VC_DLL_EXPORT
00189 #else
00190 # define VC_DLL_IMPORT
00191 #endif
00192
00193
00194 #ifdef InventorImage_EXPORTS
00195 # define VC_DLL_EXPORT
00196 #else
00197 # define VC_DLL_IMPORT
00198 #endif
00199
00200
00201 #ifdef InventorWin_EXPORTS
00202 # define VC_DLL_EXPORT
00203 #else
00204 # define VC_DLL_IMPORT
00205 #endif
00206 #define
00207
00208
00209 #ifdef InventorQt_EXPORTS
00210 # define VC_DLL_EXPORT
00211 #else
00212 # define VC_DLL_IMPORT
00213 #endif
00214
00215
00216 #ifdef InventorWx_EXPORTS
00217 # define VC_DLL_EXPORT
00218 #else
00219 # define VC_DLL_IMPORT
00220 #endif
00221
00222
00223 #ifdef InventorGui_EXPORTS
00224 # define VC_DLL_EXPORT
00225 #else
00226 # define VC_DLL_IMPORT
00227 #endif
00228
00229
00230 #ifdef IvDLCSG_EXPORTS
00231 # define IVDLCSG_API VC_DLL_EXPORT
00232 #else
00233 # define IVDLCSG_API VC_DLL_IMPORT
00234 #endif
00235
00236
00237 #ifdef IvTune_EXPORTS
00238 # define VC_DLL_EXPORT
00239 #else
00240 # define VC_DLL_IMPORT
00241 #endif
00242
00243
00244 #ifdef IvTunePlg_EXPORTS
00245 # define IVTUNEPLG_API VC_DLL_EXPORT
00246 #else
00247 # define IVTUNEPLG_API VC_DLL_IMPORT
00248 #endif
00249
00250
00251 #ifdef RemoteVizServices_EXPORTS
00252 # define RENDERSERVICE_API VC_DLL_EXPORT
00253 #else
00254 # define RENDERSERVICE_API VC_DLL_IMPORT
00255 #endif
00256
00257
00258 #ifdef RemoteVizClient_EXPORTS
00259 # define RVCLIENT_API VC_DLL_EXPORT
00260 #else
00261 # define RVCLIENT_API VC_DLL_IMPORT
00262 #endif
00263
00264
00265 #ifdef ScaleVizRemote_EXPORTS
00266 # define SCALEVIZREMOTE_API VC_DLL_EXPORT
00267 #else
00268 # define SCALEVIZREMOTE_API VC_DLL_IMPORT
00269 #endif
00270
00271
00272 #ifdef ScaleViz_EXPORTS
00273 # define VC_DLL_EXPORT
00274 #else
00275 # define VC_DLL_IMPORT
00276 #endif
00277
00278
00279 #ifdef VolumeViz_EXPORTS
00280 # define VC_DLL_EXPORT
00281 #else
00282 # define VC_DLL_IMPORT
00283 #endif
00284
00285
00286 #ifdef LDM_EXPORTS
00287 # define VC_DLL_EXPORT
00288 #else
00289 # define VC_DLL_IMPORT
00290 #endif
00291
00292
00293 #ifdef ViewerComponents_EXPORTS
00294 # define VIEWERCOMPONENTS_API VC_DLL_EXPORT
00295 #else
00296 # define VIEWERCOMPONENTS_API VC_DLL_IMPORT
00297 #endif
00298
00299
00300 #ifdef WinViewerComponents_EXPORTS
00301 # define WINVIEWERCOMPONENTS_API VC_DLL_EXPORT
00302 #else
00303 # define WINVIEWERCOMPONENTS_API VC_DLL_IMPORT
00304 #endif
00305
00306
00307 #ifdef MFCViewerComponents_EXPORTS
00308 # define MFCVIEWERCOMPONENTS_API VC_DLL_EXPORT
00309 #else
00310 # define MFCVIEWERCOMPONENTS_API VC_DLL_IMPORT
00311 #endif
00312
00313
00314 #ifdef QtViewerComponents_EXPORTS
00315 # define QTVIEWERCOMPONENTS_API VC_DLL_EXPORT
00316 #else
00317 # define QTVIEWERCOMPONENTS_API VC_DLL_IMPORT
00318 #endif
00319
00320
00321 #ifdef InventorMedical_EXPORTS
00322 # define INVENTORMEDICAL_API VC_DLL_EXPORT
00323 #else
00324 # define INVENTORMEDICAL_API VC_DLL_IMPORT
00325 #endif
00326
00327 #ifdef OIV_ENABLE_LEAKDETECTOR
00328 #include <vld.h>
00329 #endif
00330
00331 #else
00332
00333 #if __GNUC__ > 3
00334 #define GCC_DLLEXPORT __attribute__ ((visibility("default")))
00335 #else
00336 #define GCC_DLLEXPORT
00337 #endif
00338
00339
00340 #define VC_DLL_IMPORT GCC_DLLEXPORT
00341 #define VC_DLL_EXPORT GCC_DLLEXPORT
00342
00343 # include <strings.h>
00344
00345 # ifndef APIENTRY
00346 # define APIENTRY
00347 # endif
00348 # ifndef CALLBACK
00349 # define CALLBACK
00350 # endif
00351 # ifndef WINGDIAPI
00352 # define WINGDIAPI
00353 # endif
00354 # ifndef HDC
00355 # define HDC void *
00356 # endif
00357 # if defined(_HP_NAMESPACE_STD)
00358 # include <limits>
00359 # endif
00360 # ifndef UINT
00361 typedef unsigned int UINT;
00362 # endif
00363
00364 # define GCC_DLLEXPORT
00365 # define GCC_DLLEXPORT
00366 # define GCC_DLLEXPORT
00367 # define GCC_DLLEXPORT
00368 # define GCC_DLLEXPORT
00369 # define GCC_DLLEXPORT
00370 # define GCC_DLLEXPORT
00371 # define GCC_DLLEXPORT
00372 # define GCC_DLLEXPORT
00373 # define GCC_DLLEXPORT
00374 # define GCC_DLLEXPORT
00375 # define GCC_DLLEXPORT
00376 # define GCC_DLLEXPORT
00377 # define GCC_DLLEXPORT
00378 # define GCC_DLLEXPORT
00379 # define IVDLCSG_API GCC_DLLEXPORT
00380 # define GCC_DLLEXPORT
00381 # define GCC_DLLEXPORT
00382 # define IVTUNEPLG_API GCC_DLLEXPORT
00383 # define RENDERSERVICE_API GCC_DLLEXPORT
00384 # define RVCLIENT_API GCC_DLLEXPORT
00385 # define GCC_DLLEXPORT
00386 # define SCALEVIZREMOTE_API GCC_DLLEXPORT
00387 # define GCC_DLLEXPORT
00388 # define GCC_DLLEXPORT
00389 # define VIEWERCOMPONENTS_API GCC_DLLEXPORT
00390 # define WINVIEWERCOMPONENTS_API GCC_DLLEXPORT
00391 # define MFCVIEWERCOMPONENTS_API GCC_DLLEXPORT
00392 # define QTVIEWERCOMPONENTS_API GCC_DLLEXPORT
00393 # define INVENTORMEDICAL_API GCC_DLLEXPORT
00394
00395 # define SO_DLL_SUFFIX ""
00396 # define SO_LIB_SUFFIX ""
00397
00398 #endif
00399
00400 #ifndef __APPLE__
00401 typedef void* WindowPtr;
00402 #endif
00403
00404 #endif
00405
00406
00407