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

TxqLogViewPort.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqLogViewPort.h
00004 //
00005 // Purpose: Defines the pixel to XY coordinate transformations
00006 //          using a log scale
00007 //
00008 // Version: $Id: TxqLogViewPort.h,v 1.5 2001/10/09 23:36:44 kgl Exp $
00009 //
00010 // Author:  Kelly G. Luetkemeyer
00011 //
00012 // Copyright (c) 2000 by Tech-X Corporation.  All rights reserved.
00013 //---------------------------------------------------------------------------
00014 
00015 #ifndef TXQ_LOGVIEWPORT_H
00016 #define TXQ_LOGVIEWPORT_H
00017 
00018 // Txq includes
00019 #include "TxqViewPort.h"
00020 #include "TxqLinViewPort.h"
00021 
00034 class TxqLogViewPort : public TxqViewPort
00035 {
00036 
00037 public:
00038 
00042   TxqLogViewPort();
00043 
00050   virtual double pixelToX( const QPoint & p);
00051  
00058   virtual double pixelToY( const QPoint & p);
00059  
00067   virtual short xToPixel( double x );
00068  
00076   virtual short yToPixel( double y );
00077 
00083   virtual void setXmin(double val); 
00084  
00090   virtual void setXmax(double val); 
00091  
00097   virtual void setYmin(double val); 
00098  
00104   virtual void setYmax(double val); 
00105  
00111   void setViewPort(TxqLinViewPort *newView);
00112 
00116  ~TxqLogViewPort();
00117 
00118 protected:
00119 
00120 private:
00121 
00125    double lxmin;
00129    double lymin;
00130 
00134   double lxmax;
00138   double lymax;
00139 
00140 };
00141 #endif
Copyright Tech-X Corporation, all rights reserved.