Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
zoom.h
Go to the documentation of this file.
1// This program is free software; you can redistribute it and/or
2// modify it under the terms of the GNU General Public License
3// as published by the Free Software Foundation; either version 2
4// of the License, or (at your option) any later version.
5
6// This program is distributed in the hope that it will be useful,
7// but WITHOUT ANY WARRANTY; without even the implied warranty of
8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9// GNU General Public License for more details.
10
11// You should have received a copy of the GNU General Public License
12// along with this program; if not, write to the Free Software
13// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
20
21#ifndef _ZOOM_H
22#define _ZOOM_H
23
25class YZoom {
26public:
29 : startPosY(500), yZoom(0.1), isLogScaleY(false)
30 {}
31
32
36 YZoom(long spy1, double yz1, bool lsy=false)
37 : startPosY(spy1), yZoom(yz1), isLogScaleY(lsy)
38 {}
39 long startPosY;
40 double yZoom;
42
44 YZoom operator*( double factor );
45};
46
48class XZoom {
49public:
52 : startPosX(0), xZoom(0.1), isLogScaleX(false)
53 {}
54
55
59 XZoom( long spx, double xz, bool lsx=false )
60 : startPosX(spx), xZoom(xz), isLogScaleX(lsx)
61 {}
62 long startPosX;
63 double xZoom;
65
67 XZoom operator*( double factor );
68};
69
70#endif
XZoom()
Default constructor.
Definition zoom.h:51
double xZoom
Definition zoom.h:63
XZoom(long spx, double xz, bool lsx=false)
Constructor.
Definition zoom.h:59
long startPosX
Definition zoom.h:62
bool isLogScaleX
Definition zoom.h:64
XZoom operator*(double factor)
Overloaded multiplication operator.
YZoom operator*(double factor)
Overloaded multiplication operator.
bool isLogScaleY
Definition zoom.h:41
double yZoom
Definition zoom.h:40
YZoom(long spy1, double yz1, bool lsy=false)
Constructor.
Definition zoom.h:36
long startPosY
Definition zoom.h:39
YZoom()
Default constructor.
Definition zoom.h:28