Stimfit  0.13.15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
zoom.h
Go to the documentation of this file.
00001 // This program is free software; you can redistribute it and/or
00002 // modify it under the terms of the GNU General Public License
00003 // as published by the Free Software Foundation; either version 2
00004 // of the License, or (at your option) any later version.
00005 
00006 // This program is distributed in the hope that it will be useful,
00007 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00008 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00009 // GNU General Public License for more details.
00010 
00011 // You should have received a copy of the GNU General Public License
00012 // along with this program; if not, write to the Free Software
00013 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00014 
00021 #ifndef _ZOOM_H
00022 #define _ZOOM_H
00023 
00025 class YZoom {
00026 public:
00028     YZoom()
00029     : startPosY(500),  yZoom(0.1), isLogScaleY(false)
00030     {}
00032 
00036     YZoom(int spy1, double yz1, bool lsy=false)
00037     : startPosY(spy1), yZoom(yz1), isLogScaleY(lsy)
00038     {}
00039     int startPosY; 
00040     double yZoom; 
00041     bool isLogScaleY; 
00043 
00044     YZoom operator*( double factor );
00045 };
00046 
00048 class XZoom {
00049 public:
00051     XZoom()
00052     : startPosX(0), xZoom(0.1), isLogScaleX(false)
00053     {}
00055 
00059     XZoom( int spx, double xz, bool lsx=false )
00060     : startPosX(spx), xZoom(xz), isLogScaleX(lsx)
00061     {}
00062     int startPosX; 
00063     double xZoom; 
00064     bool isLogScaleX; 
00066 
00067     XZoom operator*( double factor );
00068 };
00069 
00070 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines