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: QwtSymbol 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.4.6 -->
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>QwtSymbol Class Reference</h1><!-- doxytag: class="QwtSymbol" --><a href="class_qwt_symbol-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
23
A class for drawing symbols.
27
Definition at line <a class="el" href="qwt__symbol_8h-source.html#l00022">22</a> of file <a class="el" href="qwt__symbol_8h-source.html">qwt_symbol.h</a>.<table border="0" cellpadding="0" cellspacing="0">
29
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
30
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#62f457952470c2076962e83ef2c24d2f">Style</a> { <br>
31
<b>NoSymbol</b> = -1,
33
<b>Ellipse</b>,
35
<b>Rect</b>,
37
<b>Diamond</b>,
39
<b>Triangle</b>,
41
<b>DTriangle</b>,
43
<b>UTriangle</b>,
45
<b>LTriangle</b>,
47
<b>RTriangle</b>,
49
<b>Cross</b>,
51
<b>XCross</b>,
53
<b>HLine</b>,
55
<b>VLine</b>,
57
<b>Star1</b>,
59
<b>Star2</b>,
61
<b>Hexagon</b>,
63
<b>StyleCnt</b>
67
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
68
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#f57237cb9c77fe480c0512abc2afde2e">QwtSymbol</a> ()</td></tr>
70
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#8f1c507aa09dca81dcd564ef341c1a46">QwtSymbol</a> (<a class="el" href="class_qwt_symbol.html#62f457952470c2076962e83ef2c24d2f">Style</a> st, const QBrush &bd, const QPen &pn, const QSize &s)</td></tr>
72
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#5a30269273545d5ed25f7116a421eda2">~QwtSymbol</a> ()</td></tr>
74
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#aa6c97c7ba1b8e7a7cce580ee788e620">operator!=</a> (const <a class="el" href="class_qwt_symbol.html">QwtSymbol</a> &) const </td></tr>
76
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#3444517213bf5296dd9d2a78bcc5209a">operator==</a> (const <a class="el" href="class_qwt_symbol.html">QwtSymbol</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_symbol.html#348247dfc2bf79de957b7eb84a32a720">setSize</a> (const QSize &s)</td></tr>
80
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#041c86efd8763564b07332c1bdb4efb7">setSize</a> (int a, int b=-1)</td></tr>
82
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#e6aa7281d518bdd4adae8a37bbb5e09a">setBrush</a> (const QBrush &b)</td></tr>
84
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#2da17316935164c5f0682ce7e6c55827">setPen</a> (const QPen &p)</td></tr>
86
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#83c0272116817bbf765f14ad7f86e52a">setStyle</a> (<a class="el" href="class_qwt_symbol.html#62f457952470c2076962e83ef2c24d2f">Style</a> s)</td></tr>
88
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QBrush & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#a23606467898677666953e3ea4478588">brush</a> () const </td></tr>
90
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QPen & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#c4eb82409994757742577a80e9915e79">pen</a> () const </td></tr>
92
<tr><td class="memItemLeft" nowrap align="right" valign="top">const QSize & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#14be5234a29cbdde1e9b0ae92abe76ea">size</a> () const </td></tr>
94
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_qwt_symbol.html#62f457952470c2076962e83ef2c24d2f">Style</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#b826e667a5f7ac7ac4513f5a41b06176">style</a> () const </td></tr>
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#5a88bcd704acadbda4ae9dea82b22c57">draw</a> (QPainter *p, const QPoint &pt) const </td></tr>
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#bae9c8376a66fcae5324a7994e6965e2">draw</a> (QPainter *p, int x, int y) const </td></tr>
100
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_symbol.html#9b5aee0c909b2d06dae309d08a3b110f">draw</a> (QPainter *p, const QRect &r) const </td></tr>
103
<hr><h2>Member Enumeration Documentation</h2>
104
<a class="anchor" name="62f457952470c2076962e83ef2c24d2f"></a><!-- doxytag: member="QwtSymbol::Style" ref="62f457952470c2076962e83ef2c24d2f" args="" --><p>
105
<table class="mdTable" cellpadding="2" cellspacing="0">
108
<table cellpadding="0" cellspacing="0" border="0">
110
<td class="md" nowrap valign="top">enum <a class="el" href="class_qwt_symbol.html#62f457952470c2076962e83ef2c24d2f">QwtSymbol::Style</a> </td>
116
<table cellspacing="5" cellpadding="0" border="0">
124
Style <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_symbol.html#83c0272116817bbf765f14ad7f86e52a">QwtSymbol::setStyle</a>, <a class="el" href="class_qwt_symbol.html#b826e667a5f7ac7ac4513f5a41b06176">QwtSymbol::style</a> </dd></dl>
127
Definition at line <a class="el" href="qwt__symbol_8h-source.html#l00029">29</a> of file <a class="el" href="qwt__symbol_8h-source.html">qwt_symbol.h</a>. </td>
130
<hr><h2>Constructor & Destructor Documentation</h2>
131
<a class="anchor" name="f57237cb9c77fe480c0512abc2afde2e"></a><!-- doxytag: member="QwtSymbol::QwtSymbol" ref="f57237cb9c77fe480c0512abc2afde2e" args="()" --><p>
132
<table class="mdTable" cellpadding="2" cellspacing="0">
135
<table cellpadding="0" cellspacing="0" border="0">
137
<td class="md" nowrap valign="top">QwtSymbol::QwtSymbol </td>
138
<td class="md" valign="top">( </td>
139
<td class="mdname1" valign="top" nowrap> </td>
140
<td class="md" valign="top"> ) </td>
141
<td class="md" nowrap></td>
147
<table cellspacing="5" cellpadding="0" border="0">
155
Default Constructor<p>
156
The symbol is constructed with gray interior, black outline with zero width, no size and style 'NoSymbol'.
158
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00022">22</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
161
<a class="anchor" name="8f1c507aa09dca81dcd564ef341c1a46"></a><!-- doxytag: member="QwtSymbol::QwtSymbol" ref="8f1c507aa09dca81dcd564ef341c1a46" args="(Style st, const QBrush &bd, const QPen &pn, const QSize &s)" --><p>
162
<table class="mdTable" cellpadding="2" cellspacing="0">
165
<table cellpadding="0" cellspacing="0" border="0">
167
<td class="md" nowrap valign="top">QwtSymbol::QwtSymbol </td>
168
<td class="md" valign="top">( </td>
169
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_symbol.html#62f457952470c2076962e83ef2c24d2f">QwtSymbol::Style</a> </td>
170
<td class="mdname" nowrap> <em>style</em>, </td>
173
<td class="md" nowrap align="right"></td>
175
<td class="md" nowrap>const QBrush & </td>
176
<td class="mdname" nowrap> <em>brush</em>, </td>
179
<td class="md" nowrap align="right"></td>
181
<td class="md" nowrap>const QPen & </td>
182
<td class="mdname" nowrap> <em>pen</em>, </td>
185
<td class="md" nowrap align="right"></td>
187
<td class="md" nowrap>const QSize & </td>
188
<td class="mdname" nowrap> <em>size</em></td>
192
<td class="md">) </td>
193
<td class="md" colspan="2"></td>
199
<table cellspacing="5" cellpadding="0" border="0">
209
<dl compact><dt><b>Parameters:</b></dt><dd>
210
<table border="0" cellspacing="2" cellpadding="0">
211
<tr><td valign="top"></td><td valign="top"><em>style</em> </td><td>Symbol Style </td></tr>
212
<tr><td valign="top"></td><td valign="top"><em>brush</em> </td><td>brush to fill the interior </td></tr>
213
<tr><td valign="top"></td><td valign="top"><em>pen</em> </td><td>outline pen </td></tr>
214
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>size </td></tr>
219
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00037">37</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
222
<a class="anchor" name="5a30269273545d5ed25f7116a421eda2"></a><!-- doxytag: member="QwtSymbol::~QwtSymbol" ref="5a30269273545d5ed25f7116a421eda2" args="()" --><p>
223
<table class="mdTable" cellpadding="2" cellspacing="0">
226
<table cellpadding="0" cellspacing="0" border="0">
228
<td class="md" nowrap valign="top">QwtSymbol::~QwtSymbol </td>
229
<td class="md" valign="top">( </td>
230
<td class="mdname1" valign="top" nowrap> </td>
231
<td class="md" valign="top"> ) </td>
232
<td class="md" nowrap><code> [virtual]</code></td>
238
<table cellspacing="5" cellpadding="0" border="0">
250
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00047">47</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
253
<hr><h2>Member Function Documentation</h2>
254
<a class="anchor" name="a23606467898677666953e3ea4478588"></a><!-- doxytag: member="QwtSymbol::brush" ref="a23606467898677666953e3ea4478588" args="() const " --><p>
255
<table class="mdTable" cellpadding="2" cellspacing="0">
258
<table cellpadding="0" cellspacing="0" border="0">
260
<td class="md" nowrap valign="top">const QBrush& QwtSymbol::brush </td>
261
<td class="md" valign="top">( </td>
262
<td class="mdname1" valign="top" nowrap> </td>
263
<td class="md" valign="top"> ) </td>
264
<td class="md" nowrap> const<code> [inline]</code></td>
270
<table cellspacing="5" cellpadding="0" border="0">
282
Definition at line <a class="el" href="qwt__symbol_8h-source.html#l00067">67</a> of file <a class="el" href="qwt__symbol_8h-source.html">qwt_symbol.h</a>.
284
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l01128">QwtPlotCurve::drawSymbols()</a>, and <a class="el" href="qwt__symbol_8cpp-source.html#l00335">operator==()</a>. </td>
287
<a class="anchor" name="9b5aee0c909b2d06dae309d08a3b110f"></a><!-- doxytag: member="QwtSymbol::draw" ref="9b5aee0c909b2d06dae309d08a3b110f" args="(QPainter *p, const QRect &r) const " --><p>
288
<table class="mdTable" cellpadding="2" cellspacing="0">
291
<table cellpadding="0" cellspacing="0" border="0">
293
<td class="md" nowrap valign="top">void QwtSymbol::draw </td>
294
<td class="md" valign="top">( </td>
295
<td class="md" nowrap valign="top">QPainter * </td>
296
<td class="mdname" nowrap> <em>painter</em>, </td>
299
<td class="md" nowrap align="right"></td>
301
<td class="md" nowrap>const QRect & </td>
302
<td class="mdname" nowrap> <em>r</em></td>
306
<td class="md">) </td>
307
<td class="md" colspan="2"> const<code> [virtual]</code></td>
313
<table cellspacing="5" cellpadding="0" border="0">
321
Draw the symbol into a bounding rectangle.
323
This function assumes that the painter has been initialized with brush and pen before. This allows a much more performant implementation when painting many symbols with the same brush and pen like in curves.<p>
324
<dl compact><dt><b>Parameters:</b></dt><dd>
325
<table border="0" cellspacing="2" cellpadding="0">
326
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
327
<tr><td valign="top"></td><td valign="top"><em>r</em> </td><td>Bounding rectangle </td></tr>
332
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00116">116</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>.
334
References <a class="el" href="qwt__painter_8cpp-source.html#l00295">QwtPainter::drawEllipse()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00438">QwtPainter::drawLine()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00488">QwtPainter::drawPolygon()</a>, and <a class="el" href="qwt__painter_8cpp-source.html#l00177">QwtPainter::drawRect()</a>. </td>
337
<a class="anchor" name="bae9c8376a66fcae5324a7994e6965e2"></a><!-- doxytag: member="QwtSymbol::draw" ref="bae9c8376a66fcae5324a7994e6965e2" args="(QPainter *p, int x, int y) const " --><p>
338
<table class="mdTable" cellpadding="2" cellspacing="0">
341
<table cellpadding="0" cellspacing="0" border="0">
343
<td class="md" nowrap valign="top">void QwtSymbol::draw </td>
344
<td class="md" valign="top">( </td>
345
<td class="md" nowrap valign="top">QPainter * </td>
346
<td class="mdname" nowrap> <em>p</em>, </td>
349
<td class="md" nowrap align="right"></td>
351
<td class="md" nowrap>int </td>
352
<td class="mdname" nowrap> <em>x</em>, </td>
355
<td class="md" nowrap align="right"></td>
357
<td class="md" nowrap>int </td>
358
<td class="mdname" nowrap> <em>y</em></td>
362
<td class="md">) </td>
363
<td class="md" colspan="2"> const</td>
369
<table cellspacing="5" cellpadding="0" border="0">
377
Draw the symbol at a point (x,y).
381
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00100">100</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>.
383
References <a class="el" href="qwt__symbol_8cpp-source.html#l00294">draw()</a>. </td>
386
<a class="anchor" name="5a88bcd704acadbda4ae9dea82b22c57"></a><!-- doxytag: member="QwtSymbol::draw" ref="5a88bcd704acadbda4ae9dea82b22c57" args="(QPainter *p, const QPoint &pt) const " --><p>
387
<table class="mdTable" cellpadding="2" cellspacing="0">
390
<table cellpadding="0" cellspacing="0" border="0">
392
<td class="md" nowrap valign="top">void QwtSymbol::draw </td>
393
<td class="md" valign="top">( </td>
394
<td class="md" nowrap valign="top">QPainter * </td>
395
<td class="mdname" nowrap> <em>painter</em>, </td>
398
<td class="md" nowrap align="right"></td>
400
<td class="md" nowrap>const QPoint & </td>
401
<td class="mdname" nowrap> <em>pos</em></td>
405
<td class="md">) </td>
406
<td class="md" colspan="2"> const</td>
412
<table cellspacing="5" cellpadding="0" border="0">
420
Draw the symbol at a specified point.
422
<dl compact><dt><b>Parameters:</b></dt><dd>
423
<table border="0" cellspacing="2" cellpadding="0">
424
<tr><td valign="top"></td><td valign="top"><em>painter</em> </td><td>Painter </td></tr>
425
<tr><td valign="top"></td><td valign="top"><em>pos</em> </td><td>Center of the symbol </td></tr>
430
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00294">294</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>.
432
References <a class="el" href="qwt__painter_8cpp-source.html#l00161">QwtPainter::metricsMap()</a>.
434
Referenced by <a class="el" href="qwt__symbol_8cpp-source.html#l00100">draw()</a>, and <a class="el" href="qwt__plot__curve_8cpp-source.html#l01128">QwtPlotCurve::drawSymbols()</a>. </td>
437
<a class="anchor" name="aa6c97c7ba1b8e7a7cce580ee788e620"></a><!-- doxytag: member="QwtSymbol::operator!=" ref="aa6c97c7ba1b8e7a7cce580ee788e620" args="(const QwtSymbol &) const " --><p>
438
<table class="mdTable" cellpadding="2" cellspacing="0">
441
<table cellpadding="0" cellspacing="0" border="0">
443
<td class="md" nowrap valign="top">bool QwtSymbol::operator!= </td>
444
<td class="md" valign="top">( </td>
445
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_symbol.html">QwtSymbol</a> & </td>
446
<td class="mdname1" valign="top" nowrap> </td>
447
<td class="md" valign="top"> ) </td>
448
<td class="md" nowrap> const</td>
454
<table cellspacing="5" cellpadding="0" border="0">
466
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00342">342</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
469
<a class="anchor" name="3444517213bf5296dd9d2a78bcc5209a"></a><!-- doxytag: member="QwtSymbol::operator==" ref="3444517213bf5296dd9d2a78bcc5209a" args="(const QwtSymbol &) const " --><p>
470
<table class="mdTable" cellpadding="2" cellspacing="0">
473
<table cellpadding="0" cellspacing="0" border="0">
475
<td class="md" nowrap valign="top">bool QwtSymbol::operator== </td>
476
<td class="md" valign="top">( </td>
477
<td class="md" nowrap valign="top">const <a class="el" href="class_qwt_symbol.html">QwtSymbol</a> & </td>
478
<td class="mdname1" valign="top" nowrap> </td>
479
<td class="md" valign="top"> ) </td>
480
<td class="md" nowrap> const</td>
486
<table cellspacing="5" cellpadding="0" border="0">
498
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00335">335</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>.
500
References <a class="el" href="qwt__symbol_8h-source.html#l00067">brush()</a>, <a class="el" href="qwt__symbol_8h-source.html#l00069">pen()</a>, <a class="el" href="qwt__symbol_8h-source.html#l00071">size()</a>, and <a class="el" href="qwt__symbol_8h-source.html#l00073">style()</a>. </td>
503
<a class="anchor" name="c4eb82409994757742577a80e9915e79"></a><!-- doxytag: member="QwtSymbol::pen" ref="c4eb82409994757742577a80e9915e79" args="() const " --><p>
504
<table class="mdTable" cellpadding="2" cellspacing="0">
507
<table cellpadding="0" cellspacing="0" border="0">
509
<td class="md" nowrap valign="top">const QPen& QwtSymbol::pen </td>
510
<td class="md" valign="top">( </td>
511
<td class="mdname1" valign="top" nowrap> </td>
512
<td class="md" valign="top"> ) </td>
513
<td class="md" nowrap> const<code> [inline]</code></td>
519
<table cellspacing="5" cellpadding="0" border="0">
531
Definition at line <a class="el" href="qwt__symbol_8h-source.html#l00069">69</a> of file <a class="el" href="qwt__symbol_8h-source.html">qwt_symbol.h</a>.
533
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l01128">QwtPlotCurve::drawSymbols()</a>, and <a class="el" href="qwt__symbol_8cpp-source.html#l00335">operator==()</a>. </td>
536
<a class="anchor" name="e6aa7281d518bdd4adae8a37bbb5e09a"></a><!-- doxytag: member="QwtSymbol::setBrush" ref="e6aa7281d518bdd4adae8a37bbb5e09a" args="(const QBrush &b)" --><p>
537
<table class="mdTable" cellpadding="2" cellspacing="0">
540
<table cellpadding="0" cellspacing="0" border="0">
542
<td class="md" nowrap valign="top">void QwtSymbol::setBrush </td>
543
<td class="md" valign="top">( </td>
544
<td class="md" nowrap valign="top">const QBrush & </td>
545
<td class="mdname1" valign="top" nowrap> <em>br</em> </td>
546
<td class="md" valign="top"> ) </td>
547
<td class="md" nowrap></td>
553
<table cellspacing="5" cellpadding="0" border="0">
563
The brush is used to draw the interior of the symbol. <dl compact><dt><b>Parameters:</b></dt><dd>
564
<table border="0" cellspacing="2" cellpadding="0">
565
<tr><td valign="top"></td><td valign="top"><em>br</em> </td><td>brush </td></tr>
570
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00080">80</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
573
<a class="anchor" name="2da17316935164c5f0682ce7e6c55827"></a><!-- doxytag: member="QwtSymbol::setPen" ref="2da17316935164c5f0682ce7e6c55827" args="(const QPen &p)" --><p>
574
<table class="mdTable" cellpadding="2" cellspacing="0">
577
<table cellpadding="0" cellspacing="0" border="0">
579
<td class="md" nowrap valign="top">void QwtSymbol::setPen </td>
580
<td class="md" valign="top">( </td>
581
<td class="md" nowrap valign="top">const QPen & </td>
582
<td class="mdname1" valign="top" nowrap> <em>pn</em> </td>
583
<td class="md" valign="top"> ) </td>
584
<td class="md" nowrap></td>
590
<table cellspacing="5" cellpadding="0" border="0">
600
The pen is used to draw the symbol's outline.<p>
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>pn</em> </td><td>pen </td></tr>
608
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00092">92</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
611
<a class="anchor" name="041c86efd8763564b07332c1bdb4efb7"></a><!-- doxytag: member="QwtSymbol::setSize" ref="041c86efd8763564b07332c1bdb4efb7" args="(int a, int b=-1)" --><p>
612
<table class="mdTable" cellpadding="2" cellspacing="0">
615
<table cellpadding="0" cellspacing="0" border="0">
617
<td class="md" nowrap valign="top">void QwtSymbol::setSize </td>
618
<td class="md" valign="top">( </td>
619
<td class="md" nowrap valign="top">int </td>
620
<td class="mdname" nowrap> <em>w</em>, </td>
623
<td class="md" nowrap align="right"></td>
625
<td class="md" nowrap>int </td>
626
<td class="mdname" nowrap> <em>h</em> = <code>-1</code></td>
630
<td class="md">) </td>
631
<td class="md" colspan="2"></td>
637
<table cellspacing="5" cellpadding="0" border="0">
645
Specify the symbol's size.
647
If the 'h' parameter is left out or less than 0, and the 'w' parameter is greater than or equal to 0, the symbol size will be set to (w,w). <dl compact><dt><b>Parameters:</b></dt><dd>
648
<table border="0" cellspacing="2" cellpadding="0">
649
<tr><td valign="top"></td><td valign="top"><em>w</em> </td><td>width </td></tr>
650
<tr><td valign="top"></td><td valign="top"><em>h</em> </td><td>height (defaults to -1) </td></tr>
655
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00060">60</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
658
<a class="anchor" name="348247dfc2bf79de957b7eb84a32a720"></a><!-- doxytag: member="QwtSymbol::setSize" ref="348247dfc2bf79de957b7eb84a32a720" args="(const QSize &s)" --><p>
659
<table class="mdTable" cellpadding="2" cellspacing="0">
662
<table cellpadding="0" cellspacing="0" border="0">
664
<td class="md" nowrap valign="top">void QwtSymbol::setSize </td>
665
<td class="md" valign="top">( </td>
666
<td class="md" nowrap valign="top">const QSize & </td>
667
<td class="mdname1" valign="top" nowrap> <em>s</em> </td>
668
<td class="md" valign="top"> ) </td>
669
<td class="md" nowrap></td>
675
<table cellspacing="5" cellpadding="0" border="0">
683
Set the symbol's size.
687
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00068">68</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
690
<a class="anchor" name="83c0272116817bbf765f14ad7f86e52a"></a><!-- doxytag: member="QwtSymbol::setStyle" ref="83c0272116817bbf765f14ad7f86e52a" args="(Style s)" --><p>
691
<table class="mdTable" cellpadding="2" cellspacing="0">
694
<table cellpadding="0" cellspacing="0" border="0">
696
<td class="md" nowrap valign="top">void QwtSymbol::setStyle </td>
697
<td class="md" valign="top">( </td>
698
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_symbol.html#62f457952470c2076962e83ef2c24d2f">QwtSymbol::Style</a> </td>
699
<td class="mdname1" valign="top" nowrap> <em>s</em> </td>
700
<td class="md" valign="top"> ) </td>
701
<td class="md" nowrap></td>
707
<table cellspacing="5" cellpadding="0" border="0">
715
Specify the symbol style.
717
The following styles are defined:<dl>
719
<dd>No Style. The symbol cannot be drawn. </dd>
721
<dd>Ellipse or circle </dd>
727
<dd>Triangle pointing upwards </dd>
729
<dd>Triangle pointing downwards </dd>
731
<dd>Triangle pointing upwards </dd>
733
<dd>Triangle pointing left </dd>
735
<dd>Triangle pointing right </dd>
739
<dd>Diagonal cross (X) </dd>
741
<dd>Horizontal line </dd>
743
<dd>Vertical line </dd>
745
<dd>X combined with + </dd>
747
<dd>Six-pointed star </dd>
752
<dl compact><dt><b>Parameters:</b></dt><dd>
753
<table border="0" cellspacing="2" cellpadding="0">
754
<tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>style </td></tr>
759
Definition at line <a class="el" href="qwt__symbol_8cpp-source.html#l00329">329</a> of file <a class="el" href="qwt__symbol_8cpp-source.html">qwt_symbol.cpp</a>. </td>
762
<a class="anchor" name="14be5234a29cbdde1e9b0ae92abe76ea"></a><!-- doxytag: member="QwtSymbol::size" ref="14be5234a29cbdde1e9b0ae92abe76ea" args="() const " --><p>
763
<table class="mdTable" cellpadding="2" cellspacing="0">
766
<table cellpadding="0" cellspacing="0" border="0">
768
<td class="md" nowrap valign="top">const QSize& QwtSymbol::size </td>
769
<td class="md" valign="top">( </td>
770
<td class="mdname1" valign="top" nowrap> </td>
771
<td class="md" valign="top"> ) </td>
772
<td class="md" nowrap> const<code> [inline]</code></td>
778
<table cellspacing="5" cellpadding="0" border="0">
790
Definition at line <a class="el" href="qwt__symbol_8h-source.html#l00071">71</a> of file <a class="el" href="qwt__symbol_8h-source.html">qwt_symbol.h</a>.
792
Referenced by <a class="el" href="qwt__plot__curve_8cpp-source.html#l01128">QwtPlotCurve::drawSymbols()</a>, and <a class="el" href="qwt__symbol_8cpp-source.html#l00335">operator==()</a>. </td>
795
<a class="anchor" name="b826e667a5f7ac7ac4513f5a41b06176"></a><!-- doxytag: member="QwtSymbol::style" ref="b826e667a5f7ac7ac4513f5a41b06176" args="() const " --><p>
796
<table class="mdTable" cellpadding="2" cellspacing="0">
799
<table cellpadding="0" cellspacing="0" border="0">
801
<td class="md" nowrap valign="top"><a class="el" href="class_qwt_symbol.html#62f457952470c2076962e83ef2c24d2f">Style</a> QwtSymbol::style </td>
802
<td class="md" valign="top">( </td>
803
<td class="mdname1" valign="top" nowrap> </td>
804
<td class="md" valign="top"> ) </td>
805
<td class="md" nowrap> const<code> [inline]</code></td>
811
<table cellspacing="5" cellpadding="0" border="0">
823
Definition at line <a class="el" href="qwt__symbol_8h-source.html#l00073">73</a> of file <a class="el" href="qwt__symbol_8h-source.html">qwt_symbol.h</a>.
825
Referenced by <a class="el" href="qwt__symbol_8cpp-source.html#l00335">operator==()</a>. </td>
828
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 11 07:43:00 2007 for Qwt User's Guide by
829
<a href="http://www.doxygen.org/index.html">
830
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>