long long pos;
long long lsize = dimX*dimY*width *dataSize;
#if defined(_WIN32)
- _sopen_s( &fd, filename.c_str(), _O_RDONLY, _SH_DENYNO, 0 );
+ _sopen_s( &fd, filename.c_str(), _O_RDONLY, _SH_DENYNO, 0 );
#else
- fd = open ( filename.c_str() , O_RDONLY|O_LARGEFILE );
+ //EED2021-09-03
+ #if defined(MACOSX)
+ fd = open ( filename.c_str() , O_RDONLY );
+ #else
+ fd = open ( filename.c_str() , O_RDONLY|O_LARGEFILE );
+ #endif
#endif // defined(_WIN32)
if (fd < 0)
{
#if defined(_WIN32)
if (_lseeki64( fd, pos, SEEK_SET ) < 0)
#else
- if (lseek64(fd, pos, SEEK_SET) < 0)
+ //EED2021-09-03
+ #if defined(MACOSX)
+ if (lseek(fd, pos, SEEK_SET) < 0)
+ #else
+ if (lseek64(fd, pos, SEEK_SET) < 0)
+ #endif
#endif // defined(_WIN32)
{
printf("EED ReadMHDPlane::Read64lseek \n");
#if defined(_WIN32)
if (_lseeki64( fd, pos , SEEK_SET ) < 0)
#else
- if (lseek64(fd, pos , SEEK_SET) < 0)
+ //EED2021-09-03
+ #if defined(MACOSX)
+ if (lseek(fd, pos , SEEK_SET) < 0)
+ #else
+ if (lseek64(fd, pos , SEEK_SET) < 0)
+ #endif
#endif // defined(_WIN32)
{
printf("EED ReadMHDPlane::Read64lseek \n");
#if defined(_WIN32)
if (_lseeki64( fd, pos + j*sizeBytesPlane , SEEK_SET ) < 0)
#else
- if (lseek64(fd, pos + j*sizeBytesPlane , SEEK_SET) < 0)
+ //EED2021-09-03
+ #if defined(MACOSX)
+ if (lseek(fd, pos + j*sizeBytesPlane , SEEK_SET) < 0)
+ #else
+ if (lseek64(fd, pos + j*sizeBytesPlane , SEEK_SET) < 0)
+ #endif
#endif // defined(_WIN32)
{
printf("EED ReadMHDPlane::Read64lseek \n");
//_pdm->SetColorModeToDefault();
// _pdm->SetColorModeToDirectScalars(); // NOT compile
_pdm->SetScalarModeToUsePointFieldData();
- _pdm->ImmediateModeRenderingOn();
+
+//EED2021-09-03 Deprecated. Removed in vtk 8.1
+// _pdm->ImmediateModeRenderingOn();
_LutEED->SetVectorModeToComponent();
//_LutEED->SetVectorModeToRGBColors();
//_pdm->SetColorModeToDefault();
// _pdm->SetColorModeToDirectScalars(); // NOT compile
_pdm->SetScalarModeToUsePointFieldData();
- _pdm->ImmediateModeRenderingOn();
+
+//EED2021-09-03 Deprecated. Removed in vtk 8.1
+// _pdm->ImmediateModeRenderingOn();
_LutEED->SetVectorModeToComponent();
//_LutEED->SetVectorModeToRGBColors();