(empty message)
[qanava.git] / doc / reference / html / classqan_1_1la_1_1_undirected_graph.html
blobdc7db9280495d4adc8e0a86628dbb8500f46ddc9
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>Qanava: qan::la::UndirectedGraph Class Reference</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.4.3 -->
7 <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</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>
8 <div class="nav">
9 <a class="el" href="namespaceqan.html">qan</a>::<a class="el" href="namespaceqan_1_1la.html">la</a>::<a class="el" href="classqan_1_1la_1_1_undirected_graph.html">UndirectedGraph</a></div>
10 <h1>qan::la::UndirectedGraph Class Reference</h1><!-- doxytag: class=<qan::la::UndirectedGraph> --><!-- doxytag: inherits=<qan::la::Layout> --><a class="el" href="classqan_1_1la_1_1_layout.html">Layout</a> an undirected graph using a spring force algorithm.
11 <a href="#_details">More...</a>
12 <p>
13 <code>#include &lt;laLayout.h&gt;</code>
14 <p>
15 Inherits <a class="el" href="classqan_1_1la_1_1_layout.html">qan::la::Layout</a>.
16 <p>
17 Inheritance diagram for qan::la::UndirectedGraph:<p><center><img src="classqan_1_1la_1_1_undirected_graph__inherit__graph.png" border="0" usemap="#qan_1_1la_1_1_undirected_graph__inherit__map" alt="Inheritance graph"></center>
18 <map name="qan_1_1la_1_1_undirected_graph__inherit__map">
19 <area href="classqan_1_1la_1_1_layout.html" shape="rect" coords="38,7,148,34" alt="">
20 </map>
21 <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for qan::la::UndirectedGraph:<p><center><img src="classqan_1_1la_1_1_undirected_graph__coll__graph.png" border="0" usemap="#qan_1_1la_1_1_undirected_graph__coll__map" alt="Collaboration graph"></center>
22 <map name="qan_1_1la_1_1_undirected_graph__coll__map">
23 <area href="classqan_1_1la_1_1_layout.html" shape="rect" coords="38,7,148,34" alt="">
24 </map>
25 <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classqan_1_1la_1_1_undirected_graph-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
26 <tr><td></td></tr>
27 <tr><td colspan="2"><br><h2>UndirectedGraph Constructor/Destructor</h2></td></tr>
28 <tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z48_0">UndirectedGraph</a> ()</td></tr>
30 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html">UndirectedGraph</a> constructor. <a href="#z48_0"></a><br></td></tr>
31 <tr><td colspan="2"><br><h2>Force Layout Generation Management</h2></td></tr>
32 <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z49_0">layout</a> (<a class="el" href="classqan_1_1la_1_1_graph.html">la::Graph</a> &amp;graph, <a class="el" href="classqan_1_1la_1_1_grid.html">la::Grid</a> &amp;grid, int width, int height, utl::Progress &amp;progress)</td></tr>
34 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classqan_1_1la_1_1_layout.html">Layout</a> 'graph' using a spring force algorithm. <a href="#z49_0"></a><br></td></tr>
35 <tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z49_1">add</a> (Vectorf &amp;a, const Vectorf &amp;b)</td></tr>
37 <tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z49_2">scale</a> (Vectorf &amp;p, float scale)</td></tr>
39 <tr><td class="memItemLeft" nowrap align="right" valign="top">static Vectorf&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z49_3">vector</a> (Vectorf a, Vectorf b)</td></tr>
41 <tr><td class="memItemLeft" nowrap align="right" valign="top">static float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z49_4">length</a> (const Vectorf &amp;v)</td></tr>
43 <tr><td class="memItemLeft" nowrap align="right" valign="top">static float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z49_5">length2</a> (const Vectorf &amp;v)</td></tr>
45 <tr><td class="memItemLeft" nowrap align="right" valign="top">Vectorf&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z49_6">computeRepulseForce</a> (<a class="el" href="classqan_1_1la_1_1_node.html">la::Node</a> &amp;node, <a class="el" href="classqan_1_1la_1_1_graph.html">la::Graph</a> &amp;graph)</td></tr>
47 <tr><td class="memItemLeft" nowrap align="right" valign="top">Vectorf&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classqan_1_1la_1_1_undirected_graph.html#z49_7">computeSpringForce</a> (<a class="el" href="classqan_1_1la_1_1_node.html">la::Node</a> &amp;node, <a class="el" href="classqan_1_1la_1_1_graph.html">la::Graph</a> &amp;graph)</td></tr>
49 </table>
50 <hr><a name="_details"></a><h2>Detailed Description</h2>
51 <a class="el" href="classqan_1_1la_1_1_layout.html">Layout</a> an undirected graph using a spring force algorithm.
52 <p>
53 <hr><h2>Constructor &amp; Destructor Documentation</h2>
54 <a class="anchor" name="z48_0"></a><!-- doxytag: member=<qan::la::UndirectedGraph::UndirectedGraph> ref=<z48_0> args=<()> --><p>
55 <table class="mdTable" cellpadding="2" cellspacing="0">
56 <tr>
57 <td class="mdRow">
58 <table cellpadding="0" cellspacing="0" border="0">
59 <tr>
60 <td class="md" nowrap valign="top">qan::la::UndirectedGraph::UndirectedGraph </td>
61 <td class="md" valign="top">(&nbsp;</td>
62 <td class="mdname1" valign="top" nowrap> </td>
63 <td class="md" valign="top">&nbsp;)&nbsp;</td>
64 <td class="md" nowrap><code> [inline]</code></td>
65 </tr>
66 </table>
67 </td>
68 </tr>
69 </table>
70 <table cellspacing="5" cellpadding="0" border="0">
71 <tr>
72 <td>
73 &nbsp;
74 </td>
75 <td>
77 <p>
78 <a class="el" href="classqan_1_1la_1_1_undirected_graph.html">UndirectedGraph</a> constructor.
79 <p>
80 </td>
81 </tr>
82 </table>
83 <hr><h2>Member Function Documentation</h2>
84 <a class="anchor" name="z49_1"></a><!-- doxytag: member=<qan::la::UndirectedGraph::add> ref=<z49_1> args=<(Vectorf &amp;a, const Vectorf &amp;b)> --><p>
85 <table class="mdTable" cellpadding="2" cellspacing="0">
86 <tr>
87 <td class="mdRow">
88 <table cellpadding="0" cellspacing="0" border="0">
89 <tr>
90 <td class="md" nowrap valign="top">static void qan::la::UndirectedGraph::add </td>
91 <td class="md" valign="top">(&nbsp;</td>
92 <td class="md" nowrap valign="top">Vectorf &amp;&nbsp;</td>
93 <td class="mdname" nowrap> <em>a</em>, </td>
94 </tr>
95 <tr>
96 <td class="md" nowrap align="right"></td>
97 <td class="md"></td>
98 <td class="md" nowrap>const Vectorf &amp;&nbsp;</td>
99 <td class="mdname" nowrap> <em>b</em></td>
100 </tr>
101 <tr>
102 <td class="md"></td>
103 <td class="md">)&nbsp;</td>
104 <td class="md" colspan="2"><code> [static]</code></td>
105 </tr>
106 </table>
107 </td>
108 </tr>
109 </table>
110 <table cellspacing="5" cellpadding="0" border="0">
111 <tr>
112 <td>
113 &nbsp;
114 </td>
115 <td>
118 </td>
119 </tr>
120 </table>
121 <a class="anchor" name="z49_6"></a><!-- doxytag: member=<qan::la::UndirectedGraph::computeRepulseForce> ref=<z49_6> args=<(la::Node &amp;node, la::Graph &amp;graph)> --><p>
122 <table class="mdTable" cellpadding="2" cellspacing="0">
123 <tr>
124 <td class="mdRow">
125 <table cellpadding="0" cellspacing="0" border="0">
126 <tr>
127 <td class="md" nowrap valign="top">Vectorf qan::la::UndirectedGraph::computeRepulseForce </td>
128 <td class="md" valign="top">(&nbsp;</td>
129 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1la_1_1_node.html">la::Node</a> &amp;&nbsp;</td>
130 <td class="mdname" nowrap> <em>node</em>, </td>
131 </tr>
132 <tr>
133 <td class="md" nowrap align="right"></td>
134 <td class="md"></td>
135 <td class="md" nowrap><a class="el" href="classqan_1_1la_1_1_graph.html">la::Graph</a> &amp;&nbsp;</td>
136 <td class="mdname" nowrap> <em>graph</em></td>
137 </tr>
138 <tr>
139 <td class="md"></td>
140 <td class="md">)&nbsp;</td>
141 <td class="md" colspan="2"><code> [private]</code></td>
142 </tr>
143 </table>
144 </td>
145 </tr>
146 </table>
147 <table cellspacing="5" cellpadding="0" border="0">
148 <tr>
149 <td>
150 &nbsp;
151 </td>
152 <td>
155 </td>
156 </tr>
157 </table>
158 <a class="anchor" name="z49_7"></a><!-- doxytag: member=<qan::la::UndirectedGraph::computeSpringForce> ref=<z49_7> args=<(la::Node &amp;node, la::Graph &amp;graph)> --><p>
159 <table class="mdTable" cellpadding="2" cellspacing="0">
160 <tr>
161 <td class="mdRow">
162 <table cellpadding="0" cellspacing="0" border="0">
163 <tr>
164 <td class="md" nowrap valign="top">Vectorf qan::la::UndirectedGraph::computeSpringForce </td>
165 <td class="md" valign="top">(&nbsp;</td>
166 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1la_1_1_node.html">la::Node</a> &amp;&nbsp;</td>
167 <td class="mdname" nowrap> <em>node</em>, </td>
168 </tr>
169 <tr>
170 <td class="md" nowrap align="right"></td>
171 <td class="md"></td>
172 <td class="md" nowrap><a class="el" href="classqan_1_1la_1_1_graph.html">la::Graph</a> &amp;&nbsp;</td>
173 <td class="mdname" nowrap> <em>graph</em></td>
174 </tr>
175 <tr>
176 <td class="md"></td>
177 <td class="md">)&nbsp;</td>
178 <td class="md" colspan="2"><code> [private]</code></td>
179 </tr>
180 </table>
181 </td>
182 </tr>
183 </table>
184 <table cellspacing="5" cellpadding="0" border="0">
185 <tr>
186 <td>
187 &nbsp;
188 </td>
189 <td>
192 </td>
193 </tr>
194 </table>
195 <a class="anchor" name="z49_0"></a><!-- doxytag: member=<qan::la::UndirectedGraph::layout> ref=<z49_0> args=<(la::Graph &amp;graph, la::Grid &amp;grid, int width, int height, utl::Progress &amp;progress)> --><p>
196 <table class="mdTable" cellpadding="2" cellspacing="0">
197 <tr>
198 <td class="mdRow">
199 <table cellpadding="0" cellspacing="0" border="0">
200 <tr>
201 <td class="md" nowrap valign="top">void qan::la::UndirectedGraph::layout </td>
202 <td class="md" valign="top">(&nbsp;</td>
203 <td class="md" nowrap valign="top"><a class="el" href="classqan_1_1la_1_1_graph.html">la::Graph</a> &amp;&nbsp;</td>
204 <td class="mdname" nowrap> <em>graph</em>, </td>
205 </tr>
206 <tr>
207 <td class="md" nowrap align="right"></td>
208 <td class="md"></td>
209 <td class="md" nowrap><a class="el" href="classqan_1_1la_1_1_grid.html">la::Grid</a> &amp;&nbsp;</td>
210 <td class="mdname" nowrap> <em>grid</em>, </td>
211 </tr>
212 <tr>
213 <td class="md" nowrap align="right"></td>
214 <td class="md"></td>
215 <td class="md" nowrap>int&nbsp;</td>
216 <td class="mdname" nowrap> <em>width</em>, </td>
217 </tr>
218 <tr>
219 <td class="md" nowrap align="right"></td>
220 <td class="md"></td>
221 <td class="md" nowrap>int&nbsp;</td>
222 <td class="mdname" nowrap> <em>height</em>, </td>
223 </tr>
224 <tr>
225 <td class="md" nowrap align="right"></td>
226 <td class="md"></td>
227 <td class="md" nowrap>utl::Progress &amp;&nbsp;</td>
228 <td class="mdname" nowrap> <em>progress</em></td>
229 </tr>
230 <tr>
231 <td class="md"></td>
232 <td class="md">)&nbsp;</td>
233 <td class="md" colspan="2"><code> [virtual]</code></td>
234 </tr>
235 </table>
236 </td>
237 </tr>
238 </table>
239 <table cellspacing="5" cellpadding="0" border="0">
240 <tr>
241 <td>
242 &nbsp;
243 </td>
244 <td>
247 <a class="el" href="classqan_1_1la_1_1_layout.html">Layout</a> 'graph' using a spring force algorithm.
251 Implements <a class="el" href="classqan_1_1la_1_1_layout.html#z43_0">qan::la::Layout</a>. </td>
252 </tr>
253 </table>
254 <a class="anchor" name="z49_4"></a><!-- doxytag: member=<qan::la::UndirectedGraph::length> ref=<z49_4> args=<(const Vectorf &amp;v)> --><p>
255 <table class="mdTable" cellpadding="2" cellspacing="0">
256 <tr>
257 <td class="mdRow">
258 <table cellpadding="0" cellspacing="0" border="0">
259 <tr>
260 <td class="md" nowrap valign="top">float qan::la::UndirectedGraph::length </td>
261 <td class="md" valign="top">(&nbsp;</td>
262 <td class="md" nowrap valign="top">const Vectorf &amp;&nbsp;</td>
263 <td class="mdname1" valign="top" nowrap> <em>v</em> </td>
264 <td class="md" valign="top">&nbsp;)&nbsp;</td>
265 <td class="md" nowrap><code> [static]</code></td>
266 </tr>
267 </table>
268 </td>
269 </tr>
270 </table>
271 <table cellspacing="5" cellpadding="0" border="0">
272 <tr>
273 <td>
274 &nbsp;
275 </td>
276 <td>
279 </td>
280 </tr>
281 </table>
282 <a class="anchor" name="z49_5"></a><!-- doxytag: member=<qan::la::UndirectedGraph::length2> ref=<z49_5> args=<(const Vectorf &amp;v)> --><p>
283 <table class="mdTable" cellpadding="2" cellspacing="0">
284 <tr>
285 <td class="mdRow">
286 <table cellpadding="0" cellspacing="0" border="0">
287 <tr>
288 <td class="md" nowrap valign="top">float qan::la::UndirectedGraph::length2 </td>
289 <td class="md" valign="top">(&nbsp;</td>
290 <td class="md" nowrap valign="top">const Vectorf &amp;&nbsp;</td>
291 <td class="mdname1" valign="top" nowrap> <em>v</em> </td>
292 <td class="md" valign="top">&nbsp;)&nbsp;</td>
293 <td class="md" nowrap><code> [static]</code></td>
294 </tr>
295 </table>
296 </td>
297 </tr>
298 </table>
299 <table cellspacing="5" cellpadding="0" border="0">
300 <tr>
301 <td>
302 &nbsp;
303 </td>
304 <td>
307 </td>
308 </tr>
309 </table>
310 <a class="anchor" name="z49_2"></a><!-- doxytag: member=<qan::la::UndirectedGraph::scale> ref=<z49_2> args=<(Vectorf &amp;p, float scale)> --><p>
311 <table class="mdTable" cellpadding="2" cellspacing="0">
312 <tr>
313 <td class="mdRow">
314 <table cellpadding="0" cellspacing="0" border="0">
315 <tr>
316 <td class="md" nowrap valign="top">static void qan::la::UndirectedGraph::scale </td>
317 <td class="md" valign="top">(&nbsp;</td>
318 <td class="md" nowrap valign="top">Vectorf &amp;&nbsp;</td>
319 <td class="mdname" nowrap> <em>p</em>, </td>
320 </tr>
321 <tr>
322 <td class="md" nowrap align="right"></td>
323 <td class="md"></td>
324 <td class="md" nowrap>float&nbsp;</td>
325 <td class="mdname" nowrap> <em>scale</em></td>
326 </tr>
327 <tr>
328 <td class="md"></td>
329 <td class="md">)&nbsp;</td>
330 <td class="md" colspan="2"><code> [static]</code></td>
331 </tr>
332 </table>
333 </td>
334 </tr>
335 </table>
336 <table cellspacing="5" cellpadding="0" border="0">
337 <tr>
338 <td>
339 &nbsp;
340 </td>
341 <td>
344 </td>
345 </tr>
346 </table>
347 <a class="anchor" name="z49_3"></a><!-- doxytag: member=<qan::la::UndirectedGraph::vector> ref=<z49_3> args=<(Vectorf a, Vectorf b)> --><p>
348 <table class="mdTable" cellpadding="2" cellspacing="0">
349 <tr>
350 <td class="mdRow">
351 <table cellpadding="0" cellspacing="0" border="0">
352 <tr>
353 <td class="md" nowrap valign="top">static Vectorf qan::la::UndirectedGraph::vector </td>
354 <td class="md" valign="top">(&nbsp;</td>
355 <td class="md" nowrap valign="top">Vectorf&nbsp;</td>
356 <td class="mdname" nowrap> <em>a</em>, </td>
357 </tr>
358 <tr>
359 <td class="md" nowrap align="right"></td>
360 <td class="md"></td>
361 <td class="md" nowrap>Vectorf&nbsp;</td>
362 <td class="mdname" nowrap> <em>b</em></td>
363 </tr>
364 <tr>
365 <td class="md"></td>
366 <td class="md">)&nbsp;</td>
367 <td class="md" colspan="2"><code> [static]</code></td>
368 </tr>
369 </table>
370 </td>
371 </tr>
372 </table>
373 <table cellspacing="5" cellpadding="0" border="0">
374 <tr>
375 <td>
376 &nbsp;
377 </td>
378 <td>
381 </td>
382 </tr>
383 </table>
384 <hr>The documentation for this class was generated from the following files:<ul>
385 <li>C:/projects/qanava/src/la/<a class="el" href="la_layout_8h.html">laLayout.h</a><li>C:/projects/qanava/src/la/<a class="el" href="la_layout_8cpp.html">laLayout.cpp</a></ul>
387 <hr style="width: 100%; height: 2px;">
388 <table width="95%" height="48" border="0"
389 cellpadding="0" cellspacing="0" style="text-align: left; width: 95%; height: 31px;">
390 <tbody>
391 <tr>
392 <td height="48" style="font-family: Helvetica,Arial,sans-serif;">
393 <dl>
394 <dt><a href="http://www.libqanava.org"><font size="2">www.libqanava.org</font></a><font size="2">
395 Qanava - QCanvas Avanc&eacute;</font></dt>
396 </dl>
397 </td>
398 <td style="vertical-align: middle; text-align: right;"><span
399 style="font-family: Helvetica,Arial,sans-serif;"><font size="2">Generated by</font></span>
401 href="http://www.doxygen.org"><img alt="Doxygen logo"
402 src="../images/doxygen.png"
403 style="border: 0px solid ; width: 100px; height: 45px;" align="middle"></a></td>
404 </tr>
405 </tbody>
406 </table>