No Description

class_drawing_window.html 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>My Project: Referencia de la Clase DrawingWindow</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generado por Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Página&#160;principal</span></a></li>
  41. <li class="current"><a href="annotated.html"><span>Clases</span></a></li>
  42. <li><a href="files.html"><span>Archivos</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Buscar" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="annotated.html"><span>Lista&#160;de&#160;clases</span></a></li>
  64. <li><a href="classes.html"><span>Índice&#160;de&#160;clases</span></a></li>
  65. <li><a href="hierarchy.html"><span>Jerarquía&#160;de&#160;la&#160;clase</span></a></li>
  66. <li><a href="functions.html"><span>Miembros&#160;de&#160;las&#160;clases</span></a></li>
  67. </ul>
  68. </div>
  69. <!-- window showing the filter options -->
  70. <div id="MSearchSelectWindow"
  71. onmouseover="return searchBox.OnSearchSelectShow()"
  72. onmouseout="return searchBox.OnSearchSelectHide()"
  73. onkeydown="return searchBox.OnSearchSelectKey(event)">
  74. </div>
  75. <!-- iframe showing the search results (closed by default) -->
  76. <div id="MSearchResultsWindow">
  77. <iframe src="javascript:void(0)" frameborder="0"
  78. name="MSearchResults" id="MSearchResults">
  79. </iframe>
  80. </div>
  81. </div><!-- top -->
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-methods">Métodos públicos</a> &#124;
  85. <a href="#pro-methods">Métodos protegidos</a> &#124;
  86. <a href="#pri-attribs">Atributos privados</a> &#124;
  87. <a href="class_drawing_window-members.html">Lista de todos los miembros</a> </div>
  88. <div class="headertitle">
  89. <div class="title">Referencia de la Clase DrawingWindow</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <div class="dynheader">
  93. Diagrama de herencias de DrawingWindow</div>
  94. <div class="dyncontent">
  95. <div class="center">
  96. <img src="class_drawing_window.png" usemap="#DrawingWindow_map" alt=""/>
  97. <map id="DrawingWindow_map" name="DrawingWindow_map">
  98. </map>
  99. </div></div>
  100. <table class="memberdecls">
  101. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  102. Métodos públicos</h2></td></tr>
  103. <tr class="memitem:aff3d1b3cbeee8f0e92b49c050d8ca494"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#aff3d1b3cbeee8f0e92b49c050d8ca494">DrawingWindow</a> (QWidget *parent=0)</td></tr>
  104. <tr class="memdesc:aff3d1b3cbeee8f0e92b49c050d8ca494"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#aff3d1b3cbeee8f0e92b49c050d8ca494">Más...</a><br /></td></tr>
  105. <tr class="separator:aff3d1b3cbeee8f0e92b49c050d8ca494"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a3097e096223530c9f93737441d77422f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a3097e096223530c9f93737441d77422f">addLine</a> (int x0, int y0, int x1, int y1, int width, QColor color)</td></tr>
  107. <tr class="memdesc:a3097e096223530c9f93737441d77422f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Anade una linea a la ventana, especificando las coordenadas de los puntos inciales y finales. <a href="#a3097e096223530c9f93737441d77422f">Más...</a><br /></td></tr>
  108. <tr class="separator:a3097e096223530c9f93737441d77422f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:ae03504caa7648347ec56eb58cf5b5db4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#ae03504caa7648347ec56eb58cf5b5db4">addLinePolar</a> (int x0, int y0, int length, double angle, int width, QColor color)</td></tr>
  110. <tr class="memdesc:ae03504caa7648347ec56eb58cf5b5db4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Anade una linea a la ventana, especificando las coordenadas del punto inicial, el largo y el angulo. <a href="#ae03504caa7648347ec56eb58cf5b5db4">Más...</a><br /></td></tr>
  111. <tr class="separator:ae03504caa7648347ec56eb58cf5b5db4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a34dec0c13dc01eaa303589e28acecf95"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a34dec0c13dc01eaa303589e28acecf95">box</a> (int x, int y, int sideLength, QColor c)</td></tr>
  113. <tr class="memdesc:a34dec0c13dc01eaa303589e28acecf95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dibuja una caja con los lados del tamano sideLength. <a href="#a34dec0c13dc01eaa303589e28acecf95">Más...</a><br /></td></tr>
  114. <tr class="separator:a34dec0c13dc01eaa303589e28acecf95"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:aa58d7247e92b513920c788523187fcbd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#aa58d7247e92b513920c788523187fcbd">boxes</a> (int x, int y, int sideLength, double shrinkFactor, int smallestLength, QColor c)</td></tr>
  116. <tr class="memdesc:aa58d7247e92b513920c788523187fcbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funcion recursiva que dibuja cajas mas pequenas dentro de las cuatro esquenas de las cajas. <a href="#aa58d7247e92b513920c788523187fcbd">Más...</a><br /></td></tr>
  117. <tr class="separator:aa58d7247e92b513920c788523187fcbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a5a5f640d60404722d029ec14896692a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a5a5f640d60404722d029ec14896692a0">snowHelper</a> (int size, int level)</td></tr>
  119. <tr class="memdesc:a5a5f640d60404722d029ec14896692a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">function de interface para la funcion recursiva snowflake <a href="#a5a5f640d60404722d029ec14896692a0">Más...</a><br /></td></tr>
  120. <tr class="separator:a5a5f640d60404722d029ec14896692a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a13d52d1571e4a34d1bd3cb09a71dfa5f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a13d52d1571e4a34d1bd3cb09a71dfa5f">snowflake</a> (int x, int y, int size, double angle, int level, QColor c)</td></tr>
  122. <tr class="memdesc:a13d52d1571e4a34d1bd3cb09a71dfa5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Figura recursiva, el copo de nieve presentado en: <a href="https://sites.google.com/a/wellesley.edu/wellesley-cs118-spring13/lectures-labs/lab-6-turtle-recursion">https://sites.google.com/a/wellesley.edu/wellesley-cs118-spring13/lectures-labs/lab-6-turtle-recursion</a> sf = sf(n-1) + 60 grados sf(n-1) + 60 grados sf(n-1) + s(n-1) sf(0) = line. <a href="#a13d52d1571e4a34d1bd3cb09a71dfa5f">Más...</a><br /></td></tr>
  123. <tr class="separator:a13d52d1571e4a34d1bd3cb09a71dfa5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. </table><table class="memberdecls">
  125. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  126. Métodos protegidos</h2></td></tr>
  127. <tr class="memitem:aceb9c5cc4f2ef40d99aca7d3fbd4e91a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aceb9c5cc4f2ef40d99aca7d3fbd4e91a"></a>
  128. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#aceb9c5cc4f2ef40d99aca7d3fbd4e91a">paintEvent</a> (QPaintEvent *)</td></tr>
  129. <tr class="memdesc:aceb9c5cc4f2ef40d99aca7d3fbd4e91a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funcion invocada en un evento de pintar. <br /></td></tr>
  130. <tr class="separator:aceb9c5cc4f2ef40d99aca7d3fbd4e91a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. </table><table class="memberdecls">
  132. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  133. Atributos privados</h2></td></tr>
  134. <tr class="memitem:ad58ced401c1eaf6cfaf67a0f8f94ce18"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad58ced401c1eaf6cfaf67a0f8f94ce18"></a>
  135. Ui::DrawingWindow *&#160;</td><td class="memItemRight" valign="bottom"><b>ui</b></td></tr>
  136. <tr class="separator:ad58ced401c1eaf6cfaf67a0f8f94ce18"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a6e1effc34bb2f2c43becfd1df203b693"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e1effc34bb2f2c43becfd1df203b693"></a>
  138. vector&lt; <a class="el" href="class_line.html">Line</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><b>vL</b></td></tr>
  139. <tr class="separator:a6e1effc34bb2f2c43becfd1df203b693"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. </table>
  141. <h2 class="groupheader">Documentación del constructor y destructor</h2>
  142. <a class="anchor" id="aff3d1b3cbeee8f0e92b49c050d8ca494"></a>
  143. <div class="memitem">
  144. <div class="memproto">
  145. <table class="mlabels">
  146. <tr>
  147. <td class="mlabels-left">
  148. <table class="memname">
  149. <tr>
  150. <td class="memname">DrawingWindow::DrawingWindow </td>
  151. <td>(</td>
  152. <td class="paramtype">QWidget *&#160;</td>
  153. <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
  154. <td></td>
  155. </tr>
  156. </table>
  157. </td>
  158. <td class="mlabels-right">
  159. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  160. </tr>
  161. </table>
  162. </div><div class="memdoc">
  163. <p>Constructor. </p>
  164. <dl class="params"><dt>Parámetros</dt><dd>
  165. <table class="params">
  166. <tr><td class="paramname">parent</td><td>ventana padre </td></tr>
  167. </table>
  168. </dd>
  169. </dl>
  170. </div>
  171. </div>
  172. <h2 class="groupheader">Documentación de las funciones miembro</h2>
  173. <a class="anchor" id="a3097e096223530c9f93737441d77422f"></a>
  174. <div class="memitem">
  175. <div class="memproto">
  176. <table class="memname">
  177. <tr>
  178. <td class="memname">void DrawingWindow::addLine </td>
  179. <td>(</td>
  180. <td class="paramtype">int&#160;</td>
  181. <td class="paramname"><em>x0</em>, </td>
  182. </tr>
  183. <tr>
  184. <td class="paramkey"></td>
  185. <td></td>
  186. <td class="paramtype">int&#160;</td>
  187. <td class="paramname"><em>y0</em>, </td>
  188. </tr>
  189. <tr>
  190. <td class="paramkey"></td>
  191. <td></td>
  192. <td class="paramtype">int&#160;</td>
  193. <td class="paramname"><em>x1</em>, </td>
  194. </tr>
  195. <tr>
  196. <td class="paramkey"></td>
  197. <td></td>
  198. <td class="paramtype">int&#160;</td>
  199. <td class="paramname"><em>y1</em>, </td>
  200. </tr>
  201. <tr>
  202. <td class="paramkey"></td>
  203. <td></td>
  204. <td class="paramtype">int&#160;</td>
  205. <td class="paramname"><em>width</em>, </td>
  206. </tr>
  207. <tr>
  208. <td class="paramkey"></td>
  209. <td></td>
  210. <td class="paramtype">QColor&#160;</td>
  211. <td class="paramname"><em>color</em>&#160;</td>
  212. </tr>
  213. <tr>
  214. <td></td>
  215. <td>)</td>
  216. <td></td><td></td>
  217. </tr>
  218. </table>
  219. </div><div class="memdoc">
  220. <p>Anade una linea a la ventana, especificando las coordenadas de los puntos inciales y finales. </p>
  221. <dl class="params"><dt>Parámetros</dt><dd>
  222. <table class="params">
  223. <tr><td class="paramname">x0</td><td>x inicial </td></tr>
  224. <tr><td class="paramname">y0</td><td>y inicial </td></tr>
  225. <tr><td class="paramname">x1</td><td>x final </td></tr>
  226. <tr><td class="paramname">y1</td><td>y final </td></tr>
  227. <tr><td class="paramname">width</td><td>ancho de la linea </td></tr>
  228. <tr><td class="paramname">color</td><td>color de la linea </td></tr>
  229. </table>
  230. </dd>
  231. </dl>
  232. </div>
  233. </div>
  234. <a class="anchor" id="ae03504caa7648347ec56eb58cf5b5db4"></a>
  235. <div class="memitem">
  236. <div class="memproto">
  237. <table class="memname">
  238. <tr>
  239. <td class="memname">void DrawingWindow::addLinePolar </td>
  240. <td>(</td>
  241. <td class="paramtype">int&#160;</td>
  242. <td class="paramname"><em>x0</em>, </td>
  243. </tr>
  244. <tr>
  245. <td class="paramkey"></td>
  246. <td></td>
  247. <td class="paramtype">int&#160;</td>
  248. <td class="paramname"><em>y0</em>, </td>
  249. </tr>
  250. <tr>
  251. <td class="paramkey"></td>
  252. <td></td>
  253. <td class="paramtype">int&#160;</td>
  254. <td class="paramname"><em>length</em>, </td>
  255. </tr>
  256. <tr>
  257. <td class="paramkey"></td>
  258. <td></td>
  259. <td class="paramtype">double&#160;</td>
  260. <td class="paramname"><em>angle</em>, </td>
  261. </tr>
  262. <tr>
  263. <td class="paramkey"></td>
  264. <td></td>
  265. <td class="paramtype">int&#160;</td>
  266. <td class="paramname"><em>width</em>, </td>
  267. </tr>
  268. <tr>
  269. <td class="paramkey"></td>
  270. <td></td>
  271. <td class="paramtype">QColor&#160;</td>
  272. <td class="paramname"><em>color</em>&#160;</td>
  273. </tr>
  274. <tr>
  275. <td></td>
  276. <td>)</td>
  277. <td></td><td></td>
  278. </tr>
  279. </table>
  280. </div><div class="memdoc">
  281. <p>Anade una linea a la ventana, especificando las coordenadas del punto inicial, el largo y el angulo. </p>
  282. <dl class="params"><dt>Parámetros</dt><dd>
  283. <table class="params">
  284. <tr><td class="paramname">x0</td><td>x incial </td></tr>
  285. <tr><td class="paramname">y0</td><td>y inicial </td></tr>
  286. <tr><td class="paramname">length</td><td>largo de la linea </td></tr>
  287. <tr><td class="paramname">angle</td><td>angulo de la linea </td></tr>
  288. <tr><td class="paramname">width</td><td>ancho de la linea </td></tr>
  289. <tr><td class="paramname">color</td><td>color de la linea </td></tr>
  290. </table>
  291. </dd>
  292. </dl>
  293. </div>
  294. </div>
  295. <a class="anchor" id="a34dec0c13dc01eaa303589e28acecf95"></a>
  296. <div class="memitem">
  297. <div class="memproto">
  298. <table class="memname">
  299. <tr>
  300. <td class="memname">void DrawingWindow::box </td>
  301. <td>(</td>
  302. <td class="paramtype">int&#160;</td>
  303. <td class="paramname"><em>x</em>, </td>
  304. </tr>
  305. <tr>
  306. <td class="paramkey"></td>
  307. <td></td>
  308. <td class="paramtype">int&#160;</td>
  309. <td class="paramname"><em>y</em>, </td>
  310. </tr>
  311. <tr>
  312. <td class="paramkey"></td>
  313. <td></td>
  314. <td class="paramtype">int&#160;</td>
  315. <td class="paramname"><em>sideLength</em>, </td>
  316. </tr>
  317. <tr>
  318. <td class="paramkey"></td>
  319. <td></td>
  320. <td class="paramtype">QColor&#160;</td>
  321. <td class="paramname"><em>c</em>&#160;</td>
  322. </tr>
  323. <tr>
  324. <td></td>
  325. <td>)</td>
  326. <td></td><td></td>
  327. </tr>
  328. </table>
  329. </div><div class="memdoc">
  330. <p>Dibuja una caja con los lados del tamano sideLength. </p>
  331. <dl class="params"><dt>Parámetros</dt><dd>
  332. <table class="params">
  333. <tr><td class="paramname">x</td><td>coordenada inicial x de la caja </td></tr>
  334. <tr><td class="paramname">y</td><td>coordenada inicial y de la caja </td></tr>
  335. <tr><td class="paramname">sideLength</td><td>largo de los lados de la caja </td></tr>
  336. <tr><td class="paramname">c</td><td>color de la caja </td></tr>
  337. </table>
  338. </dd>
  339. </dl>
  340. </div>
  341. </div>
  342. <a class="anchor" id="aa58d7247e92b513920c788523187fcbd"></a>
  343. <div class="memitem">
  344. <div class="memproto">
  345. <table class="memname">
  346. <tr>
  347. <td class="memname">void DrawingWindow::boxes </td>
  348. <td>(</td>
  349. <td class="paramtype">int&#160;</td>
  350. <td class="paramname"><em>x</em>, </td>
  351. </tr>
  352. <tr>
  353. <td class="paramkey"></td>
  354. <td></td>
  355. <td class="paramtype">int&#160;</td>
  356. <td class="paramname"><em>y</em>, </td>
  357. </tr>
  358. <tr>
  359. <td class="paramkey"></td>
  360. <td></td>
  361. <td class="paramtype">int&#160;</td>
  362. <td class="paramname"><em>sideLength</em>, </td>
  363. </tr>
  364. <tr>
  365. <td class="paramkey"></td>
  366. <td></td>
  367. <td class="paramtype">double&#160;</td>
  368. <td class="paramname"><em>shrinkFactor</em>, </td>
  369. </tr>
  370. <tr>
  371. <td class="paramkey"></td>
  372. <td></td>
  373. <td class="paramtype">int&#160;</td>
  374. <td class="paramname"><em>smallestLength</em>, </td>
  375. </tr>
  376. <tr>
  377. <td class="paramkey"></td>
  378. <td></td>
  379. <td class="paramtype">QColor&#160;</td>
  380. <td class="paramname"><em>c</em>&#160;</td>
  381. </tr>
  382. <tr>
  383. <td></td>
  384. <td>)</td>
  385. <td></td><td></td>
  386. </tr>
  387. </table>
  388. </div><div class="memdoc">
  389. <p>Funcion recursiva que dibuja cajas mas pequenas dentro de las cuatro esquenas de las cajas. </p>
  390. <dl class="params"><dt>Parámetros</dt><dd>
  391. <table class="params">
  392. <tr><td class="paramname">x</td><td>coordenada inicial x </td></tr>
  393. <tr><td class="paramname">y</td><td>coordenada inicial y </td></tr>
  394. <tr><td class="paramname">sideLength</td><td>largo de los lados de la caja </td></tr>
  395. <tr><td class="paramname">shrinkFactor</td><td>factor para disminuir el tamano de los lados en la recursion para las cajas interiores </td></tr>
  396. <tr><td class="paramname">smallestLength</td><td>largo mas pequeno de el tamano de el lado de las cajas </td></tr>
  397. <tr><td class="paramname">c</td><td>color de las cajas </td></tr>
  398. </table>
  399. </dd>
  400. </dl>
  401. </div>
  402. </div>
  403. <a class="anchor" id="a13d52d1571e4a34d1bd3cb09a71dfa5f"></a>
  404. <div class="memitem">
  405. <div class="memproto">
  406. <table class="memname">
  407. <tr>
  408. <td class="memname">void DrawingWindow::snowflake </td>
  409. <td>(</td>
  410. <td class="paramtype">int&#160;</td>
  411. <td class="paramname"><em>x</em>, </td>
  412. </tr>
  413. <tr>
  414. <td class="paramkey"></td>
  415. <td></td>
  416. <td class="paramtype">int&#160;</td>
  417. <td class="paramname"><em>y</em>, </td>
  418. </tr>
  419. <tr>
  420. <td class="paramkey"></td>
  421. <td></td>
  422. <td class="paramtype">int&#160;</td>
  423. <td class="paramname"><em>size</em>, </td>
  424. </tr>
  425. <tr>
  426. <td class="paramkey"></td>
  427. <td></td>
  428. <td class="paramtype">double&#160;</td>
  429. <td class="paramname"><em>angle</em>, </td>
  430. </tr>
  431. <tr>
  432. <td class="paramkey"></td>
  433. <td></td>
  434. <td class="paramtype">int&#160;</td>
  435. <td class="paramname"><em>level</em>, </td>
  436. </tr>
  437. <tr>
  438. <td class="paramkey"></td>
  439. <td></td>
  440. <td class="paramtype">QColor&#160;</td>
  441. <td class="paramname"><em>c</em>&#160;</td>
  442. </tr>
  443. <tr>
  444. <td></td>
  445. <td>)</td>
  446. <td></td><td></td>
  447. </tr>
  448. </table>
  449. </div><div class="memdoc">
  450. <p>Figura recursiva, el copo de nieve presentado en: <a href="https://sites.google.com/a/wellesley.edu/wellesley-cs118-spring13/lectures-labs/lab-6-turtle-recursion">https://sites.google.com/a/wellesley.edu/wellesley-cs118-spring13/lectures-labs/lab-6-turtle-recursion</a> sf = sf(n-1) + 60 grados sf(n-1) + 60 grados sf(n-1) + s(n-1) sf(0) = line. </p>
  451. <dl class="params"><dt>Parámetros</dt><dd>
  452. <table class="params">
  453. <tr><td class="paramname">x</td><td>coordenada inicial x </td></tr>
  454. <tr><td class="paramname">y</td><td>coordenada inicial y </td></tr>
  455. <tr><td class="paramname">size</td><td>tamano del copo de nieve </td></tr>
  456. <tr><td class="paramname">angle</td><td>angulo de la linea del copo de nieve </td></tr>
  457. <tr><td class="paramname">level</td><td>profundidad de la recursion </td></tr>
  458. <tr><td class="paramname">c</td><td>color de las lineas (copo de nieve) </td></tr>
  459. </table>
  460. </dd>
  461. </dl>
  462. </div>
  463. </div>
  464. <a class="anchor" id="a5a5f640d60404722d029ec14896692a0"></a>
  465. <div class="memitem">
  466. <div class="memproto">
  467. <table class="memname">
  468. <tr>
  469. <td class="memname">void DrawingWindow::snowHelper </td>
  470. <td>(</td>
  471. <td class="paramtype">int&#160;</td>
  472. <td class="paramname"><em>size</em>, </td>
  473. </tr>
  474. <tr>
  475. <td class="paramkey"></td>
  476. <td></td>
  477. <td class="paramtype">int&#160;</td>
  478. <td class="paramname"><em>level</em>&#160;</td>
  479. </tr>
  480. <tr>
  481. <td></td>
  482. <td>)</td>
  483. <td></td><td></td>
  484. </tr>
  485. </table>
  486. </div><div class="memdoc">
  487. <p>function de interface para la funcion recursiva snowflake </p>
  488. <dl class="params"><dt>Parámetros</dt><dd>
  489. <table class="params">
  490. <tr><td class="paramname">size</td><td>tamano del copo de nieve </td></tr>
  491. <tr><td class="paramname">level</td><td>profundidad de la recursion </td></tr>
  492. </table>
  493. </dd>
  494. </dl>
  495. </div>
  496. </div>
  497. <hr/>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
  498. <li><a class="el" href="drawing_window_8h_source.html">drawingWindow.h</a></li>
  499. <li>boxes.cpp</li>
  500. <li>drawingWindow.cpp</li>
  501. <li>snowflake.cpp</li>
  502. </ul>
  503. </div><!-- contents -->
  504. <!-- start footer part -->
  505. <hr class="footer"/><address class="footer"><small>
  506. Generado el Lunes, 22 de Junio de 2015 15:30:54 para My Project por &#160;<a href="http://www.doxygen.org/index.html">
  507. <img class="footer" src="doxygen.png" alt="doxygen"/>
  508. </a> 1.8.9.1
  509. </small></address>
  510. </body>
  511. </html>