File: classWt_1_1WLineF.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (303 lines) | stat: -rw-r--r-- 14,565 bytes parent folder | download
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!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>Wt: Wt::WLineF Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WLineF.html">WLineF</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WLineF Class Reference<br>
<small>
[<a class="el" href="group__painting.html">Painting system</a>]</small>
</h1><!-- doxytag: class="Wt::WLineF" -->Utility class that defines a single line.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WLineF&gt;</code>
<p>

<p>
<a href="classWt_1_1WLineF-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#b533503505006e748bf0681e7f673ec4">WLineF</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#b533503505006e748bf0681e7f673ec4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#f5c42eaf0f3bf07d59be34c5c1a8d3cc">WLineF</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;p1, const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;p2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a line connecting two points.  <a href="#f5c42eaf0f3bf07d59be34c5c1a8d3cc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#76ec4074899bddcd5f5f7c98b325aa9e">WLineF</a> (double x1, double y1, double x2, double y2)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a line connecting two points.  <a href="#76ec4074899bddcd5f5f7c98b325aa9e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#e77953fa42db1dfa3ca31ea724b9fa2e">x1</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the X coordinate of the first point.  <a href="#e77953fa42db1dfa3ca31ea724b9fa2e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#3cd53cb1c953a0eb8d46d6093c4fd464">y1</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the Y coordinate of the first point.  <a href="#3cd53cb1c953a0eb8d46d6093c4fd464"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#b35731a2fb8572145cf44ddaead5cbb1">x2</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the X coordinate of the second point.  <a href="#b35731a2fb8572145cf44ddaead5cbb1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#266e3d68414a37bdd4e594796e70b51b">y2</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the Y coordinate of the second point.  <a href="#266e3d68414a37bdd4e594796e70b51b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WPointF.html">WPointF</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#26d62a64bdc03ec0c89d081c3542becf">p1</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the first point.  <a href="#26d62a64bdc03ec0c89d081c3542becf"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WPointF.html">WPointF</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html#4775a8b23cc30daf2917ac938711706f">p2</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the second point.  <a href="#4775a8b23cc30daf2917ac938711706f"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Utility class that defines a single line. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="b533503505006e748bf0681e7f673ec4"></a><!-- doxytag: member="Wt::WLineF::WLineF" ref="b533503505006e748bf0681e7f673ec4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WLineF::WLineF           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default constructor. 
<p>
Constructs a line from (<em>x1=0</em>,<em>y1=0</em>) to (<em>x2=0</em>,<code>y2=0</code>). 
</div>
</div><p>
<a class="anchor" name="f5c42eaf0f3bf07d59be34c5c1a8d3cc"></a><!-- doxytag: member="Wt::WLineF::WLineF" ref="f5c42eaf0f3bf07d59be34c5c1a8d3cc" args="(const WPointF &amp;p1, const WPointF &amp;p2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WLineF::WLineF           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>p1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>p2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a line connecting two points. 
<p>
Constructs a line from <em>p1</em> to <code>p2</code>. 
</div>
</div><p>
<a class="anchor" name="76ec4074899bddcd5f5f7c98b325aa9e"></a><!-- doxytag: member="Wt::WLineF::WLineF" ref="76ec4074899bddcd5f5f7c98b325aa9e" args="(double x1, double y1, double x2, double y2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WLineF::WLineF           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a line connecting two points. 
<p>
Constructs a line from (<em>x1</em>,<em>y1</em>) to (<em>x2</em>,<code>y2</code>). 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e77953fa42db1dfa3ca31ea724b9fa2e"></a><!-- doxytag: member="Wt::WLineF::x1" ref="e77953fa42db1dfa3ca31ea724b9fa2e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wt::WLineF::x1           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the X coordinate of the first point. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineF.html#3cd53cb1c953a0eb8d46d6093c4fd464" title="Returns the Y coordinate of the first point.">y1()</a>, <a class="el" href="classWt_1_1WLineF.html#26d62a64bdc03ec0c89d081c3542becf" title="Returns the first point.">p1()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="3cd53cb1c953a0eb8d46d6093c4fd464"></a><!-- doxytag: member="Wt::WLineF::y1" ref="3cd53cb1c953a0eb8d46d6093c4fd464" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wt::WLineF::y1           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the Y coordinate of the first point. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineF.html#e77953fa42db1dfa3ca31ea724b9fa2e" title="Returns the X coordinate of the first point.">x1()</a>, <a class="el" href="classWt_1_1WLineF.html#26d62a64bdc03ec0c89d081c3542becf" title="Returns the first point.">p1()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="b35731a2fb8572145cf44ddaead5cbb1"></a><!-- doxytag: member="Wt::WLineF::x2" ref="b35731a2fb8572145cf44ddaead5cbb1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wt::WLineF::x2           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the X coordinate of the second point. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineF.html#266e3d68414a37bdd4e594796e70b51b" title="Returns the Y coordinate of the second point.">y2()</a>, <a class="el" href="classWt_1_1WLineF.html#4775a8b23cc30daf2917ac938711706f" title="Returns the second point.">p2()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="266e3d68414a37bdd4e594796e70b51b"></a><!-- doxytag: member="Wt::WLineF::y2" ref="266e3d68414a37bdd4e594796e70b51b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wt::WLineF::y2           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the Y coordinate of the second point. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineF.html#b35731a2fb8572145cf44ddaead5cbb1" title="Returns the X coordinate of the second point.">x2()</a>, <a class="el" href="classWt_1_1WLineF.html#4775a8b23cc30daf2917ac938711706f" title="Returns the second point.">p2()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="26d62a64bdc03ec0c89d081c3542becf"></a><!-- doxytag: member="Wt::WLineF::p1" ref="26d62a64bdc03ec0c89d081c3542becf" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WPointF.html">WPointF</a> Wt::WLineF::p1           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the first point. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineF.html#e77953fa42db1dfa3ca31ea724b9fa2e" title="Returns the X coordinate of the first point.">x1()</a>, <a class="el" href="classWt_1_1WLineF.html#3cd53cb1c953a0eb8d46d6093c4fd464" title="Returns the Y coordinate of the first point.">y1()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="4775a8b23cc30daf2917ac938711706f"></a><!-- doxytag: member="Wt::WLineF::p2" ref="4775a8b23cc30daf2917ac938711706f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WPointF.html">WPointF</a> Wt::WLineF::p2           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the second point. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineF.html#b35731a2fb8572145cf44ddaead5cbb1" title="Returns the X coordinate of the second point.">x2()</a>, <a class="el" href="classWt_1_1WLineF.html#266e3d68414a37bdd4e594796e70b51b" title="Returns the Y coordinate of the second point.">y2()</a> </dd></dl>

</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>