00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqLinViewPort.h 00004 // 00005 // Purpose: Defines the pixel to XY coordinate transformations 00006 // for linear scale. 00007 // 00008 // Version: $Id: TxqLinViewPort.h,v 1.4 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_LINVIEWPORT_H 00016 #define TXQ_LINVIEWPORT_H 00017 00018 #include "TxqViewPort.h" 00019 00032 class TxqLinViewPort : public TxqViewPort 00033 { 00034 00035 public: 00036 00040 TxqLinViewPort(); 00041 00047 double pixelToX( const QPoint & p); 00048 00054 double pixelToY( const QPoint & p); 00055 00063 short xToPixel( double x ); 00064 00072 short yToPixel( double y ); 00073 00079 void setXmin(double val); 00080 00086 void setXmax(double val); 00087 00093 void setYmin(double val); 00094 00100 void setYmax(double val); 00101 00105 ~TxqLinViewPort(); 00106 00107 protected: 00108 00109 private: 00110 00111 00112 }; 00113 #endif
Copyright Tech-X Corporation, all rights reserved.