00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2019 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : David Beilloin (Sep 2013) 00022 **=======================================================================*/ 00023 00024 #ifndef _SO_IMAGEVIZ_H_ 00025 #define _SO_IMAGEVIZ_H_ 00026 00027 #include <SoVersion.h> 00028 #include <ImageViz/SoImageVizLibName.h> 00029 00030 // ImageViz_EXPORTS is defined only when building ImageViz dll 00031 #include <Inventor/SbBase.h> 00032 #ifdef ImageViz_EXPORTS 00033 # define VC_DLL_EXPORT 00034 #else 00035 # define VC_DLL_IMPORT 00036 # ifdef _WIN32 00037 # ifndef OIV_DISABLE_AUTOLINK 00038 # pragma comment(lib,__IMAGEVIZLIB) 00039 # endif 00040 # endif 00041 #endif 00042 00043 #include <Inventor/SoModule.h> 00044 SO_MODULE_HEADER(SoImageViz, __IMAGEVIZDLL) 00045 00046 00059 class SoImageViz { 00060 00061 public: 00062 00069 static void init(); 00070 00079 static void finish(); 00080 00085 static bool isInitialized(); 00086 00090 static const char *getProductName(); 00091 00095 static const char *getVersion(); 00096 00101 static void enableMultiThread(bool flag); 00102 00103 private: 00104 00105 // reference counter on the lib. 00106 static int s_initRefCount; 00107 00108 static const char *s_versionString; 00109 00110 }; 00111 /*---------------------------------------------------------------------------*/ 00112 00113 #endif // _SO_IMAGEVIZ_H_ 00114 00115