1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtPlotGrid Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.0 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtPlotGrid Class Reference</h1><!-- doxytag: class="QwtPlotGrid" --><!-- doxytag: inherits="QwtPlotItem" -->Inheritance diagram for QwtPlotGrid:<p><center><img src="class_qwt_plot_grid__inherit__graph.png" border="0" usemap="#_qwt_plot_grid__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_plot_grid__inherit__map">
24
<area href="class_qwt_plot_item.html" shape="rect" coords="43,83,139,107" alt="">
25
<area href="class_qwt_legend_item_manager.html" shape="rect" coords="7,8,175,32" alt="">
27
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtPlotGrid:<p><center><img src="class_qwt_plot_grid__coll__graph.png" border="0" usemap="#_qwt_plot_grid__coll__map" alt="Collaboration graph"></center>
28
<map name="_qwt_plot_grid__coll__map">
29
<area href="class_qwt_plot_item.html" shape="rect" coords="43,83,139,107" alt="">
30
<area href="class_qwt_legend_item_manager.html" shape="rect" coords="7,8,175,32" alt="">
32
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_grid-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
33
A class which draws a coordinate grid.
35
The <a class="el" href="class_qwt_plot_grid.html">QwtPlotGrid</a> class can be used to draw a coordinate grid. A coordinate grid consists of major and minor vertical and horizontal gridlines. The locations of the gridlines are determined by the X and Y scale divisions which can be assigned with <a class="el" href="class_qwt_plot_grid.html#eeb88397c2aaf5e763d57c898a2fcd13">setXDiv()</a> and <a class="el" href="class_qwt_plot_grid.html#9eb130275560bdaa65551e2f69232b72">setYDiv()</a>. The <a class="el" href="class_qwt_plot_grid.html#e9c6c4d3bf10c755ac74cc951ce0f676">draw()</a> member draws the grid within a bounding rectangle.
39
Definition at line <a class="el" href="qwt__plot__grid_8h-source.html#l00034">34</a> of file <a class="el" href="qwt__plot__grid_8h-source.html">qwt_plot_grid.h</a>.<table border="0" cellpadding="0" cellspacing="0">
41
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
42
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#43001238f3024c15baa8ae61b29ae170">QwtPlotGrid</a> ()</td></tr>
44
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#f39443cd91b8a96a797af1d6b78bfab3">~QwtPlotGrid</a> ()</td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#313040cb947200c91df7fa4f8019346c">rtti</a> () const</td></tr>
48
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#ba4de91f74f86e172e080fa62765bba8">enableX</a> (bool tf)</td></tr>
50
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#b9d70164c273da70d43f99d479a5343a">xEnabled</a> () const</td></tr>
52
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#0172d8af861495a94aa856af26ad786d">enableY</a> (bool tf)</td></tr>
54
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#6516e007e0211eae21b07a15f0a14234">yEnabled</a> () const</td></tr>
56
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#4106c58c9d463bd4ccd94e215cc246bb">enableXMin</a> (bool tf)</td></tr>
58
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#e2d1675536dcc22309f1995e8f7fec95">xMinEnabled</a> () const</td></tr>
60
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#21b26d5b6b0745ecdec12d6bdeb8ecb4">enableYMin</a> (bool tf)</td></tr>
62
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#03c33252cebd0fb29b51529fd9736157">yMinEnabled</a> () const</td></tr>
64
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#eeb88397c2aaf5e763d57c898a2fcd13">setXDiv</a> (const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> &sx)</td></tr>
66
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#b816b84c1c5854ea426e0a8b7a681090">xScaleDiv</a> () const</td></tr>
68
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#9eb130275560bdaa65551e2f69232b72">setYDiv</a> (const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> &sy)</td></tr>
70
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#379ca6af067fe88890876c89a3f37cdc">yScaleDiv</a> () const</td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#d84a6b1110d593af76e5e777ae1e8bfe">setPen</a> (const QPen &p)</td></tr>
74
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#c749a9ba8c2d05f4da83c6f6f2f8a0ec">setMajPen</a> (const QPen &p)</td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QPen & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#db1b3e68547f46727f97437ab73630f8">majPen</a> () const</td></tr>
78
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#012823a76b8a1a586b0f4326164e8c14">setMinPen</a> (const QPen &p)</td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QPen & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#8d7f601031a12efbe4763b405e9b4f31">minPen</a> () const</td></tr>
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#e9c6c4d3bf10c755ac74cc951ce0f676">draw</a> (QPainter *p, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &xMap, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &yMap, const QRect &rect) const</td></tr>
84
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_grid.html#d15166f257160adc90b60b9e29d69edf">updateScaleDiv</a> (const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> &xMap, const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> &yMap)</td></tr>
87
<hr><h2>Constructor & Destructor Documentation</h2>
88
<a class="anchor" name="43001238f3024c15baa8ae61b29ae170"></a><!-- doxytag: member="QwtPlotGrid::QwtPlotGrid" ref="43001238f3024c15baa8ae61b29ae170" args="()" -->
90
<div class="memproto">
91
<table class="memname">
93
<td class="memname">QwtPlotGrid::QwtPlotGrid </td>
95
<td class="paramname"> </td>
96
<td> ) </td>
97
<td width="100%"><code> [explicit]</code></td>
104
Enables major grid, disables minor grid.
108
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00042">42</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
110
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00145">QwtPlotItem::setZ()</a>.
113
<a class="anchor" name="f39443cd91b8a96a797af1d6b78bfab3"></a><!-- doxytag: member="QwtPlotGrid::~QwtPlotGrid" ref="f39443cd91b8a96a797af1d6b78bfab3" args="()" -->
114
<div class="memitem">
115
<div class="memproto">
116
<table class="memname">
118
<td class="memname">QwtPlotGrid::~QwtPlotGrid </td>
120
<td class="paramname"> </td>
121
<td> ) </td>
122
<td width="100%"><code> [virtual]</code></td>
133
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00050">50</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
136
<hr><h2>Member Function Documentation</h2>
137
<a class="anchor" name="313040cb947200c91df7fa4f8019346c"></a><!-- doxytag: member="QwtPlotGrid::rtti" ref="313040cb947200c91df7fa4f8019346c" args="() const" -->
138
<div class="memitem">
139
<div class="memproto">
140
<table class="memname">
142
<td class="memname">int QwtPlotGrid::rtti </td>
144
<td class="paramname"> </td>
145
<td> ) </td>
146
<td width="100%"> const<code> [virtual]</code></td>
153
<dl class="return" compact><dt><b>Returns:</b></dt><dd>QwtPlotItem::Rtti_PlotGrid </dd></dl>
158
Reimplemented from <a class="el" href="class_qwt_plot_item.html#803613b24e745834b2115ee574dda610">QwtPlotItem</a>.
160
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00056">56</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
163
<a class="anchor" name="ba4de91f74f86e172e080fa62765bba8"></a><!-- doxytag: member="QwtPlotGrid::enableX" ref="ba4de91f74f86e172e080fa62765bba8" args="(bool tf)" -->
164
<div class="memitem">
165
<div class="memproto">
166
<table class="memname">
168
<td class="memname">void QwtPlotGrid::enableX </td>
170
<td class="paramtype">bool </td>
171
<td class="paramname"> <em>tf</em> </td>
172
<td> ) </td>
173
<td width="100%"></td>
180
Enable or disable vertical gridlines.
182
<dl compact><dt><b>Parameters:</b></dt><dd>
183
<table border="0" cellspacing="2" cellpadding="0">
184
<tr><td valign="top"></td><td valign="top"><em>tf</em> </td><td>Enable (true) or disable</td></tr>
187
<dl class="see" compact><dt><b>See also:</b></dt><dd>Minor gridlines can be enabled or disabled with <a class="el" href="class_qwt_plot_grid.html#4106c58c9d463bd4ccd94e215cc246bb">enableXMin()</a> </dd></dl>
190
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00068">68</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
192
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
195
<a class="anchor" name="b9d70164c273da70d43f99d479a5343a"></a><!-- doxytag: member="QwtPlotGrid::xEnabled" ref="b9d70164c273da70d43f99d479a5343a" args="() const" -->
196
<div class="memitem">
197
<div class="memproto">
198
<table class="memname">
200
<td class="memname">bool QwtPlotGrid::xEnabled </td>
202
<td class="paramname"> </td>
203
<td> ) </td>
204
<td width="100%"> const</td>
211
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if vertical gridlines are enabled </dd></dl>
212
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#ba4de91f74f86e172e080fa62765bba8">enableX()</a> </dd></dl>
215
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00289">289</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
218
<a class="anchor" name="0172d8af861495a94aa856af26ad786d"></a><!-- doxytag: member="QwtPlotGrid::enableY" ref="0172d8af861495a94aa856af26ad786d" args="(bool tf)" -->
219
<div class="memitem">
220
<div class="memproto">
221
<table class="memname">
223
<td class="memname">void QwtPlotGrid::enableY </td>
225
<td class="paramtype">bool </td>
226
<td class="paramname"> <em>tf</em> </td>
227
<td> ) </td>
228
<td width="100%"></td>
235
Enable or disable horizontal gridlines.
237
<dl compact><dt><b>Parameters:</b></dt><dd>
238
<table border="0" cellspacing="2" cellpadding="0">
239
<tr><td valign="top"></td><td valign="top"><em>tf</em> </td><td>Enable (true) or disable </td></tr>
242
<dl class="see" compact><dt><b>See also:</b></dt><dd>Minor gridlines can be enabled or disabled with <a class="el" href="class_qwt_plot_grid.html#21b26d5b6b0745ecdec12d6bdeb8ecb4">enableYMin()</a> </dd></dl>
245
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00082">82</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
247
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
250
<a class="anchor" name="6516e007e0211eae21b07a15f0a14234"></a><!-- doxytag: member="QwtPlotGrid::yEnabled" ref="6516e007e0211eae21b07a15f0a14234" args="() const" -->
251
<div class="memitem">
252
<div class="memproto">
253
<table class="memname">
255
<td class="memname">bool QwtPlotGrid::yEnabled </td>
257
<td class="paramname"> </td>
258
<td> ) </td>
259
<td width="100%"> const</td>
266
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if horizontal gridlines are enabled </dd></dl>
267
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#0172d8af861495a94aa856af26ad786d">enableY()</a> </dd></dl>
270
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00307">307</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
273
<a class="anchor" name="4106c58c9d463bd4ccd94e215cc246bb"></a><!-- doxytag: member="QwtPlotGrid::enableXMin" ref="4106c58c9d463bd4ccd94e215cc246bb" args="(bool tf)" -->
274
<div class="memitem">
275
<div class="memproto">
276
<table class="memname">
278
<td class="memname">void QwtPlotGrid::enableXMin </td>
280
<td class="paramtype">bool </td>
281
<td class="paramname"> <em>tf</em> </td>
282
<td> ) </td>
283
<td width="100%"></td>
290
Enable or disable minor vertical gridlines.
292
<dl compact><dt><b>Parameters:</b></dt><dd>
293
<table border="0" cellspacing="2" cellpadding="0">
294
<tr><td valign="top"></td><td valign="top"><em>tf</em> </td><td>Enable (true) or disable </td></tr>
297
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#ba4de91f74f86e172e080fa62765bba8">enableX()</a> </dd></dl>
300
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00096">96</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
302
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
305
<a class="anchor" name="e2d1675536dcc22309f1995e8f7fec95"></a><!-- doxytag: member="QwtPlotGrid::xMinEnabled" ref="e2d1675536dcc22309f1995e8f7fec95" args="() const" -->
306
<div class="memitem">
307
<div class="memproto">
308
<table class="memname">
310
<td class="memname">bool QwtPlotGrid::xMinEnabled </td>
312
<td class="paramname"> </td>
313
<td> ) </td>
314
<td width="100%"> const</td>
321
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if minor vertical gridlines are enabled </dd></dl>
322
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#4106c58c9d463bd4ccd94e215cc246bb">enableXMin()</a> </dd></dl>
325
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00298">298</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
328
<a class="anchor" name="21b26d5b6b0745ecdec12d6bdeb8ecb4"></a><!-- doxytag: member="QwtPlotGrid::enableYMin" ref="21b26d5b6b0745ecdec12d6bdeb8ecb4" args="(bool tf)" -->
329
<div class="memitem">
330
<div class="memproto">
331
<table class="memname">
333
<td class="memname">void QwtPlotGrid::enableYMin </td>
335
<td class="paramtype">bool </td>
336
<td class="paramname"> <em>tf</em> </td>
337
<td> ) </td>
338
<td width="100%"></td>
345
Enable or disable minor horizontal gridlines.
347
<dl compact><dt><b>Parameters:</b></dt><dd>
348
<table border="0" cellspacing="2" cellpadding="0">
349
<tr><td valign="top"></td><td valign="top"><em>tf</em> </td><td>Enable (true) or disable </td></tr>
352
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#0172d8af861495a94aa856af26ad786d">enableY()</a> </dd></dl>
355
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00110">110</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
357
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
360
<a class="anchor" name="03c33252cebd0fb29b51529fd9736157"></a><!-- doxytag: member="QwtPlotGrid::yMinEnabled" ref="03c33252cebd0fb29b51529fd9736157" args="() const" -->
361
<div class="memitem">
362
<div class="memproto">
363
<table class="memname">
365
<td class="memname">bool QwtPlotGrid::yMinEnabled </td>
367
<td class="paramname"> </td>
368
<td> ) </td>
369
<td width="100%"> const</td>
376
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if minor horizontal gridlines are enabled </dd></dl>
377
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#21b26d5b6b0745ecdec12d6bdeb8ecb4">enableYMin()</a> </dd></dl>
380
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00316">316</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
383
<a class="anchor" name="eeb88397c2aaf5e763d57c898a2fcd13"></a><!-- doxytag: member="QwtPlotGrid::setXDiv" ref="eeb88397c2aaf5e763d57c898a2fcd13" args="(const QwtScaleDiv &sx)" -->
384
<div class="memitem">
385
<div class="memproto">
386
<table class="memname">
388
<td class="memname">void QwtPlotGrid::setXDiv </td>
390
<td class="paramtype">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td>
391
<td class="paramname"> <em>scaleDiv</em> </td>
392
<td> ) </td>
393
<td width="100%"></td>
400
Assign an x axis scale division.
402
<dl compact><dt><b>Parameters:</b></dt><dd>
403
<table border="0" cellspacing="2" cellpadding="0">
404
<tr><td valign="top"></td><td valign="top"><em>scaleDiv</em> </td><td>Scale division </td></tr>
407
<dl class="warning" compact><dt><b>Warning:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html">QwtPlotGrid</a> uses implicit sharing (see Qt Manual) for the scale divisions. </dd></dl>
410
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00125">125</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
412
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
414
Referenced by <a class="el" href="qwt__plot__grid_8cpp-source.html#l00334">updateScaleDiv()</a>.
417
<a class="anchor" name="b816b84c1c5854ea426e0a8b7a681090"></a><!-- doxytag: member="QwtPlotGrid::xScaleDiv" ref="b816b84c1c5854ea426e0a8b7a681090" args="() const" -->
418
<div class="memitem">
419
<div class="memproto">
420
<table class="memname">
422
<td class="memname">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & QwtPlotGrid::xScaleDiv </td>
424
<td class="paramname"> </td>
425
<td> ) </td>
426
<td width="100%"> const</td>
433
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the scale division of the x axis </dd></dl>
436
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00323">323</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
439
<a class="anchor" name="9eb130275560bdaa65551e2f69232b72"></a><!-- doxytag: member="QwtPlotGrid::setYDiv" ref="9eb130275560bdaa65551e2f69232b72" args="(const QwtScaleDiv &sy)" -->
440
<div class="memitem">
441
<div class="memproto">
442
<table class="memname">
444
<td class="memname">void QwtPlotGrid::setYDiv </td>
446
<td class="paramtype">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td>
447
<td class="paramname"> <em>sy</em> </td>
448
<td> ) </td>
449
<td width="100%"></td>
456
Assign a y axis division.
458
<dl compact><dt><b>Parameters:</b></dt><dd>
459
<table border="0" cellspacing="2" cellpadding="0">
460
<tr><td valign="top"></td><td valign="top"><em>sy</em> </td><td>Scale division </td></tr>
463
<dl class="warning" compact><dt><b>Warning:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html">QwtPlotGrid</a> uses implicit sharing (see Qt Manual) for the scale divisions. </dd></dl>
466
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00140">140</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
468
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
470
Referenced by <a class="el" href="qwt__plot__grid_8cpp-source.html#l00334">updateScaleDiv()</a>.
473
<a class="anchor" name="379ca6af067fe88890876c89a3f37cdc"></a><!-- doxytag: member="QwtPlotGrid::yScaleDiv" ref="379ca6af067fe88890876c89a3f37cdc" args="() const" -->
474
<div class="memitem">
475
<div class="memproto">
476
<table class="memname">
478
<td class="memname">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & QwtPlotGrid::yScaleDiv </td>
480
<td class="paramname"> </td>
481
<td> ) </td>
482
<td width="100%"> const</td>
489
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the scale division of the y axis </dd></dl>
492
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00329">329</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
495
<a class="anchor" name="d84a6b1110d593af76e5e777ae1e8bfe"></a><!-- doxytag: member="QwtPlotGrid::setPen" ref="d84a6b1110d593af76e5e777ae1e8bfe" args="(const QPen &p)" -->
496
<div class="memitem">
497
<div class="memproto">
498
<table class="memname">
500
<td class="memname">void QwtPlotGrid::setPen </td>
502
<td class="paramtype">const QPen & </td>
503
<td class="paramname"> <em>p</em> </td>
504
<td> ) </td>
505
<td width="100%"></td>
512
Assign a pen for both major and minor gridlines.
514
<dl compact><dt><b>Parameters:</b></dt><dd>
515
<table border="0" cellspacing="2" cellpadding="0">
516
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>Pen </td></tr>
519
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#c749a9ba8c2d05f4da83c6f6f2f8a0ec">setMajPen()</a>, <a class="el" href="class_qwt_plot_grid.html#012823a76b8a1a586b0f4326164e8c14">setMinPen()</a> </dd></dl>
522
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00154">154</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
524
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
527
<a class="anchor" name="c749a9ba8c2d05f4da83c6f6f2f8a0ec"></a><!-- doxytag: member="QwtPlotGrid::setMajPen" ref="c749a9ba8c2d05f4da83c6f6f2f8a0ec" args="(const QPen &p)" -->
528
<div class="memitem">
529
<div class="memproto">
530
<table class="memname">
532
<td class="memname">void QwtPlotGrid::setMajPen </td>
534
<td class="paramtype">const QPen & </td>
535
<td class="paramname"> <em>p</em> </td>
536
<td> ) </td>
537
<td width="100%"></td>
544
Assign a pen for the major gridlines.
546
<dl compact><dt><b>Parameters:</b></dt><dd>
547
<table border="0" cellspacing="2" cellpadding="0">
548
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>Pen </td></tr>
551
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#db1b3e68547f46727f97437ab73630f8">majPen()</a>, <a class="el" href="class_qwt_plot_grid.html#012823a76b8a1a586b0f4326164e8c14">setMinPen()</a>, <a class="el" href="class_qwt_plot_grid.html#d84a6b1110d593af76e5e777ae1e8bfe">setPen()</a> </dd></dl>
554
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00169">169</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
556
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
559
<a class="anchor" name="db1b3e68547f46727f97437ab73630f8"></a><!-- doxytag: member="QwtPlotGrid::majPen" ref="db1b3e68547f46727f97437ab73630f8" args="() const" -->
560
<div class="memitem">
561
<div class="memproto">
562
<table class="memname">
564
<td class="memname">const QPen & QwtPlotGrid::majPen </td>
566
<td class="paramname"> </td>
567
<td> ) </td>
568
<td width="100%"> const</td>
575
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the pen for the major gridlines </dd></dl>
576
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#c749a9ba8c2d05f4da83c6f6f2f8a0ec">setMajPen()</a>, <a class="el" href="class_qwt_plot_grid.html#012823a76b8a1a586b0f4326164e8c14">setMinPen()</a>, <a class="el" href="class_qwt_plot_grid.html#d84a6b1110d593af76e5e777ae1e8bfe">setPen()</a> </dd></dl>
579
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00271">271</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
582
<a class="anchor" name="012823a76b8a1a586b0f4326164e8c14"></a><!-- doxytag: member="QwtPlotGrid::setMinPen" ref="012823a76b8a1a586b0f4326164e8c14" args="(const QPen &p)" -->
583
<div class="memitem">
584
<div class="memproto">
585
<table class="memname">
587
<td class="memname">void QwtPlotGrid::setMinPen </td>
589
<td class="paramtype">const QPen & </td>
590
<td class="paramname"> <em>p</em> </td>
591
<td> ) </td>
592
<td width="100%"></td>
599
Assign a pen for the minor gridlines.
601
<dl compact><dt><b>Parameters:</b></dt><dd>
602
<table border="0" cellspacing="2" cellpadding="0">
603
<tr><td valign="top"></td><td valign="top"><em>p</em> </td><td>Pen </td></tr>
608
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00182">182</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
610
References <a class="el" href="qwt__plot__item_8cpp-source.html#l00307">QwtPlotItem::itemChanged()</a>.
613
<a class="anchor" name="8d7f601031a12efbe4763b405e9b4f31"></a><!-- doxytag: member="QwtPlotGrid::minPen" ref="8d7f601031a12efbe4763b405e9b4f31" args="() const" -->
614
<div class="memitem">
615
<div class="memproto">
616
<table class="memname">
618
<td class="memname">const QPen & QwtPlotGrid::minPen </td>
620
<td class="paramname"> </td>
621
<td> ) </td>
622
<td width="100%"> const</td>
629
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the pen for the minor gridlines </dd></dl>
630
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_grid.html#012823a76b8a1a586b0f4326164e8c14">setMinPen()</a>, <a class="el" href="class_qwt_plot_grid.html#c749a9ba8c2d05f4da83c6f6f2f8a0ec">setMajPen()</a>, <a class="el" href="class_qwt_plot_grid.html#d84a6b1110d593af76e5e777ae1e8bfe">setPen()</a> </dd></dl>
633
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00280">280</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
636
<a class="anchor" name="e9c6c4d3bf10c755ac74cc951ce0f676"></a><!-- doxytag: member="QwtPlotGrid::draw" ref="e9c6c4d3bf10c755ac74cc951ce0f676" args="(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRect &rect) const" -->
637
<div class="memitem">
638
<div class="memproto">
639
<table class="memname">
641
<td class="memname">void QwtPlotGrid::draw </td>
643
<td class="paramtype">QPainter * </td>
644
<td class="paramname"> <em>painter</em>, </td>
647
<td class="paramkey"></td>
649
<td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
650
<td class="paramname"> <em>xMap</em>, </td>
653
<td class="paramkey"></td>
655
<td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> & </td>
656
<td class="paramname"> <em>yMap</em>, </td>
659
<td class="paramkey"></td>
661
<td class="paramtype">const QRect & </td>
662
<td class="paramname"> <em>canvasRect</em></td><td> </td>
667
<td></td><td></td><td width="100%"> const<code> [virtual]</code></td>
676
The grid is drawn into the bounding rectangle such that gridlines begin and end at the rectangle's borders. The X and Y maps are used to map the scale divisions into the drawing region screen. <dl compact><dt><b>Parameters:</b></dt><dd>
677
<table border="0" cellspacing="2" cellpadding="0">
678
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
679
<tr><td valign="top"></td><td valign="top"><em>xMap</em> </td><td>X axis map </td></tr>
680
<tr><td valign="top"></td><td valign="top"><em>yMap</em> </td><td>Y axis </td></tr>
681
<tr><td valign="top"></td><td valign="top"><em>canvasRect</em> </td><td>Contents rect of the plot canvas </td></tr>
686
Implements <a class="el" href="class_qwt_plot_item.html#7f1084999b7b3780ba06216ad511686b">QwtPlotItem</a>.
688
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00203">203</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
691
<a class="anchor" name="d15166f257160adc90b60b9e29d69edf"></a><!-- doxytag: member="QwtPlotGrid::updateScaleDiv" ref="d15166f257160adc90b60b9e29d69edf" args="(const QwtScaleDiv &xMap, const QwtScaleDiv &yMap)" -->
692
<div class="memitem">
693
<div class="memproto">
694
<table class="memname">
696
<td class="memname">void QwtPlotGrid::updateScaleDiv </td>
698
<td class="paramtype">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td>
699
<td class="paramname"> <em>xMap</em>, </td>
702
<td class="paramkey"></td>
704
<td class="paramtype">const <a class="el" href="class_qwt_scale_div.html">QwtScaleDiv</a> & </td>
705
<td class="paramname"> <em>yMap</em></td><td> </td>
710
<td></td><td></td><td width="100%"><code> [virtual]</code></td>
717
Update the item to changes of the axes scale division.
719
Update the item, when the axes of plot have changed. The default implementation does nothing, but items that depend on the scale division (like <a class="el" href="class_qwt_plot_grid.html#43001238f3024c15baa8ae61b29ae170">QwtPlotGrid()</a>) have to reimplement <a class="el" href="class_qwt_plot_grid.html#d15166f257160adc90b60b9e29d69edf">updateScaleDiv()</a><p>
720
<dl compact><dt><b>Parameters:</b></dt><dd>
721
<table border="0" cellspacing="2" cellpadding="0">
722
<tr><td valign="top"></td><td valign="top"><em>xScaleDiv</em> </td><td>Scale division of the x-axis </td></tr>
723
<tr><td valign="top"></td><td valign="top"><em>yScaleDiv</em> </td><td>Scale division of the y-axis</td></tr>
726
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot.html#1fb2dbc3697a66024d48c08b1d18f8a5">QwtPlot::updateAxes()</a> </dd></dl>
729
Reimplemented from <a class="el" href="class_qwt_plot_item.html#bf6a70847d3db952161ca4d4a952eea0">QwtPlotItem</a>.
731
Definition at line <a class="el" href="qwt__plot__grid_8cpp-source.html#l00334">334</a> of file <a class="el" href="qwt__plot__grid_8cpp-source.html">qwt_plot_grid.cpp</a>.
733
References <a class="el" href="qwt__plot__grid_8cpp-source.html#l00125">setXDiv()</a>, and <a class="el" href="qwt__plot__grid_8cpp-source.html#l00140">setYDiv()</a>.
736
<hr size="1"><address style="align: right;"><small>Generated on Sun Mar 22 16:54:58 2009 for Qwt User's Guide by
737
<a href="http://www.doxygen.org/index.html">
738
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>