Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoStereoCamera.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-2017 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20
21
22#ifndef _SO_STEREO_CAMERA_
23#define _SO_STEREO_CAMERA_
24
25#include <Inventor/fields/SoSFBool.h>
26#include <Inventor/nodes/SoPerspectiveCamera.h>
27
63
64 SO_NODE_HEADER(SoStereoCamera);
65
66public:
67
74
80
94
134
139
140#if 1 SoDEPRECATED
143 virtual void setStereoAdjustment( float adjustment );
144SoDEPRECATED
146 virtual void setStereoAbsoluteAdjustments( SbBool absolute );
147SoDEPRECATED
149 virtual void setBalanceAdjustment( float adjustment, SbBool nearFrac = false );
150SoDEPRECATED
156 virtual void allowStereo( SbBool allowed );
157
158#endif
160private:
161
162 static void initClass();
163 static void exitClass();
164
165 virtual void notify( SoNotList* list );
166
167private:
168
169 virtual ~SoStereoCamera();
170
171 virtual float getEyeOffset( SoState* state = NULL );
172 virtual void updateStereoAdjustments( SoState* state = NULL );
173
174private:
175
177 void setStereoElement( SoState* state );
178
179};
180
181#endif /* _SO_STEREO_CAMERA_ */
Perspective camera node.
Field containing a single Boolean value.
Definition SoSFBool.h:79
Field containing a floating-point value.
Definition SoSFFloat.h:78
Traversal state.
Definition SoState.h:74
Stereo camera node.
virtual SoDEPRECATED void setStereoAdjustment(float adjustment)
virtual SoDEPRECATED void setBalanceAdjustment(float adjustment, SbBool nearFrac=false)
SoSFBool balanceNearFrac
Specifies whether the balance value is defined as a fraction of the camera near distance.
virtual SoDEPRECATED void setStereoAbsoluteAdjustments(SbBool absolute)
virtual SoDEPRECATED void allowStereo(SbBool allowed)
Allows the camera to render in stereo.
SoSFBool absoluteAdjustments
Specifies if stereo adjustments are absolute.
SoStereoCamera()
Creates a stereo camera node with default settings.
SoSFFloat offset
The stereo offset (the distance of each eye from the camera position).
SoSFFloat balance
The stereo balance (the position of the zero parallax plane).
int SbBool
Boolean type.
Definition SbBase.h:87