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 #include <Inventor/Win/SoWinBeginStrict.h>
00034
00035 # include <windows.h>
00036 # include <winsock.h>
00037 # include <math.h>
00038 # include <string.h>
00039 #ifdef LIBRARYBUILD
00040
00041 # define strcasecmp _stricmp
00042 #endif
00043
00044 # ifdef _WIN64
00045 # define _USE_MATH_DEFINES
00046 # endif
00047 # include <math.h>
00048
00049 #ifndef _USE_MATH_DEFINES
00050 #ifndef M_E
00051 # define M_E 2.7182818284590452354
00052 #endif
00053 #ifndef M_LOG2E
00054 # define M_LOG2E 1.4426950408889634074
00055 #endif
00056 #ifndef M_LOG10E
00057 # define M_LOG10E 0.43429448190325182765
00058 #endif
00059 #ifndef M_LN2
00060 # define M_LN2 0.69314718055994530942
00061 #endif
00062 #ifndef M_LN10
00063 # define M_LN10 2.30258509299404568402
00064 #endif
00065 #ifndef M_PI
00066 # define M_PI 3.14159265358979323846
00067 #endif
00068 #ifndef M_PI_2
00069 # define M_PI_2 1.57079632679489661923
00070 #endif
00071 #ifndef M_PI_4
00072 # define M_PI_4 0.78539816339744830962
00073 #endif
00074 #ifndef M_1_PI
00075 # define M_1_PI 0.31830988618379067154
00076 #endif
00077 #ifndef M_2_PI
00078 # define M_2_PI 0.63661977236758134308
00079 #endif
00080 #ifndef M_2_SQRTPI
00081 # define M_2_SQRTPI 1.12837916709551257390
00082 #endif
00083 #ifndef M_SQRT2
00084 # define M_SQRT2 1.41421356237309504880
00085 #endif
00086 #ifndef M_SQRT1_2
00087 # define M_SQRT1_2 0.70710678118654752440
00088 #endif
00089 #ifndef MAXFLOAT
00090 # define MAXFLOAT ((float)3.40282346638528860e+38)
00091 #endif
00092 #endif
00093
00094
00095 #if defined(_MSC_VER) && (_MSC_VER < 1300)
00096 # define __FUNCTION__ "NO__FUNCTION__FOR_VC6"
00097 #endif
00098
00099 #ifdef bcopy
00100 # undef bcopy
00101 #endif
00102 #define bcopy(from,to,len) memcpy((to),(from),(len))
00103
00104 #include <SoVersion.h>
00105
00106 #if defined(_DEBUG)
00107 # define SO_DLL_SUFFIX SO_FULL_VERSION_STRING"D.DLL"
00108 # define SO_LIB_SUFFIX SO_FULL_VERSION_STRING"D.LIB"
00109 # define __INVDLL "INV"SO_FULL_VERSION_STRING"D.DLL"
00110 # define __INVLIB "INV"SO_FULL_VERSION_STRING"D.LIB"
00111 #else
00112 # define SO_DLL_SUFFIX SO_FULL_VERSION_STRING".DLL"
00113 # define SO_LIB_SUFFIX SO_FULL_VERSION_STRING".LIB"
00114 # define __INVDLL "INV"SO_FULL_VERSION_STRING".DLL"
00115 # define __INVLIB "INV"SO_FULL_VERSION_STRING".LIB"
00116 #endif
00117
00118 #define VC_DLL_EXPORT __declspec(dllexport)
00119 #define VC_DLL_IMPORT __declspec(dllimport)
00120
00121
00122
00123 #if defined(_WIN32) && _MSC_VER < 1400
00124
00125 #endif
00126
00127 #ifdef USE_DEF_FILE_AT_LINK
00128 # pragma warning(disable: 4275)
00129 # pragma warning(disable: 4251)
00130 #endif
00131
00132 #ifndef INVENTOR_EXPORT // When lib Inventor is not built
00133 #ifndef OIV_DISABLE_AUTOLINK
00134 # pragma comment(lib,__INVLIB)
00135 #endif
00136 #endif
00137
00138 #include <Inventor/Win/SoWinEndStrict.h>
00139
00140
00141 #ifdef DIRECTVIZ_EXPORT
00142 # define VC_DLL_EXPORT
00143 #else
00144 # define VC_DLL_IMPORT
00145 #endif
00146
00147
00148 #ifdef DIRECTVIZQ_EXPORT
00149 # define VC_DLL_EXPORT
00150 #else
00151 # define VC_DLL_IMPORT
00152 #endif
00153
00154
00155 #ifdef DIRECTVIZW_EXPORT
00156 # define VC_DLL_EXPORT
00157 #else
00158 # define VC_DLL_IMPORT
00159 #endif
00160
00161
00162 #ifdef DIALOGVIZ_EXPORT
00163 # define VC_DLL_EXPORT
00164 #else
00165 # define VC_DLL_IMPORT
00166 #endif
00167
00168
00169 #ifdef DIALOGVIZQ_EXPORT
00170 # define VC_DLL_EXPORT
00171 #else
00172 # define VC_DLL_IMPORT
00173 #endif
00174
00175
00176 #ifdef FXVIZ_EXPORT
00177 # define VC_DLL_EXPORT
00178 #else
00179 # define VC_DLL_IMPORT
00180 #endif
00181
00182
00183 #ifdef HARDCOPY_EXPORT
00184 # define VC_DLL_EXPORT
00185 #else
00186 # define VC_DLL_IMPORT
00187 #endif
00188
00189
00190 #ifdef HARDCOPYW_EXPORT
00191 # define VC_DLL_EXPORT
00192 #else
00193 # define VC_DLL_IMPORT
00194 #endif
00195
00196
00197 #ifdef MESHVIZ_EXPORT
00198 # define VC_DLL_EXPORT
00199 #else
00200 # define VC_DLL_IMPORT
00201 #endif
00202
00203
00204 #ifdef MESHVIZW_EXPORT
00205 # define VC_DLL_EXPORT
00206 #else
00207 # define VC_DLL_IMPORT
00208 #endif
00209
00210
00211 #ifdef USE_DEF_FILE_AT_LINK
00212 # ifdef INVENTOR_EXPORT
00213 # define
00214 # else
00215 # define
00216 # endif
00217 #else
00218 # ifdef INVENTOR_EXPORT
00219 # define VC_DLL_EXPORT
00220 # else
00221 # define VC_DLL_IMPORT
00222 # endif
00223 #endif
00224
00225
00226 #ifdef INVENTORW_EXPORT
00227 # define VC_DLL_EXPORT
00228 #else
00229 # define VC_DLL_IMPORT
00230 #endif
00231
00232
00233 #ifdef INVENTORQT_EXPORT
00234 # define VC_DLL_EXPORT
00235 #else
00236 # define VC_DLL_IMPORT
00237 #endif
00238
00239
00240 #ifdef INVENTORWX_EXPORT
00241 # define VC_DLL_EXPORT
00242 #else
00243 # define VC_DLL_IMPORT
00244 #endif
00245
00246
00247 #ifdef INVENTORGUI_EXPORT
00248 # define VC_DLL_EXPORT
00249 #else
00250 # define VC_DLL_IMPORT
00251 #endif
00252
00253
00254 #ifdef IVF_EXPORT
00255 # define VC_DLL_EXPORT
00256 #else
00257 # define VC_DLL_IMPORT
00258 #endif
00259
00260
00261 #ifdef IVTUNE_EXPORT
00262 # define VC_DLL_EXPORT
00263 #else
00264 # define VC_DLL_IMPORT
00265 #endif
00266
00267
00268 #ifdef SCALEVIZ_EXPORT
00269 # define VC_DLL_EXPORT
00270 #else
00271 # define VC_DLL_IMPORT
00272 #endif
00273
00274
00275 #ifdef SOLIDVIZ_EXPORT
00276 # define VC_DLL_EXPORT
00277 #else
00278 # define VC_DLL_IMPORT
00279 #endif
00280
00281
00282 #ifdef TERRAINVIZ_EXPORT
00283 # define VC_DLL_EXPORT
00284 #else
00285 # define VC_DLL_IMPORT
00286 #endif
00287
00288
00289 #ifdef TERRAINVIZW_EXPORT
00290 # define VC_DLL_EXPORT
00291 #else
00292 # define VC_DLL_IMPORT
00293 #endif
00294
00295
00296 #ifdef VOLUMEVIZ_EXPORT
00297 # define VC_DLL_EXPORT
00298 #else
00299 # define VC_DLL_IMPORT
00300 #endif
00301
00302
00303 #ifdef LDM_EXPORT
00304 # define VC_DLL_EXPORT
00305 #else
00306 # define VC_DLL_IMPORT
00307 #endif
00308
00309 #else
00310
00311 # include <strings.h>
00312
00313 # ifndef APIENTRY
00314 # define APIENTRY
00315 # endif
00316 # ifndef CALLBACK
00317 # define CALLBACK
00318 # endif
00319 # ifndef WINGDIAPI
00320 # define WINGDIAPI
00321 # endif
00322 # ifndef HDC
00323 # define HDC void *
00324 # endif
00325 # if defined(_HP_NAMESPACE_STD)
00326 # include <limits>
00327 # endif
00328 # ifndef UINT
00329 # define UINT unsigned int
00330 # endif
00331
00332 # define
00333 # define
00334 # define
00335 # define
00336 # define
00337 # define
00338 # define
00339 # define
00340 # define
00341 # define
00342 # define
00343 # define
00344 # define
00345 # define
00346 # define
00347 # define
00348 # define
00349 # define
00350 # define
00351 # define
00352 # define
00353 # define
00354 # define _API
00355
00356 #ifndef __FUNCTION__
00357 # if defined(sgi)
00358 # define __FUNCTION__ "NO__FUNCTION__FOR_IRIX"
00359 # elif defined(sun)
00360 # define __FUNCTION__ "NO__FUNCTION__FOR_SOLARIS"
00361 # endif
00362 #endif
00363
00364 #endif
00365
00366 #ifndef __APPLE__
00367 typedef void* WindowPtr;
00368 #endif
00369
00370 #endif
00371
00372