File: qwt__plot__grid_8cpp-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 (134 lines) | stat: -rw-r--r-- 9,823 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!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_plot_grid.cpp 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_plot_grid.cpp</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="comment">// vim: expandtab</span>
00011 
00012 <span class="preprocessor">#include "qwt_plot.h"</span>
00013 <span class="preprocessor">#include "<a class="code" href="qwt__math_8h.html">qwt_math.h</a>"</span>
00014 
<a name="l00016"></a><a class="code" href="class_qwt_plot.html#a92">00016</a> <a class="code" href="class_qwt_plot_grid.html">QwtPlotGrid</a> &amp;<a class="code" href="class_qwt_plot.html#a92">QwtPlot::grid</a>()
00017 {
00018     <span class="keywordflow">return</span> *d_grid;
00019 }
00020 
<a name="l00022"></a><a class="code" href="class_qwt_plot.html#a93">00022</a> <span class="keyword">const</span> <a class="code" href="class_qwt_plot_grid.html">QwtPlotGrid</a> &amp;<a class="code" href="class_qwt_plot.html#a92">QwtPlot::grid</a>()<span class="keyword"> const</span>
00023 <span class="keyword"></span>{
00024     <span class="keywordflow">return</span> *d_grid;
00025 }
00026 
<a name="l00032"></a><a class="code" href="class_qwt_plot.html#a75">00032</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a75">QwtPlot::enableGridX</a>(<span class="keywordtype">bool</span> tf)
00033 {
00034     d_grid-&gt;<a class="code" href="class_qwt_grid.html#a3">enableX</a>(tf);
00035 }
00036 
<a name="l00042"></a><a class="code" href="class_qwt_plot.html#a77">00042</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a77">QwtPlot::enableGridY</a>(<span class="keywordtype">bool</span> tf)
00043 {
00044     d_grid-&gt;<a class="code" href="class_qwt_grid.html#a5">enableY</a>(tf);
00045 }
00046 
<a name="l00051"></a><a class="code" href="class_qwt_plot.html#a76">00051</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a76">QwtPlot::enableGridXMin</a>(<span class="keywordtype">bool</span> tf)
00052 {
00053     d_grid-&gt;<a class="code" href="class_qwt_grid.html#a7">enableXMin</a>(tf);
00054 }
00055 
<a name="l00060"></a><a class="code" href="class_qwt_plot.html#a78">00060</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a78">QwtPlot::enableGridYMin</a>(<span class="keywordtype">bool</span> tf)
00061 {
00062     d_grid-&gt;<a class="code" href="class_qwt_grid.html#a9">enableYMin</a>(tf);
00063 }
00064 
<a name="l00068"></a><a class="code" href="class_qwt_plot.html#a79">00068</a> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot.html#a79">QwtPlot::gridXEnabled</a>()<span class="keyword"> const</span>
00069 <span class="keyword"></span>{
00070     <span class="keywordflow">return</span> d_grid-&gt;<a class="code" href="class_qwt_grid.html#a4">xEnabled</a>();
00071 }
00072 
<a name="l00076"></a><a class="code" href="class_qwt_plot.html#a80">00076</a> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot.html#a80">QwtPlot::gridXMinEnabled</a>()<span class="keyword"> const</span>
00077 <span class="keyword"></span>{
00078     <span class="keywordflow">return</span> d_grid-&gt;<a class="code" href="class_qwt_grid.html#a8">xMinEnabled</a>();
00079 }
00080 
<a name="l00084"></a><a class="code" href="class_qwt_plot.html#a81">00084</a> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot.html#a81">QwtPlot::gridYEnabled</a>()<span class="keyword"> const</span>
00085 <span class="keyword"></span>{
00086     <span class="keywordflow">return</span> d_grid-&gt;<a class="code" href="class_qwt_grid.html#a6">yEnabled</a>();
00087 }
00088 
<a name="l00092"></a><a class="code" href="class_qwt_plot.html#a82">00092</a> <span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot.html#a82">QwtPlot::gridYMinEnabled</a>()<span class="keyword"> const</span>
00093 <span class="keyword"></span>{
00094     <span class="keywordflow">return</span> d_grid-&gt;<a class="code" href="class_qwt_grid.html#a10">yMinEnabled</a>();
00095 }
00096 
<a name="l00101"></a><a class="code" href="class_qwt_plot.html#a83">00101</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a83">QwtPlot::setGridXAxis</a>(<span class="keywordtype">int</span> axis)
00102 {
00103     <span class="keywordflow">if</span> ((axis==xBottom)||(axis==xTop))
00104     {
00105         d_grid-&gt;<a class="code" href="class_qwt_plot_mapped_item.html#a2">setXAxis</a>(axis);
00106         d_grid-&gt;<a class="code" href="class_qwt_grid.html#a11">setXDiv</a>(d_as[axis].scaleDiv());
00107     }
00108 }
00109 
<a name="l00114"></a><a class="code" href="class_qwt_plot.html#a84">00114</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot.html#a84">QwtPlot::gridXAxis</a>()<span class="keyword"> const</span>
00115 <span class="keyword"></span>{
00116     <span class="keywordflow">return</span> d_grid-&gt;<a class="code" href="class_qwt_plot_mapped_item.html#a3">xAxis</a>();
00117 }
00118 
<a name="l00123"></a><a class="code" href="class_qwt_plot.html#a85">00123</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a85">QwtPlot::setGridYAxis</a>(<span class="keywordtype">int</span> axis)
00124 {
00125     <span class="keywordflow">if</span> ((axis==yLeft) || (axis == yRight))
00126     {
00127         d_grid-&gt;<a class="code" href="class_qwt_plot_mapped_item.html#a4">setYAxis</a>(axis);
00128         d_grid-&gt;<a class="code" href="class_qwt_grid.html#a13">setYDiv</a>(d_as[axis].scaleDiv());
00129     }
00130 }
00131 
<a name="l00136"></a><a class="code" href="class_qwt_plot.html#a86">00136</a> <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot.html#a86">QwtPlot::gridYAxis</a>()<span class="keyword"> const</span>
00137 <span class="keyword"></span>{
00138     <span class="keywordflow">return</span> d_grid-&gt;<a class="code" href="class_qwt_plot_mapped_item.html#a5">yAxis</a>();
00139 }
00140 
<a name="l00145"></a><a class="code" href="class_qwt_plot.html#a87">00145</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a87">QwtPlot::setGridPen</a>(<span class="keyword">const</span> QPen &amp;p)
00146 {
00147     d_grid-&gt;<a class="code" href="class_qwt_grid.html#a15">setPen</a>(p);
00148 }
00149 
<a name="l00154"></a><a class="code" href="class_qwt_plot.html#a90">00154</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a90">QwtPlot::setGridMinPen</a>(<span class="keyword">const</span> QPen &amp;p)
00155 {
00156     d_grid-&gt;<a class="code" href="class_qwt_grid.html#a18">setMinPen</a>(p);
00157 }
00158 
<a name="l00163"></a><a class="code" href="class_qwt_plot.html#a91">00163</a> <span class="keyword">const</span> QPen&amp; <a class="code" href="class_qwt_plot.html#a91">QwtPlot::gridMinPen</a>()<span class="keyword"> const</span>
00164 <span class="keyword"></span>{
00165     <span class="keywordflow">return</span> d_grid-&gt;<a class="code" href="class_qwt_grid.html#a19">minPen</a>();
00166 }
00167 
<a name="l00172"></a><a class="code" href="class_qwt_plot.html#a88">00172</a> <span class="keywordtype">void</span> <a class="code" href="class_qwt_plot.html#a88">QwtPlot::setGridMajPen</a>(<span class="keyword">const</span> QPen &amp;p)
00173 {
00174     d_grid-&gt;<a class="code" href="class_qwt_grid.html#a16">setMajPen</a>(p);
00175 }
00176 
<a name="l00181"></a><a class="code" href="class_qwt_plot.html#a89">00181</a> <span class="keyword">const</span> QPen&amp; <a class="code" href="class_qwt_plot.html#a89">QwtPlot::gridMajPen</a>()<span class="keyword"> const</span>
00182 <span class="keyword"></span>{
00183     <span class="keywordflow">return</span> d_grid-&gt;<a class="code" href="class_qwt_grid.html#a17">majPen</a>();
00184 }
00185 
00186 <span class="comment">// Local Variables:</span>
00187 <span class="comment">// mode: C++</span>
00188 <span class="comment">// c-file-style: "stroustrup"</span>
00189 <span class="comment">// indent-tabs-mode: nil</span>
00190 <span class="comment">// End:</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>