Open Inventor Release 2024.2.0
 
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-2021 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
93{
94
95public:
96
103 static void start( const SoRenderAreaCore* );
104
111 static void start( SoNode* );
112
117 static void stop();
118
122 static bool isRunning();
123
132 static bool processEvents();
133
138
143
144#if 1 SoDEPRECATED
151 static void start( SoSceneManager* );
152#endif
154#if 1 SoDEPRECATED
162 static void setInstance(int argc, char ** argv, SoNode * root, bool createViewer = false);
163SoDEPRECATED
185 static void setInstance(int argc, char **argv, SoGuiRenderArea* viewer);
186SoDEPRECATED
208 static void launch(int argc, char **argv, SoGuiRenderArea* viewer);
209SoDEPRECATED
215
216#endif
218private:
219
229 static void start( SoSceneManager*, void* parentWindow );
230
240 static void start( SoNode*, void* parentWindow );
241
245 static void setPickAction( const SbViewportRegion &region, SbVec2s mouseCoord );
246
250 static void setSceneGraph(SoNode* node);
251
253 ~SoIvTune();
254
255private:
256
258 SoIvTune();
259};
260
261#endif //SoIvTune_included
262
2D vector class.
Definition SbVec.h:700
Class for representing a viewport.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Opens an Open In...
Definition SoIvTune.h:93
static SoKeyboardEvent::Key getShortcutValue()
Retrieves the defined keyboard shortcut used to launch IvTune/Open Inventor Studio.
static void start(const SoRenderAreaCore *)
Starts an IvTune or Open Inventor Studio session based on the scene graph managed by the given SoRend...
static bool isRunning()
Returns true if IvTune/Open Inventor Studio are 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/Open Inventor Studio.
static bool processEvents()
Process Qt events (calls QCoreApplication::processEvents()).
static void start(SoNode *)
Starts an IvTune or Open Inventor Studio session based on the specified scene graph,...
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/Open Inventor Studio session.
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