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 _WIN32
00032
00033
00034 # pragma warning( disable: 4800)
00035 # pragma warning( disable: 4251)
00036
00037 #include <Inventor/Win/SoWinBeginStrict.h>
00038
00039 # include <windows.h>
00040 # include <winsock.h>
00041 # include <math.h>
00042 # include <string.h>
00043 #ifdef LIBRARYBUILD
00044
00045 # define strcasecmp _stricmp
00046 #endif
00047
00048 # ifdef _WIN64
00049 # define _USE_MATH_DEFINES
00050 # endif
00051 # include <math.h>
00052
00053 #ifndef _USE_MATH_DEFINES
00054 #ifndef M_E
00055 # define M_E 2.7182818284590452354
00056 #endif
00057 #ifndef M_LOG2E
00058 # define M_LOG2E 1.4426950408889634074
00059 #endif
00060 #ifndef M_LOG10E
00061 # define M_LOG10E 0.43429448190325182765
00062 #endif
00063 #ifndef M_LN2
00064 # define M_LN2 0.69314718055994530942
00065 #endif
00066 #ifndef M_LN10
00067 # define M_LN10 2.30258509299404568402
00068 #endif
00069 #ifndef M_PI
00070 # define M_PI 3.14159265358979323846
00071 #endif
00072 #ifndef M_PI_2
00073 # define M_PI_2 1.57079632679489661923
00074 #endif
00075 #ifndef M_PI_4
00076 # define M_PI_4 0.78539816339744830962
00077 #endif
00078 #ifndef M_1_PI
00079 # define M_1_PI 0.31830988618379067154
00080 #endif
00081 #ifndef M_2_PI
00082 # define M_2_PI 0.63661977236758134308
00083 #endif
00084 #ifndef M_2_SQRTPI
00085 # define M_2_SQRTPI 1.12837916709551257390
00086 #endif
00087 #ifndef M_SQRT2
00088 # define M_SQRT2 1.41421356237309504880
00089 #endif
00090 #ifndef M_SQRT1_2
00091 # define M_SQRT1_2 0.70710678118654752440
00092 #endif
00093 #ifndef MAXFLOAT
00094 # define MAXFLOAT ((float)3.40282346638528860e+38)
00095 #endif
00096 #endif
00097
00098
00099 #if defined(_MSC_VER) && (_MSC_VER < 1300)
00100 # define __FUNCTION__ "NO__FUNCTION__FOR_VC6"
00101 #endif
00102
00103 #ifdef bcopy
00104 # undef bcopy
00105 #endif
00106 #define bcopy(from,to,len) memcpy((to),(from),(len))
00107
00108 #include <SoVersion.h>
00109
00110 #if defined(_DEBUG)
00111 # define __INVDLL "InventorD.dll"
00112 # define __INVLIB "InventorD.lib"
00113 #else
00114 # define __INVDLL "Inventor.dll"
00115 # define __INVLIB "Inventor.lib"
00116 #endif
00117
00118 #define VC_DLL_EXPORT __declspec(dllexport)
00119 #define VC_DLL_IMPORT __declspec(dllimport)
00120
00121 #include <Inventor/Win/SoWinEndStrict.h>
00122
00123 #include <Inventor/sys/portBase.h>
00124 #include <Inventor/sys/portGL.h>
00125 #include <Inventor/sys/portImage.h>
00126
00127
00128 #ifdef DirectViz_EXPORTS
00129 # define VC_DLL_EXPORT
00130 #else
00131 # define VC_DLL_IMPORT
00132 #endif
00133
00134
00135 #ifdef DirectVizQt_EXPORTS
00136 # define VC_DLL_EXPORT
00137 #else
00138 # define VC_DLL_IMPORT
00139 #endif
00140
00141
00142 #ifdef DirectVizWin_EXPORTS
00143 # define VC_DLL_EXPORT
00144 #else
00145 # define VC_DLL_IMPORT
00146 #endif
00147
00148
00149 #if defined(DialogVizXt_EXPORTS) || defined(DialogVizWin_EXPORTS) || defined(DialogVizQt_EXPORTS)
00150 # define VC_DLL_EXPORT
00151 #else
00152 # define VC_DLL_IMPORT
00153 #endif
00154
00155
00156 #ifdef DialogVizQt_EXPORTS
00157 # define VC_DLL_EXPORT
00158 #else
00159 # define VC_DLL_IMPORT
00160 #endif
00161
00162
00163 #ifdef FXViz_EXPORTS
00164 # define VC_DLL_EXPORT
00165 #else
00166 # define VC_DLL_IMPORT
00167 #endif
00168
00169
00170 #ifdef HardCopy_EXPORTS
00171 # define VC_DLL_EXPORT
00172 #else
00173 # define VC_DLL_IMPORT
00174 #endif
00175
00176
00177 #ifdef HardCopyWin_EXPORTS
00178 # define VC_DLL_EXPORT
00179 #else
00180 # define VC_DLL_IMPORT
00181 #endif
00182
00183
00184 #ifdef IvTuneExtenderAPI_EXPORTS
00185 # define IVTEXTENDER_API VC_DLL_EXPORT
00186 #else
00187 # define IVTEXTENDER_API VC_DLL_IMPORT
00188 #endif
00189
00190
00191 #ifdef MeshViz_EXPORTS
00192 # define VC_DLL_EXPORT
00193 #else
00194 # define VC_DLL_IMPORT
00195 #endif
00196
00197
00198 #ifdef MeshVizWin_EXPORTS
00199 # define VC_DLL_EXPORT
00200 #else
00201 # define VC_DLL_IMPORT
00202 #endif
00203
00204
00205 #ifdef Inventor_EXPORTS
00206 # define VC_DLL_EXPORT
00207 #else
00208 # define VC_DLL_IMPORT
00209 #endif
00210
00211
00212 #ifdef InventorBase_EXPORTS
00213 # define VC_DLL_EXPORT
00214 #else
00215 # define VC_DLL_IMPORT
00216 #endif
00217
00218
00219 #ifdef InventorGL_EXPORTS
00220 # define VC_DLL_EXPORT
00221 #else
00222 # define VC_DLL_IMPORT
00223 #endif
00224
00225
00226 #ifdef InventorImage_EXPORTS
00227 # define INVENTOR VC_DLL_EXPORT
00228 #else
00229 # define INVENTOR VC_DLL_IMPORT
00230 #endif
00231
00232
00233 #ifdef InventorWin_EXPORTS
00234 # define VC_DLL_EXPORT
00235 #else
00236 # define VC_DLL_IMPORT
00237 #endif
00238 #define
00239
00240
00241 #ifdef InventorQt_EXPORTS
00242 # define VC_DLL_EXPORT
00243 #else
00244 # define VC_DLL_IMPORT
00245 #endif
00246
00247
00248 #ifdef InventorWx_EXPORTS
00249 # define VC_DLL_EXPORT
00250 #else
00251 # define VC_DLL_IMPORT
00252 #endif
00253
00254
00255 #ifdef InventorGui_EXPORTS
00256 # define VC_DLL_EXPORT
00257 #else
00258 # define VC_DLL_IMPORT
00259 #endif
00260
00261
00262 #ifdef IvDLCSG_EXPORTS
00263 # define IVDLCSG_API VC_DLL_EXPORT
00264 #else
00265 # define IVDLCSG_API VC_DLL_IMPORT
00266 #endif
00267
00268
00269 #ifdef Ivf_EXPORTS
00270 # define VC_DLL_EXPORT
00271 #else
00272 # define VC_DLL_IMPORT
00273 #endif
00274
00275
00276 #ifdef IvTune_EXPORTS
00277 # define VC_DLL_EXPORT
00278 #else
00279 # define VC_DLL_IMPORT
00280 #endif
00281
00282
00283 #ifdef IvTunePlg_EXPORTS
00284 # define IVTUNEPLG_API VC_DLL_EXPORT
00285 #else
00286 # define IVTUNEPLG_API VC_DLL_IMPORT
00287 #endif
00288
00289
00290 #ifdef RemoteVizServices_EXPORTS
00291 # define RENDERSERVICE_API VC_DLL_EXPORT
00292 #else
00293 # define RENDERSERVICE_API VC_DLL_IMPORT
00294 #endif
00295
00296
00297 #ifdef RemoteVizClient_EXPORTS
00298 # define RVCLIENT_API VC_DLL_EXPORT
00299 #else
00300 # define RVCLIENT_API VC_DLL_IMPORT
00301 #endif
00302
00303
00304 #ifdef ScaleVizRemote_EXPORTS
00305 # define SCALEVIZREMOTE_API VC_DLL_EXPORT
00306 #else
00307 # define SCALEVIZREMOTE_API VC_DLL_IMPORT
00308 #endif
00309
00310
00311 #ifdef ScaleViz_EXPORTS
00312 # define VC_DLL_EXPORT
00313 #else
00314 # define VC_DLL_IMPORT
00315 #endif
00316
00317
00318 #ifdef SolidViz_EXPORTS
00319 # define VC_DLL_EXPORT
00320 #else
00321 # define VC_DLL_IMPORT
00322 #endif
00323
00324
00325 #ifdef TerrainViz_EXPORTS
00326 # define VC_DLL_EXPORT
00327 #else
00328 # define VC_DLL_IMPORT
00329 #endif
00330
00331
00332 #ifdef TerrainVizWin_EXPORTS
00333 # define VC_DLL_EXPORT
00334 #else
00335 # define VC_DLL_IMPORT
00336 #endif
00337
00338
00339 #ifdef VolumeViz_EXPORTS
00340 # define VC_DLL_EXPORT
00341 #else
00342 # define VC_DLL_IMPORT
00343 #endif
00344
00345
00346 #ifdef LDM_EXPORTS
00347 # define VC_DLL_EXPORT
00348 #else
00349 # define VC_DLL_IMPORT
00350 #endif
00351
00352
00353 #ifdef ViewerComponents_EXPORTS
00354 # define VIEWERCOMPONENTS_API VC_DLL_EXPORT
00355 #else
00356 # define VIEWERCOMPONENTS_API VC_DLL_IMPORT
00357 #endif
00358
00359
00360 #ifdef WinViewerComponents_EXPORTS
00361 # define WINVIEWERCOMPONENTS_API VC_DLL_EXPORT
00362 #else
00363 # define WINVIEWERCOMPONENTS_API VC_DLL_IMPORT
00364 #endif
00365
00366
00367 #ifdef MFCViewerComponents_EXPORTS
00368 # define MFCVIEWERCOMPONENTS_API VC_DLL_EXPORT
00369 #else
00370 # define MFCVIEWERCOMPONENTS_API VC_DLL_IMPORT
00371 #endif
00372
00373
00374 #ifdef QtViewerComponents_EXPORTS
00375 # define QTVIEWERCOMPONENTS_API VC_DLL_EXPORT
00376 #else
00377 # define QTVIEWERCOMPONENTS_API VC_DLL_IMPORT
00378 #endif
00379
00380
00381 #ifdef InventorMedical_EXPORTS
00382 # define INVENTORMEDICAL_API VC_DLL_EXPORT
00383 #else
00384 # define INVENTORMEDICAL_API VC_DLL_IMPORT
00385 #endif
00386
00387 #ifdef OIV_ENABLE_LEAKDETECTOR
00388 #include <vld.h>
00389 #endif
00390
00391 #else
00392
00393 #include <Inventor/sys/portGL.h>
00394 #define __INVDLL "libInventor"
00395 #define __INVENTORBASEDLL "libInventorBase"
00396
00397 #if __GNUC__ > 3
00398 #define GCC_DLLEXPORT __attribute__ ((visibility("default")))
00399 #else
00400 #define GCC_DLLEXPORT
00401 #endif
00402
00403
00404 #define VC_DLL_IMPORT GCC_DLLEXPORT
00405 #define VC_DLL_EXPORT GCC_DLLEXPORT
00406
00407 # include <strings.h>
00408
00409 # ifndef APIENTRY
00410 # define APIENTRY
00411 # endif
00412 # ifndef CALLBACK
00413 # define CALLBACK
00414 # endif
00415 # ifndef WINGDIAPI
00416 # define WINGDIAPI
00417 # endif
00418 # ifndef HDC
00419 # define HDC void *
00420 # endif
00421 # if defined(_HP_NAMESPACE_STD)
00422 # include <limits>
00423 # endif
00424 # ifndef UINT
00425 typedef unsigned int UINT;
00426 # endif
00427
00428 # define GCC_DLLEXPORT
00429 # define GCC_DLLEXPORT
00430 # define GCC_DLLEXPORT
00431 # define GCC_DLLEXPORT
00432 # define GCC_DLLEXPORT
00433 # define GCC_DLLEXPORT
00434 # define GCC_DLLEXPORT
00435 # define GCC_DLLEXPORT
00436 # define GCC_DLLEXPORT
00437 # define GCC_DLLEXPORT
00438 # define GCC_DLLEXPORT
00439 # define GCC_DLLEXPORT
00440 # define GCC_DLLEXPORT
00441 # define GCC_DLLEXPORT
00442 # define GCC_DLLEXPORT
00443 # define GCC_DLLEXPORT
00444 # define INVENTOR GCC_DLLEXPORT
00445 # define GCC_DLLEXPORT
00446 # define GCC_DLLEXPORT
00447 # define GCC_DLLEXPORT
00448 # define IVDLCSG_API GCC_DLLEXPORT
00449 # define GCC_DLLEXPORT
00450 # define IVTEXTENDER_API GCC_DLLEXPORT
00451 # define GCC_DLLEXPORT
00452 # define IVTUNEPLG_API GCC_DLLEXPORT
00453 # define RENDERSERVICE_API GCC_DLLEXPORT
00454 # define RVCLIENT_API GCC_DLLEXPORT
00455 # define GCC_DLLEXPORT
00456 # define SCALEVIZREMOTE_API GCC_DLLEXPORT
00457 # define GCC_DLLEXPORT
00458 # define GCC_DLLEXPORT
00459 # define GCC_DLLEXPORT
00460 # define GCC_DLLEXPORT
00461 # define GCC_DLLEXPORT
00462 # define VIEWERCOMPONENTS_API GCC_DLLEXPORT
00463 # define WINVIEWERCOMPONENTS_API GCC_DLLEXPORT
00464 # define MFCVIEWERCOMPONENTS_API GCC_DLLEXPORT
00465 # define QTVIEWERCOMPONENTS_API GCC_DLLEXPORT
00466 # define INVENTORMEDICAL_API GCC_DLLEXPORT
00467 # define _API
00468
00469 #ifndef __FUNCTION__
00470 # if defined(sgi)
00471 # define __FUNCTION__ "NO__FUNCTION__FOR_IRIX"
00472 # elif defined(sun)
00473 # define __FUNCTION__ "NO__FUNCTION__FOR_SOLARIS"
00474 # endif
00475 #endif
00476
00477 # define SO_DLL_SUFFIX ""
00478 # define SO_LIB_SUFFIX ""
00479
00480 #endif
00481
00482 #ifndef __APPLE__
00483 typedef void* WindowPtr;
00484 #endif
00485
00486 #endif
00487
00488
00489