00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqLinLogViewPort.h 00004 // 00005 // Purpose: Defines the pixel to XY coordinate transformations 00006 // using a linear scale for the X axis and a log scale 00007 // for the Y axis 00008 // 00009 // Version: $Id: TxqLinLogViewPort.h,v 1.2 2001/10/09 23:36:44 kgl Exp $ 00010 // 00011 // Author: Kelly G. Luetkemeyer 00012 // 00013 // Copyright (c) 2000 by Tech-X Corporation. All rights reserved. 00014 //--------------------------------------------------------------------------- 00015 00016 #ifndef TXQ_LINLOGVIEWPORT_H 00017 #define TXQ_LINLOGVIEWPORT_H 00018 00019 00020 // Txq includes 00021 #include "TxqViewPort.h" 00022 #include "TxqLogViewPort.h" 00023 00037 class TxqLinLogViewPort : public TxqLogViewPort 00038 { 00039 00040 public: 00041 00045 TxqLinLogViewPort(); 00046 00053 virtual double pixelToX( const QPoint & p); 00054 00062 virtual short xToPixel( double x ); 00063 00069 virtual void setXmin(double val); 00070 00075 virtual void setXmax(double val); 00076 00080 ~TxqLinLogViewPort(); 00081 00082 protected: 00083 00084 private: 00085 00086 }; 00087 #endif
Copyright Tech-X Corporation, all rights reserved.