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

TxqRotateDlog.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqRotateDlog.h
00004 //
00005 // Purpose: Class definition for a dialog to rotate witht the 3D canvas
00006 //
00007 // Version: $Id: TxqRotateDlog.h,v 1.4 2001/10/11 20:34:58 kgl Exp $
00008 //
00009 // Copyright (c) 2000 by Tech-X Corporation.  All rights reserved.
00010 //
00011 // Author:  Kelly G. Luetkemeyer
00012 //
00013 //--------------------------------------------------------------------
00014 
00015 #ifndef TXQ_ROTATE_DLOG_H
00016 #define TXQ_ROTATE_DLOG_H
00017 
00018 // Qt includes
00019 #include <qtabdialog.h>
00020 #include <qmessagebox.h>
00021 #include <qstring.h>
00022 #include <qvbox.h>
00023 #include <qlabel.h>
00024 #include <qlineedit.h>
00025 #include <qdatetime.h>
00026 #include <qbuttongroup.h>
00027 #include <qcheckbox.h>
00028 #include <qlistbox.h>
00029 #include <qvalidator.h>
00030 #include <qwidget.h>
00031 #include <qlayout.h>
00032 #include <qradiobutton.h>
00033 #include <qslider.h>
00034 #include <qspinbox.h>
00035 
00036 // Txq includes
00037 #include "Txq3dCanvas.h"
00038 
00050 class TxqRotateDlog : public QTabDialog
00051 {
00052     Q_OBJECT
00053 
00054 public:
00055 
00065   TxqRotateDlog( QWidget *parent, const char *name, Txq3dCanvas *canvas);
00066 
00070   virtual ~TxqRotateDlog();
00071 
00076   void setXaxisName(QString& name);
00077 
00082   void setYaxisName(QString& name);
00083 
00088   void setZaxisName(QString& name);
00089 
00096   void setAngles(int x, int y, int z);
00097 
00098 
00099 public slots:
00100 
00105    void  setXRotation( int degrees );
00110    void  setYRotation( int degrees );
00111 
00116    void  setZRotation( int degrees );
00117 
00122    void  setTranslation ( int units);
00123 
00124 
00125 protected:
00126 
00130   void axesTab();
00131 
00136   QString getXaxisName();
00137 
00142   QString getYaxisName();
00143 
00148   QString getZaxisName();
00149 
00153   QString xAxisName;
00154 
00158   QString yAxisName;
00159 
00163   QString zAxisName;
00164 
00165 private:
00166 
00170   QSlider *x;
00171 
00175   QSlider *y;
00176 
00180   QSlider *z;
00181 
00185   QSlider *eye;
00186 
00190   Txq3dCanvas *canvas;
00191 
00195   QSpinBox *xspin;
00196 
00200   QSpinBox *yspin;
00201 
00205   QSpinBox *zspin;
00206 
00210   QSpinBox *espin;
00211 
00215   QVBox *xAxisBox;
00216 
00220   QVBox *yAxisBox;
00221 
00225   QVBox *zAxisBox;
00226 
00230   QVBox *eAxisBox;
00231 
00235   QLabel *xl;
00236 
00240   QLabel *yl;
00241 
00245   QLabel *zl;
00246 
00250   QLabel *el;
00251 
00255   QLabel *ea;
00256 
00260   QLabel *al;
00261 
00265   QLabel *aly;
00266 
00270   QLabel *alz;
00271 
00275   QLabel *xspace;
00276 
00280   QLabel *yspace;
00281 
00285   QLabel *zspace;
00286 
00290   QLabel *espace;
00291 
00292 };
00293 
00294 #endif
Copyright Tech-X Corporation, all rights reserved.