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