Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

QStereoCtrl.h

Go to the documentation of this file.
00001 /*
00002  * QStereoCtrl.h
00003  * $Id: QStereoCtrl.h,v 1.2 2001/09/28 11:06:08 mjanich Exp $
00004  *
00005  * Copyright (C) 1999, 2000 Markus Janich
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  */
00022 
00023 #ifndef QSTEREODLG_H
00024 #define QSTEREODLG_H
00025 
00026 #include <qwidget.h>
00027 #include <qcheckbox.h>
00028 #include <qlcdnumber.h>
00029 #include <qmenubar.h>
00030 #include <qpopupmenu.h>
00031 #include <qlabel.h>
00032 #include <qradiobutton.h>
00033 #include <qbuttongroup.h>
00034 #include <qlayout.h>
00035 #include <qslider.h>
00036 #include <qcombobox.h>
00037 
00038 class QGLViewer;
00039 
00040 class QStereoCtrl : public QWidget
00041 {
00042   Q_OBJECT
00043 
00044     public:
00045   
00046   enum StereoType {
00047     TYPE1,    
00048     TYPE2
00049   };
00050 
00051 
00053   QStereoCtrl( QGLViewer *pViewer, const char * name=0 );
00054 
00056   ~QStereoCtrl( void );
00057 
00058 
00059 public slots:
00060 
00061  void sltAngleChanged( int value );
00062  void sltStereoTypeChanged( int type );
00063 
00064  signals:
00065 
00066  void sigApply( void );
00067 
00068 private:
00069 
00070  void initDlg(void);
00071  void setValues( int type, float parallaxAngle );
00072  void setStereoType( int index );
00073  void setAngle(float);
00074  void activateStereoFrustum(int dir);
00075 
00076  public:
00077 
00078  void activateLeftStereoFrustum(void);
00079  void activateRightStereoFrustum(void);
00080  void showDlg( void );
00081  void hideDlg( void );
00082 
00083  private:
00084 
00085  QGLViewer     *m_pViewer;
00086  QComboBox     *m_pTypeCombo;
00087  QSlider       *m_pAngleSlider;
00088  float          m_maxAllowedAngle;
00089  float          m_parallaxAngle;
00090  int            m_stereoType;
00091  bool           m_createDlg;
00092 
00093 };
00094 
00095 
00096 #endif // QSTEREODLG_H
00097 
00098 
00099 
00100 
00101 
00102 
00103 

Generated at Thu Oct 4 17:17:26 2001 for QGLViewer by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001