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-2017 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : Tristan Mehamli (Sep 2011) 00022 **=======================================================================*/ 00023 00024 #ifndef IVT_EXTENSION 00025 #define IVT_EXTENSION 00026 00028 // 00029 // Class: IvtExtension 00030 // 00032 00033 #include <IvTune/IvTuneExtender/IvtLibName.h> 00034 00035 #include <Inventor/SbString.h> 00036 00037 00038 #include <QObject> 00039 00040 #ifdef _WIN32 00041 # if !defined(IvTuneExtenderAPI_EXPORTS) 00042 # ifndef OIV_DISABLE_AUTOLINK 00043 # pragma comment(lib,__IVTUNEEXTENDERAPILIB) 00044 # endif 00045 # endif 00046 #endif //win 00047 00048 #include <Inventor/SoModule.h> 00049 SO_MODULE_HEADER(SoIvTuneExtender, __IVTUNEEXTENDERAPIDLL) 00050 00051 class IvtProfileSetting; 00052 class IvtPlugin; 00053 00057 struct IvtExtensionInfo 00058 { 00059 SbString name; 00060 SbString description; 00061 SbString author; 00062 SbString version; 00063 }; 00064 00080 class IvtExtension : public QObject 00081 { 00082 Q_OBJECT 00083 public: 00084 00089 virtual void activate(); 00090 00095 virtual void deactivate(); 00096 00100 const IvtExtensionInfo& getInfo() const ; 00101 00105 IvtPlugin* getPlugin() const; 00106 00111 IvtProfileSetting* getProfileSetting() const; 00112 00117 virtual void hide(); 00118 00122 bool isActive()const; 00123 00127 bool isVisible() const; 00128 00133 virtual void load(); 00134 00139 virtual void show(); 00140 00145 virtual void unload(); 00146 00150 virtual ~IvtExtension(); 00151 00152 private: 00158 void setProfileSetting( IvtProfileSetting* setting ); 00159 00160 private: 00164 IvtExtension(); 00165 00169 IvtExtensionInfo m_info; 00170 00171 private: 00172 00174 SbBool m_isActive; 00175 00177 SbBool m_isVisible; 00178 00180 IvtProfileSetting* m_preference; 00181 }; 00182 00183 #endif // IVT_EXTENSION 00184 00185 00186