Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
IvtExtension.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2017 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Tristan Mehamli (Sep 2011)
22**=======================================================================*/
23
24#ifndef IVT_EXTENSION
25#define IVT_EXTENSION
26
28//
29// Class: IvtExtension
30//
32
34
35#include <Inventor/SbString.h>
36
37
38#include <QObject>
39
40#ifdef _WIN32
41# if !defined(IvTuneExtenderAPI_EXPORTS)
42# ifndef OIV_DISABLE_AUTOLINK
43# pragma comment(lib,__IVTUNEEXTENDERAPILIB)
44# endif
45# endif
46#endif //win
47
48#include <Inventor/SoModule.h>
49SO_MODULE_HEADER(SoIvTuneExtender, __IVTUNEEXTENDERAPIDLL)
50
52class IvtPlugin;
53
64
80class IvtExtension : public QObject
81{
82 Q_OBJECT
83public:
84
89 virtual void activate();
90
95 virtual void deactivate();
96
100 const IvtExtensionInfo& getInfo() const ;
101
106
112
117 virtual void hide();
118
122 bool isActive()const;
123
127 bool isVisible() const;
128
133 virtual void load();
134
139 virtual void show();
140
145 virtual void unload();
146
150 virtual ~IvtExtension();
151
152private:
158 void setProfileSetting( IvtProfileSetting* setting );
159
160private:
164 IvtExtension();
165
169 IvtExtensionInfo m_info;
170
171private:
172
174 SbBool m_isActive;
175
177 SbBool m_isVisible;
178
180 IvtProfileSetting* m_preference;
181};
182
183#endif // IVT_EXTENSION
184
185
#define __IVTUNEEXTENDERAPIDLL
Definition IvtLibName.h:26
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Base class to im...
virtual void hide()
Hide this extension.
IvtProfileSetting * getProfileSetting() const
Returns the settings for this extension.
virtual ~IvtExtension()
Destructor.
virtual void unload()
Unload this extension.
bool isActive() const
Returns true if this extension is active.
bool isVisible() const
Returns true if this extension is visible.
IvtPlugin * getPlugin() const
Returns the plug-in containing this extension.
virtual void deactivate()
Deactivate this extension.
virtual void load()
Load this extension.
virtual void show()
Show this extension.
const IvtExtensionInfo & getInfo() const
Returns the information structure for this extension.
virtual void activate()
Activate this extension.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Base class for i...
Definition IvtPlugin.h:80
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> IvTune extension...
Class for smart character strings.
Definition SbString.h:202
int SbBool
Boolean type.
Definition SbBase.h:87
Structure describing the common information of an extension.
SbString description