File: qwt__drange_8h-source.html

package info (click to toggle)
libqwt 4.2.0-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,832 kB
  • ctags: 5,512
  • sloc: cpp: 22,973; ansic: 244; makefile: 64
file content (84 lines) | stat: -rw-r--r-- 5,780 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User&apos;s Guide: qwt_drange.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
<h1>qwt_drange.h</h1><pre class="fragment"><div>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************</span>
00002 <span class="comment"> * Qwt Widget Library</span>
00003 <span class="comment"> * Copyright (C) 1997   Josef Wilgen</span>
00004 <span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span>
00005 <span class="comment"> * </span>
00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
00008 <span class="comment"> *****************************************************************************/</span>
00009 
00010 <span class="preprocessor">#ifndef QWT_DBLRANGE_H</span>
00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_DBLRANGE_H</span>
00012 <span class="preprocessor"></span>
00013 <span class="preprocessor">#include "qwt_global.h"</span>
00014 
<a name="l00031"></a><a class="code" href="class_qwt_dbl_range.html">00031</a> <span class="keyword">class </span>QWT_EXPORT QwtDblRange
00032 {
00033 <span class="keyword">public</span>:
00034     QwtDblRange();
00035     <span class="keyword">virtual</span> ~QwtDblRange();
00036 
00037     <span class="keywordtype">void</span> setRange(<span class="keywordtype">double</span> vmin, <span class="keywordtype">double</span> vmax, <span class="keywordtype">double</span> vstep = 0.0,
00038         <span class="keywordtype">int</span> pagesize = 1);
00039 
00040     <span class="keywordtype">void</span> setValid(<span class="keywordtype">bool</span>);
00041     <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
00042 
00043     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setValue(<span class="keywordtype">double</span>);
00044     <span class="keywordtype">double</span> value() <span class="keyword">const</span>;
00045 
00046     <span class="keywordtype">void</span> setPeriodic(<span class="keywordtype">bool</span> tf);
00047     <span class="keywordtype">bool</span> periodic() <span class="keyword">const</span>;
00048 
00049     <span class="keywordtype">void</span> setStep(<span class="keywordtype">double</span>);
00050     <span class="keywordtype">double</span> step() <span class="keyword">const</span>;
00051 
00052     <span class="keywordtype">double</span> maxValue() <span class="keyword">const</span>;
00053     <span class="keywordtype">double</span> minValue() <span class="keyword">const</span>; 
00054 
00055     <span class="keywordtype">int</span> pageSize() <span class="keyword">const</span>;
00056 
00057     <span class="keyword">virtual</span> <span class="keywordtype">void</span> incValue(<span class="keywordtype">int</span>);
00058     <span class="keyword">virtual</span> <span class="keywordtype">void</span> incPages(<span class="keywordtype">int</span>);
00059     <span class="keyword">virtual</span> <span class="keywordtype">void</span> fitValue(<span class="keywordtype">double</span>);
00060 
00061 <span class="keyword">protected</span>:
00062 
00063     <span class="keywordtype">double</span> exactValue() <span class="keyword">const</span>;
00064     <span class="keywordtype">double</span> exactPrevValue() <span class="keyword">const</span>;
00065     <span class="keywordtype">double</span> prevValue() <span class="keyword">const</span>;
00066 
00067     <span class="keyword">virtual</span> <span class="keywordtype">void</span> valueChange();
00068     <span class="keyword">virtual</span> <span class="keywordtype">void</span> stepChange();
00069     <span class="keyword">virtual</span> <span class="keywordtype">void</span> rangeChange();
00070 
00071 <span class="keyword">private</span>:
00072     <span class="keywordtype">void</span> setNewValue(<span class="keywordtype">double</span> x,<span class="keywordtype">int</span> align = 0);
00073 
00074     <span class="keywordtype">double</span> d_minValue;
00075     <span class="keywordtype">double</span> d_maxValue;
00076     <span class="keywordtype">double</span> d_step;
00077     <span class="keywordtype">int</span> d_pageSize;
00078 
00079     <span class="keywordtype">bool</span> d_isValid;
00080     <span class="keywordtype">double</span> d_value;
00081     <span class="keywordtype">double</span> d_exactValue;
00082     <span class="keywordtype">double</span> d_exactPrevValue;
00083     <span class="keywordtype">double</span> d_prevValue;
00084 
00085     <span class="keywordtype">bool</span> d_periodic;
00086 };
00087 
00088 <span class="preprocessor">#endif</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:20 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>