Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
IvtProfile.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 : Jean Paul Digeon (Sep 2011)
22**=======================================================================*/
23
24#ifndef IVT_PROFILE
25#define IVT_PROFILE
26
28//
29// Class: IvtProfile
30//
32
34
35#include <Inventor/SbString.h>
36
37#include <Inventor/STL/map>
38#include <Inventor/STL/list>
39
40#include <QObject>
41
42#ifdef _WIN32
43# if !defined(IvTuneExtenderAPI_EXPORTS)
44# ifndef OIV_DISABLE_AUTOLINK
45# pragma comment(lib,__IVTUNEEXTENDERAPILIB)
46# endif
47# endif
48#endif //win
49
50
51class IvtExtension;
53
68class IvtProfile : public QObject
69{
70 Q_OBJECT
71public:
72
77 void activate();
78
85 void addExtension( IvtExtension* extension, IvtProfileSetting* preference );
86
92 void addIncludeProfile( const SbString& profileName );
93
97 void deactivate();
98
103 const std::map<IvtExtension*, IvtProfileSetting*>& getExtensions() const;
104
108 const std::list<SbString>& getIncludeProfile() const;
109
114
119
125 void removeExtension( IvtExtension* extension );
126
132 IvtProfile( const SbString& name );
133
137 virtual ~IvtProfile();
138
139private:
140
142 SbString m_name;
143
145 SbBool m_isActive;
146
148 std::map<IvtExtension*, IvtProfileSetting*> m_extensions;
149
151 std::list<SbString> m_includeProfiles;
152};
153
154#endif // IVT_PROFILE
155
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Base class to im...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Configuration pr...
Definition IvtProfile.h:69
SbString getName() const
Returns the name of this profile.
IvtProfile(const SbString &name)
Constructor.
const std::list< SbString > & getIncludeProfile() const
Returns a list of names of the profiles included by the current profile.
void activate()
Activate this profile and its associated extensions.
void removeExtension(IvtExtension *extension)
Remove the given extension.
SbBool isActive() const
Returns true if this profile is active.
void addIncludeProfile(const SbString &profileName)
Include the specified profile in this profile.
void addExtension(IvtExtension *extension, IvtProfileSetting *preference)
Add the given extension and its preferences to this profile.
void deactivate()
Deactivate this profile and its associated extensions.
virtual ~IvtProfile()
Destructor.
const std::map< IvtExtension *, IvtProfileSetting * > & getExtensions() const
Returns a map of the extensions and their associated preferences for this profile.
<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