00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqLogLinViewPort.h 00004 // 00005 // Purpose: Defines the pixel to XY coordinate transformations 00006 // using a log scale for the X axis and a linear scale 00007 // for the Y axis 00008 // 00009 // Version: $Id: TxqLogLinViewPort.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_LOGLINVIEWPORT_H 00017 #define TXQ_LOGLINVIEWPORT_H 00018 00019 // Txq includes 00020 #include "TxqViewPort.h" 00021 #include "TxqLogViewPort.h" 00022 00036 class TxqLogLinViewPort : public TxqLogViewPort 00037 { 00038 00039 public: 00040 00044 TxqLogLinViewPort(); 00045 00052 double pixelToY( const QPoint & p); 00053 00061 short yToPixel( double y ); 00062 00068 void setYmin(double val); 00069 00075 void setYmax(double val); 00076 00077 00081 ~TxqLogLinViewPort(); 00082 00083 protected: 00084 00085 private: 00086 00090 double lxmin; 00091 00095 double lxmax; 00096 00097 }; 00098 #endif
Copyright Tech-X Corporation, all rights reserved.