Open Inventor Release 2025.1.0
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
SoIvTune.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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Colas Fievet (MMM YYYY)
22** Author : Tristan Mehamli (MMM YYYY)
23**=======================================================================*/
24
25#include <Inventor/sys/port.h>
26#include <Inventor/events/SoKeyboardEvent.h>
27#include <Inventor/SbVec.h>
28
29#ifndef SoIvTune_included
30#define SoIvTune_included
31
32#if defined(_WIN32)
33# pragma warning(disable:4251)
34#endif
35
36class SoNode;
38class SoGuiRenderArea;
39class SoSceneManager;
41
91class SoIvTune
92{
93
94public:
95
102 static void start( const SoRenderAreaCore* );
103
110 static void start( SoNode* );
111
116 static void stop();
117
121 static bool isRunning();
122
131 static bool processEvents();
132
137
142
143#if 1 SoDEPRECATED
150 static void start( SoSceneManager* );
151#endif
152
153#if 1 SoDEPRECATED
161 static void setInstance(int argc, char ** argv, SoNode * root, bool createViewer = false);
162SoDEPRECATED
184 static void setInstance(int argc, char **argv, SoGuiRenderArea* viewer);
185SoDEPRECATED
207 static void launch(int argc, char **argv, SoGuiRenderArea* viewer);
208SoDEPRECATED
214
215#endif
216
217private:
218
228 static void start( SoSceneManager*, void* parentWindow );
229
239 static void start( SoNode*, void* parentWindow );
240
244 static void setPickAction( const SbViewportRegion &region, SbVec2s mouseCoord );
245
249 static void setSceneGraph(SoNode* node);
250
252 ~SoIvTune();
253
254private:
255
257 SoIvTune();
258};
259
260#endif //SoIvTune_included
261
2D vector class.
Definition SbVec.h:700
Class for representing a viewport.
static SoKeyboardEvent::Key getShortcutValue()
Retrieves the defined keyboard shortcut used to launch IvTune.
static void start(const SoRenderAreaCore *)
Starts an IvTune session based on the scene graph managed by the given SoRenderAreaCore.
static bool isRunning()
Returns true if IvTune is currently running.
static SoDEPRECATED void setInstance(int argc, char **argv, SoGuiRenderArea *viewer)
Opens an IvTune window displaying the scene graph from the specified viewer.
static SoDEPRECATED void start(SoSceneManager *)
Starts an IvTune session based on the scene graph in an existing SoSceneManager.
static void setShortcutValue(SoKeyboardEvent::Key)
Defines the keyboard shortcut to use to launch IvTune.
static bool processEvents()
Process Qt events (calls QCoreApplication::processEvents()).
static void start(SoNode *)
Starts an IvTune session based on the specified scene graph, for example a subset of the application ...
static SoDEPRECATED void setInstance(int argc, char **argv, SoNode *root, bool createViewer=false)
Opens an IvTune window displaying the specified scene graph.
static void stop()
Ends IvTune.
static SoDEPRECATED void launch(int argc, char **argv, SoGuiRenderArea *viewer)
Opens an IvTune window displaying the scene graph from the specified viewer, and returns immediatly.
static SoDEPRECATED SbBool isInstance()
Returns TRUE if an IvTune window is currently open.
Key
The keyboard keys.
Abstract base class for all database nodes.
Definition SoNode.h:145
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> (Preview feature...
Manages scene graph rendering and event handling.
int SbBool
Boolean type.
Definition SbBase.h:87