00001 00002 // 00003 // This class is part of the Open Inventor Medical utility library. 00004 // 00005 // The medical utility classes are provided as a prebuilt library named 00006 // "fei_inventor_medical", that can be used directly in an Open Inventor 00007 // application. The classes in the prebuilt library are documented and 00008 // supported by FEI. These classes are also provided as source code. 00009 // 00010 // The medical utility library provides useful solutions for some specific 00011 // requirements of Open Inventor-based medical visualization applications. 00012 // Compared to typical core Open Inventor classes, medical utility library 00013 // classes may have some limitations. However application developers can use 00014 // the source code to examine, modify or extend these classes according to 00015 // the terms below. 00016 // 00017 // FEI may implement similar classes in core Open Inventor in the future, 00018 // but FEI will continue to support the medical utility version of the class. 00019 // 00020 // Open Inventor customers may use the provided source code to help debug 00021 // their Open Inventor-based application's use of the medical utility library. 00022 // 00023 // Open Inventor customers may use the source code to create new classes, 00024 // derived from the library classes, for use in an Open Inventor application. 00025 // FEI considers such classes to be application code and not supported by FEI. 00026 // 00027 // Open Inventor customers may modify the source code to create customized 00028 // versions of library classes for use in an Open Inventor application. FEI 00029 // considers such classes to be application code and not supported by FEI. 00030 // 00032 00033 #ifndef _INVENTOR_MEDICAL_ 00034 #define _INVENTOR_MEDICAL_ 00035 00036 #if defined(_WIN32) && defined(_MSC_VER) 00037 #pragma warning( push ) 00038 #pragma warning(disable:4251) 00039 #endif 00040 00041 #include <Inventor/sys/port.h> 00042 00043 #ifdef _WIN32 00044 # if defined(_DEBUG) 00045 # define __MEDICALLIB "fei_inventor_medicalD.lib" 00046 # else 00047 # define __MEDICALLIB "fei_inventor_medical.lib" 00048 # endif 00049 # ifndef InventorMedical_EXPORTS 00050 # ifndef OIV_DISABLE_AUTOLINK 00051 # pragma comment(lib, __MEDICALLIB) 00052 # endif 00053 # endif 00054 #endif 00055 00098 class INVENTORMEDICAL_API InventorMedical { 00099 00100 public: 00101 00107 static void init(); 00108 00116 static void finish(); 00117 00121 static bool isInitialized(); 00122 00126 InventorMedical(); 00127 00128 private: 00129 static int s_initRefCount; 00130 }; 00131 00132 #endif 00133