Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoQtStereoDialog.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-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _SOQT_STEREO_DIALOG_
25#define _SOQT_STEREO_DIALOG_
26
27#include <Inventor/components/stereo/SoWinXt2Stereo.h>
28#include <Inventor/Qt/SoQtComponent.h>
29
30class SoStereoViewer;
31class SoBaseStereo;
32class SoQtSlider;
33class QGridLayout;
34class QCheckBox;
35class QComboBox;
36class QGroupBox;
37class QLabel;
38
55
56 Q_OBJECT
57
58 public:
59
63 SoStereoDialog( QWidget *parent = qApp->activeWindow(), SoStereoViewer * viewer = NULL,
64 const char *name = NULL, SbBool buildInsideParent = TRUE );
69
73 virtual void update();
74
75 private:
76
77
78 // This constructor takes a boolean whether to build the widget now.
79 // Subclasses can pass FALSE, then call SoStereoDialog::buildWidget()
80 // when they are ready for it to be built.
81 SoEXTENDER SoStereoDialog(QWidget *parent, SoStereoViewer * viewer,
82 const char *name, SbBool buildInsideParent, SbBool buildNow);
83
84 // redefine these
85 virtual SbString getDefaultWidgetName() const;
86 virtual SbString getDefaultTitle() const;
87 virtual SbString getDefaultIconTitle() const;
88
89 static void sliderCallback(void * userData, float value) ;
90
91 static SoBaseStereo * getStereoViewType(int stereoTypeListIndex=0) ;
92
93 // widgets to edit the material
94 QWidget *mgrWidget; // topmost widget
95
96 // local scene vars
97 SoStereoViewer *stereoViewer;
98 SoQtSlider* sliders[2];
99
100 // Build routines
101 QWidget* buildWidget(QWidget *parent);
102 QWidget* buildControls(QWidget *parent);
103 QWidget* buildSliders(QWidget *parent);
104 void updateSliders();
105
106
107 // this is called by both constructors
108 void constructorCommon(SoStereoViewer * viewer, SbBool buildNow);
109
110 virtual bool eventFilter( QObject* object,QEvent *event );
111
112 QComboBox* COMBO_STEREO;
113 QCheckBox* CHECK_STEREO;
114 QCheckBox* CHECK_BALANCE;
115 QCheckBox* CHECK_CAMERA;
116 SoQtSlider* SLIDER_BALNCE;
117 SoQtSlider* SLIDER_CAMERA;
118 QCheckBox* CHECK_REVERT_STEREO;
119
120 int m_lastStereoMode;
121 bool m_isStereoActive;
122 bool m_lastStereoReversed;
123
124 protected Q_SLOTS:
125 void slot_stereo(int value);
126 void slot_check_balance(bool onOff);
127 void slot_check_camera(bool onOff);
128 void slot_check_stereo(bool onOff);
129 void slot_check_revert_stereo(bool onOff);
130
131};
132
133
134#endif // _SOQT_STEREO_DIALOG_
135
136
Class for smart character strings.
Definition SbString.h:202
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Class for stereo...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component that l...
void slot_check_revert_stereo(bool onOff)
void slot_stereo(int value)
~SoStereoDialog()
Destructor.
virtual void update()
Notify the stereo dialog that the viewer state may have changed.
void slot_check_balance(bool onOff)
SoStereoDialog(QWidget *parent=qApp->activeWindow(), SoStereoViewer *viewer=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE)
Constructor.
void slot_check_stereo(bool onOff)
void slot_check_camera(bool onOff)
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Pure virtual cla...
int SbBool
Boolean type.
Definition SbBase.h:87