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

Txq3dDrawable.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    Txq3dDrawable.h
00004 //
00005 // Purpose: Main class for the Txq3dDrawable's
00006 //
00007 // Version: $Id: Txq3dDrawable.h,v 1.5 2001/10/11 19:54:13 kgl Exp $
00008 //
00009 // Author:  Kelly G. Luetkemeyer
00010 //
00011 // Copyright (c) 2000 by Tech-X Corporation.  All rights reserved.
00012 //---------------------------------------------------------------------------
00013 
00014 #ifndef TQ3D_DRAWABLE_H
00015 #define TQ3D_DRAWABLE_H
00016 
00017 
00018 // Tx includes
00019 #include "TxqDrawable.h"
00020 
00021 // Qt includes
00022 #include <qgl.h>
00023 
00035 class Txq3dDrawable: public TxqDrawable
00036 {
00037 
00038 public:
00039 
00043   Txq3dDrawable();
00044 
00048   virtual ~Txq3dDrawable();
00049 
00054   virtual void paintGL()=0;
00055 
00059   virtual void initializeGL();
00060 
00064   virtual void setColor(QColor c);
00065 
00075    void setRange(double xMin, double xMax,
00076                  double yMin, double yMax,
00077                  double zMin, double zMax) {
00078       xmin = xMin;
00079       xmax = xMax;
00080       ymin = yMin;
00081       ymax = yMax;
00082       zmin = zMin;
00083       zmax = zMax;
00084    }
00090   double getXmin() { return xmin;}
00091  
00097   double getXmax() { return xmax;}
00098 
00104   double getYmin() { return ymin;}
00105  
00111   double getYmax() { return ymax; }
00112 
00118   double getZmin() { return zmin;}
00119  
00125   double getZmax() { return zmax;}
00126 
00133   void setAngle(double xa, double ya, double za);
00134 
00141   void setTranslation(double xt, double yt, double zt);
00142 
00149   void setScale(double xs, double ys, double zs);
00150 
00151 protected:
00152 
00156   double xmin;
00157 
00161   double xmax;
00162 
00166   double ymin;
00167 
00171   double ymax;
00172 
00176   double zmin;
00177 
00181   double zmax;
00182 
00186   float red;
00187 
00191   float green;
00192 
00196   float blue;
00197 
00201   double xAngle;
00202 
00206   double yAngle;
00207 
00211   double zAngle;
00212 
00216   double xtrans;
00217 
00221   double ytrans;
00222 
00226   double ztrans;
00227 
00231   double xScale;
00232 
00236   double yScale;
00237 
00241   double zScale;
00242 
00243 };
00244 #endif
Copyright Tech-X Corporation, all rights reserved.