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">
6 <!-- Generated by Doxygen 1.4.3 -->
7 <div class=
"qindex"><a class=
"qindex" href=
"index.html">Main
Page
</a> |
<a class=
"qindex" href=
"namespaces.html">Namespace List
</a> |
<a class=
"qindex" href=
"hierarchy.html">Class
Hierarchy
</a> |
<a class=
"qindex" href=
"annotated.html">Class
List
</a> |
<a class=
"qindex" href=
"dirs.html">Directories
</a> |
<a class=
"qindex" href=
"files.html">File
List
</a> |
<a class=
"qindex" href=
"functions.html">Class
Members
</a> |
<a class=
"qindex" href=
"globals.html">File
Members
</a> |
<a class=
"qindex" href=
"pages.html">Related
Pages
</a></div>
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>
13 <code>#include
<laLayout.h
></code>
15 Inherits
<a class=
"el" href=
"classqan_1_1la_1_1_layout.html">qan::la::Layout
</a>.
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=
"">
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=
"">
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">
27 <tr><td colspan=
"2"><br><h2>UndirectedGraph Constructor/Destructor
</h2></td></tr>
28 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top"> </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"> </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
</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> &graph,
<a class=
"el" href=
"classqan_1_1la_1_1_grid.html">la::Grid
</a> &grid, int width, int height, utl::Progress
&progress)
</td></tr>
34 <tr><td class=
"mdescLeft"> </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
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1la_1_1_undirected_graph.html#z49_1">add
</a> (Vectorf
&a, const Vectorf
&b)
</td></tr>
37 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">static void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1la_1_1_undirected_graph.html#z49_2">scale
</a> (Vectorf
&p, float scale)
</td></tr>
39 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">static Vectorf
</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
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1la_1_1_undirected_graph.html#z49_4">length
</a> (const Vectorf
&v)
</td></tr>
43 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">static float
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classqan_1_1la_1_1_undirected_graph.html#z49_5">length2
</a> (const Vectorf
&v)
</td></tr>
45 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">Vectorf
</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> &node,
<a class=
"el" href=
"classqan_1_1la_1_1_graph.html">la::Graph
</a> &graph)
</td></tr>
47 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">Vectorf
</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> &node,
<a class=
"el" href=
"classqan_1_1la_1_1_graph.html">la::Graph
</a> &graph)
</td></tr>
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.
53 <hr><h2>Constructor
& 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">
58 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
60 <td class=
"md" nowrap
valign=
"top">qan::la::UndirectedGraph::UndirectedGraph
</td>
61 <td class=
"md" valign=
"top">(
</td>
62 <td class=
"mdname1" valign=
"top" nowrap
> </td>
63 <td class=
"md" valign=
"top"> )
</td>
64 <td class=
"md" nowrap
><code> [inline]
</code></td>
70 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
78 <a class=
"el" href=
"classqan_1_1la_1_1_undirected_graph.html">UndirectedGraph
</a> constructor.
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 &a, const Vectorf &b)> --><p>
85 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
88 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
90 <td class=
"md" nowrap
valign=
"top">static void qan::la::UndirectedGraph::add
</td>
91 <td class=
"md" valign=
"top">(
</td>
92 <td class=
"md" nowrap
valign=
"top">Vectorf
& </td>
93 <td class=
"mdname" nowrap
> <em>a
</em>,
</td>
96 <td class=
"md" nowrap
align=
"right"></td>
98 <td class=
"md" nowrap
>const Vectorf
& </td>
99 <td class=
"mdname" nowrap
> <em>b
</em></td>
103 <td class=
"md">)
</td>
104 <td class=
"md" colspan=
"2"><code> [static]
</code></td>
110 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
121 <a class=
"anchor" name=
"z49_6"></a><!-- doxytag: member=<qan::la::UndirectedGraph::computeRepulseForce> ref=<z49_6> args=<(la::Node &node, la::Graph &graph)> --><p>
122 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
125 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
127 <td class=
"md" nowrap
valign=
"top">Vectorf qan::la::UndirectedGraph::computeRepulseForce
</td>
128 <td class=
"md" valign=
"top">(
</td>
129 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"classqan_1_1la_1_1_node.html">la::Node
</a> & </td>
130 <td class=
"mdname" nowrap
> <em>node
</em>,
</td>
133 <td class=
"md" nowrap
align=
"right"></td>
135 <td class=
"md" nowrap
><a class=
"el" href=
"classqan_1_1la_1_1_graph.html">la::Graph
</a> & </td>
136 <td class=
"mdname" nowrap
> <em>graph
</em></td>
140 <td class=
"md">)
</td>
141 <td class=
"md" colspan=
"2"><code> [private]
</code></td>
147 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
158 <a class=
"anchor" name=
"z49_7"></a><!-- doxytag: member=<qan::la::UndirectedGraph::computeSpringForce> ref=<z49_7> args=<(la::Node &node, la::Graph &graph)> --><p>
159 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
162 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
164 <td class=
"md" nowrap
valign=
"top">Vectorf qan::la::UndirectedGraph::computeSpringForce
</td>
165 <td class=
"md" valign=
"top">(
</td>
166 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"classqan_1_1la_1_1_node.html">la::Node
</a> & </td>
167 <td class=
"mdname" nowrap
> <em>node
</em>,
</td>
170 <td class=
"md" nowrap
align=
"right"></td>
172 <td class=
"md" nowrap
><a class=
"el" href=
"classqan_1_1la_1_1_graph.html">la::Graph
</a> & </td>
173 <td class=
"mdname" nowrap
> <em>graph
</em></td>
177 <td class=
"md">)
</td>
178 <td class=
"md" colspan=
"2"><code> [private]
</code></td>
184 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
195 <a class=
"anchor" name=
"z49_0"></a><!-- doxytag: member=<qan::la::UndirectedGraph::layout> ref=<z49_0> args=<(la::Graph &graph, la::Grid &grid, int width, int height, utl::Progress &progress)> --><p>
196 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
199 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
201 <td class=
"md" nowrap
valign=
"top">void qan::la::UndirectedGraph::layout
</td>
202 <td class=
"md" valign=
"top">(
</td>
203 <td class=
"md" nowrap
valign=
"top"><a class=
"el" href=
"classqan_1_1la_1_1_graph.html">la::Graph
</a> & </td>
204 <td class=
"mdname" nowrap
> <em>graph
</em>,
</td>
207 <td class=
"md" nowrap
align=
"right"></td>
209 <td class=
"md" nowrap
><a class=
"el" href=
"classqan_1_1la_1_1_grid.html">la::Grid
</a> & </td>
210 <td class=
"mdname" nowrap
> <em>grid
</em>,
</td>
213 <td class=
"md" nowrap
align=
"right"></td>
215 <td class=
"md" nowrap
>int
</td>
216 <td class=
"mdname" nowrap
> <em>width
</em>,
</td>
219 <td class=
"md" nowrap
align=
"right"></td>
221 <td class=
"md" nowrap
>int
</td>
222 <td class=
"mdname" nowrap
> <em>height
</em>,
</td>
225 <td class=
"md" nowrap
align=
"right"></td>
227 <td class=
"md" nowrap
>utl::Progress
& </td>
228 <td class=
"mdname" nowrap
> <em>progress
</em></td>
232 <td class=
"md">)
</td>
233 <td class=
"md" colspan=
"2"><code> [virtual]
</code></td>
239 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
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>
254 <a class=
"anchor" name=
"z49_4"></a><!-- doxytag: member=<qan::la::UndirectedGraph::length> ref=<z49_4> args=<(const Vectorf &v)> --><p>
255 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
258 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
260 <td class=
"md" nowrap
valign=
"top">float qan::la::UndirectedGraph::length
</td>
261 <td class=
"md" valign=
"top">(
</td>
262 <td class=
"md" nowrap
valign=
"top">const Vectorf
& </td>
263 <td class=
"mdname1" valign=
"top" nowrap
> <em>v
</em> </td>
264 <td class=
"md" valign=
"top"> )
</td>
265 <td class=
"md" nowrap
><code> [static]
</code></td>
271 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
282 <a class=
"anchor" name=
"z49_5"></a><!-- doxytag: member=<qan::la::UndirectedGraph::length2> ref=<z49_5> args=<(const Vectorf &v)> --><p>
283 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
286 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
288 <td class=
"md" nowrap
valign=
"top">float qan::la::UndirectedGraph::length2
</td>
289 <td class=
"md" valign=
"top">(
</td>
290 <td class=
"md" nowrap
valign=
"top">const Vectorf
& </td>
291 <td class=
"mdname1" valign=
"top" nowrap
> <em>v
</em> </td>
292 <td class=
"md" valign=
"top"> )
</td>
293 <td class=
"md" nowrap
><code> [static]
</code></td>
299 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
310 <a class=
"anchor" name=
"z49_2"></a><!-- doxytag: member=<qan::la::UndirectedGraph::scale> ref=<z49_2> args=<(Vectorf &p, float scale)> --><p>
311 <table class=
"mdTable" cellpadding=
"2" cellspacing=
"0">
314 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
316 <td class=
"md" nowrap
valign=
"top">static void qan::la::UndirectedGraph::scale
</td>
317 <td class=
"md" valign=
"top">(
</td>
318 <td class=
"md" nowrap
valign=
"top">Vectorf
& </td>
319 <td class=
"mdname" nowrap
> <em>p
</em>,
</td>
322 <td class=
"md" nowrap
align=
"right"></td>
324 <td class=
"md" nowrap
>float
</td>
325 <td class=
"mdname" nowrap
> <em>scale
</em></td>
329 <td class=
"md">)
</td>
330 <td class=
"md" colspan=
"2"><code> [static]
</code></td>
336 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
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">
351 <table cellpadding=
"0" cellspacing=
"0" border=
"0">
353 <td class=
"md" nowrap
valign=
"top">static Vectorf qan::la::UndirectedGraph::vector
</td>
354 <td class=
"md" valign=
"top">(
</td>
355 <td class=
"md" nowrap
valign=
"top">Vectorf
</td>
356 <td class=
"mdname" nowrap
> <em>a
</em>,
</td>
359 <td class=
"md" nowrap
align=
"right"></td>
361 <td class=
"md" nowrap
>Vectorf
</td>
362 <td class=
"mdname" nowrap
> <em>b
</em></td>
366 <td class=
"md">)
</td>
367 <td class=
"md" colspan=
"2"><code> [static]
</code></td>
373 <table cellspacing=
"5" cellpadding=
"0" border=
"0">
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;">
392 <td height=
"48" style=
"font-family: Helvetica,Arial,sans-serif;">
394 <dt><a href=
"http://www.libqanava.org"><font size=
"2">www.libqanava.org
</font></a><font size=
"2">
395 Qanava - QCanvas Avanc
é</font></dt>
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>