Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoSSDIStereo.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-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19 **=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _SO_WIN_SSDISTEREO
25#define _SO_WIN_SSDISTEREO
26
27#if defined(_WIN32)
28
30#include <Inventor/components/stereo/ssdi.h>
31
32class SoStereoViewer;
33
57{
58public:
59
63 SoSSDIStereo( SoStereoViewer* stereoVwr = NULL, SoGuiViewer* guiViewer = NULL );
64
68 ~SoSSDIStereo();
69
73 virtual void reverseStereoView( SbBool reverse );
74
79
83 virtual void renderStereoView();
84 virtual void renderMPStereoView();
85
89 virtual StereoViewType getStereoViewType() { return SSDI_STEREO; }
90
94 virtual SbBool canClearBeforeRender();
95
99 virtual void clearStereo();
100
101 void doLeftEyeSettings( SoGLRenderAction* action );
102 void doRightEyeSettings( SoGLRenderAction* action );
103 void doMonoscopicSettings( SoGLRenderAction* action );
104
105
106private:
107 SbBool initSSDIStereo();
108 int setupStereoBuffers();
109
110 ssdiModeInfo m_modeInfo;
111 ssdiStereoInfo m_stereoInfo;
112 ssdiDeviceInfo m_deviceInfo;
113 ssdiBufferSet m_bufferSet;
114 SbBool m_init;
115 SbBool m_ssdiEnabled;
116 SoBaseStereo* m_stereoRenderer;
117};
118#endif // _WIN32
119
120#endif // _SO_WIN_SSDISTEREO
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for stereo...
Renders a scene graph using Open Inventor's Render Engine.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Pure virtual cla...
virtual SbBool isStereoViewReversed()=0
Queries reversal of the left and right views.
virtual SoBaseStereo * getStereoViewType()=0
Returns the stereo view type.
virtual void reverseStereoView(SbBool reverse)=0
Sets reversal of the left and right views.
int SbBool
Boolean type.
Definition SbBase.h:87