Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
IvtServices.h
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-2018 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Tristan Mehamli (Sep 2011)
22**=======================================================================*/
23#ifndef IVT_SERVICES_H
24#define IVT_SERVICES_H
25
27//
28// Class: IvtServices
29//
31
32#include <IvTune/IvTuneExtender/IvtLibName.h>
33
34#include <Inventor/SbBase.h>
35
36#include <QObject>
37
38#ifdef _WIN32
39# if !defined(IvTuneExtenderAPI_EXPORTS)
40# ifndef OIV_DISABLE_AUTOLINK
41# pragma comment(lib,__IVTUNEEXTENDERAPILIB)
42# endif
43# endif
44#endif //win
45
46class IvtEditor;
47class IvtCommand;
48
49class SbName;
50class SoField;
52class SoNode;
53class SoType;
54class SoGuiRenderArea;
55class SoSceneManager;
56
72class IvtServices : public QObject
73{
74 Q_OBJECT
75
76public:
77
83 virtual void execute( IvtCommand* command ) = 0;
84
88 virtual SoNode* getSceneGraph() const = 0;
89
93 virtual SoField* getSelectedField() const = 0;
94
98 virtual SoFieldContainer* getSelectedNode() const = 0;
99
103 virtual void redo() = 0;
104
110 virtual void setSceneGraph( SoNode* sg ) =0;
111
117 virtual void setSelectedField( SoField* field ) = 0;
118
124 virtual void setSelectedNode( SoFieldContainer* node ) = 0;
125
129 virtual void undo() = 0;
130
135
140 virtual SoSceneManager* getSceneManager() const = 0;
141
145 virtual SbBool isStandaloneApplication() const = 0;
146
147Q_SIGNALS:
148
155
162
169
170private:
171
173 IvtServices();
174
178 virtual ~IvtServices();
179
181 static IvtServices* m_instance;
182
183private:
187 virtual SoGuiRenderArea* getRenderArea() const = 0;
188};
189
190#endif // IVT_SERVICES_H
191
192
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract class f...
Definition IvtCommand.h:62
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Base class for i...
Definition IvtEditor.h:67
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class to access ...
Definition IvtServices.h:73
void sceneGraphChanged(SoNode *sg)
This signal is emitted whenever the scene graph changes.
virtual void setSelectedNode(SoFieldContainer *node)=0
Set the given node active in the node overview.
void selectedFieldChanged(SoField *field)
This signal is emitted whenever the selected field changes.
virtual SoNode * getSceneGraph() const =0
Returns the current scene graph.
static IvtServices * getInstance()
Returns an instance of this class.
virtual SbBool isStandaloneApplication() const =0
Returns true if IvTune was launched as a standalone application.
virtual void execute(IvtCommand *command)=0
Execute the given command.
virtual SoSceneManager * getSceneManager() const =0
If IvTune is started from an SoSceneManager, return the scene manager otherwise null.
virtual SoField * getSelectedField() const =0
Returns the selected field in IvTune.
virtual void setSelectedField(SoField *field)=0
Set the given field active in the field overview.
void selectedNodeChanged(SoFieldContainer *node)
This signal is emitted whenever the selected node changes.
virtual void redo()=0
Redo the most recent command.
virtual void setSceneGraph(SoNode *sg)=0
Set the given scene graph.
virtual SoFieldContainer * getSelectedNode() const =0
Returns the selected node in IvTune.
virtual void undo()=0
Undo the most recent command.
Character string stored in a hash table.
Definition SbName.h:162
Abstract base class for objects that contain fields.
Base class for all fields.
Definition SoField.h:234
Abstract base class for all database nodes.
Definition SoNode.h:145
Manages scene graph rendering and event handling.
Stores runtime type information.
Definition SoType.h:98
int SbBool
Boolean type.
Definition SbBase.h:87