circle_layout.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <html><!--
  2. Copyright (c) 2004 Trustees of Indiana University
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt)
  6. -->
  7. <head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Function template circle_graph_layout</title></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table cellpadding="2" width="100%"><td valign="top"><img src="../../../boost.png" alt="boost.png (6897 bytes)" width="277" height="86"></td><td align="center"><a href="../../../index.htm">Home</a></td><td align="center"><a href="../../libraries.htm">Libraries</a></td><td align="center"><a href="http://www.boost.org/people/people.htm">People</a></td><td align="center"><a href="http://www.boost.org/more/faq.htm">FAQ</a></td><td align="center"><a href="../../../more/index.htm">More</a></td></table><hr><div class="refentry" lang="en"><a name="id103562-bb"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><img src="figs/python.gif" alt="(Python)"/><span class="refentrytitle">Function template circle_graph_layout</span></h2><p>boost::circle_graph_layout &#8212; Layout the graph with the vertices at the points of a regular n-polygon. </p></div><h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2><div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis">
  8. <span class="bold"><b>template</b></span>&lt;<span class="bold"><b>typename</b></span> VertexListGraph, <span class="bold"><b>typename</b></span> PositionMap, <span class="bold"><b>typename</b></span> Radius&gt;
  9.   <span class="type"><span class="bold"><b>void</b></span></span> circle_graph_layout(<span class="bold"><b>const</b></span> VertexListGraph &amp; g, PositionMap position,
  10.                            Radius radius);</pre></div><div class="refsect1" lang="en"><a name="id821794"></a><h2>Where Defined</h2><a href="../../../boost/graph/circle_layout.hpp">boost/graph/circle_layout.hpp</a><h2>Description</h2><p>The distance from the center of the polygon to each point is determined by the <tt class="computeroutput">radius</tt> parameter. The <tt class="computeroutput">position</tt> parameter must be an Lvalue Property Map whose value type is a class type containing <tt class="computeroutput">x</tt> and <tt class="computeroutput">y</tt> members that will be set to the <tt class="computeroutput">x</tt> and <tt class="computeroutput">y</tt> coordinates.
  11. <h2>Parameters</h2>
  12. IN: <tt>const VertexListGraph&amp; g</tt>
  13. <blockquote>
  14. The graph object on which the algorithm will be applied. The type
  15. <tt>VertexListGraph</tt> must be a model of <a
  16. href="VertexListGraph.html">Vertex List Graph</a>.<br>
  17. <b>Python</b>: The parameter is named <tt>graph</tt>.
  18. </blockquote>
  19. OUT: <tt>PositionMap position</tt>
  20. <blockquote>
  21. This property map is used to store the position of each vertex. The
  22. type <tt>PositionMap</tt> must be a model of <a
  23. href="../../property_map/doc/WritablePropertyMap.html">Writable Property
  24. Map</a>, with the graph's edge descriptor type as its key type. The
  25. value type of this property map should be assignable from the
  26. type <tt>Radius</tt>. <br>
  27. <b>Python</b>: The position map must be a <tt>vertex_point2d_map</tt> for
  28. the graph.<br>
  29. <b>Python default</b>: <tt>graph.get_vertex_point2d_map("position")</tt>
  30. </blockquote>
  31. IN: <tt>Radius radius</tt>
  32. <blockquote>
  33. This is the radius of the circle on which points will be layed
  34. out. It must be compatible with <tt>double</tt>.<br>
  35. </blockquote>
  36. </p></div></div><table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr><td align="left"></td><td align="right"><small></small></td></tr></table><hr>
  37. <TABLE>
  38. <TR valign=top>
  39. <TD nowrap>Copyright &copy; 2004</TD><TD>
  40. <A HREF="http://www.boost.org/people/doug_gregor.html">Douglas Gregor</A>, Indiana University (dgregor -at- cs.indiana.edu</A>)<br>
  41. <A HREF="https://homes.cs.washington.edu/~al75">Andrew Lumsdaine</A>,
  42. Indiana University (lums -at- osl.iu.edu)
  43. </TD></TR></TABLE>
  44. </body></html>