暂无描述

class_line.html 28KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  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 Line</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_line-members.html">Lista de todos los miembros</a> </div>
  88. <div class="headertitle">
  89. <div class="title">Referencia de la Clase Line</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <p><code>#include &lt;<a class="el" href="line_8h_source.html">line.h</a>&gt;</code></p>
  93. <div class="dynheader">
  94. Diagrama de herencias de Line</div>
  95. <div class="dyncontent">
  96. <div class="center">
  97. <img src="class_line.png" usemap="#Line_map" alt=""/>
  98. <map id="Line_map" name="Line_map">
  99. </map>
  100. </div></div>
  101. <table class="memberdecls">
  102. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  103. Métodos públicos</h2></td></tr>
  104. <tr class="memitem:a4d475f9d634f50933ca84e25d7cf32f9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a4d475f9d634f50933ca84e25d7cf32f9">Line</a> (QWidget *parent=0)</td></tr>
  105. <tr class="memdesc:a4d475f9d634f50933ca84e25d7cf32f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#a4d475f9d634f50933ca84e25d7cf32f9">Más...</a><br /></td></tr>
  106. <tr class="separator:a4d475f9d634f50933ca84e25d7cf32f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a37f70dab8d5cc7560e6362093a3aa1b9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a37f70dab8d5cc7560e6362093a3aa1b9">Line</a> (int fromX, int fromY, int toX, int toY, int w, QColor c, QWidget *parent=0)</td></tr>
  108. <tr class="memdesc:a37f70dab8d5cc7560e6362093a3aa1b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor para una linea especificando el (fromX,fromY) and (toX,toY) <a href="#a37f70dab8d5cc7560e6362093a3aa1b9">Más...</a><br /></td></tr>
  109. <tr class="separator:a37f70dab8d5cc7560e6362093a3aa1b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a742b2aea487313953635d1e504c6b866"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a742b2aea487313953635d1e504c6b866">Line</a> (int fromX, int fromY, int length, double angle, int w, QColor c, QWidget *parent=0)</td></tr>
  111. <tr class="memdesc:a742b2aea487313953635d1e504c6b866"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor para una linea especificando el (fromX,fromY) and (toX,toY) <a href="#a742b2aea487313953635d1e504c6b866">Más...</a><br /></td></tr>
  112. <tr class="separator:a742b2aea487313953635d1e504c6b866"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:ac1475ffee823a7c05b2ac91bfe61596d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#ac1475ffee823a7c05b2ac91bfe61596d">setCoords</a> (int fromX, int fromY, int toX, int toY)</td></tr>
  114. <tr class="memdesc:ac1475ffee823a7c05b2ac91bfe61596d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajustador de las coordenadas de la linea. <a href="#ac1475ffee823a7c05b2ac91bfe61596d">Más...</a><br /></td></tr>
  115. <tr class="separator:ac1475ffee823a7c05b2ac91bfe61596d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:ac5b6d8e786cf3820fa36b8bda7130823"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#ac5b6d8e786cf3820fa36b8bda7130823">setpenColor</a> (QColor c)</td></tr>
  117. <tr class="memdesc:ac5b6d8e786cf3820fa36b8bda7130823"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajustador del color del boligrafo. <a href="#ac5b6d8e786cf3820fa36b8bda7130823">Más...</a><br /></td></tr>
  118. <tr class="separator:ac5b6d8e786cf3820fa36b8bda7130823"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:a346d88820371b5a4710eed8a638fc451"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a346d88820371b5a4710eed8a638fc451">setPenWidth</a> (int w)</td></tr>
  120. <tr class="memdesc:a346d88820371b5a4710eed8a638fc451"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajustador del ancho del boligrafo. <a href="#a346d88820371b5a4710eed8a638fc451">Más...</a><br /></td></tr>
  121. <tr class="separator:a346d88820371b5a4710eed8a638fc451"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a0e23ee7edc154bd73fefab4d88cae150"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a0e23ee7edc154bd73fefab4d88cae150">getX0</a> ()</td></tr>
  123. <tr class="memdesc:a0e23ee7edc154bd73fefab4d88cae150"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve la coordenada inicial x. <a href="#a0e23ee7edc154bd73fefab4d88cae150">Más...</a><br /></td></tr>
  124. <tr class="separator:a0e23ee7edc154bd73fefab4d88cae150"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a971146fd8bbf711123f03e45daf923c9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a971146fd8bbf711123f03e45daf923c9">getY0</a> ()</td></tr>
  126. <tr class="memdesc:a971146fd8bbf711123f03e45daf923c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve la coordenada inicial y. <a href="#a971146fd8bbf711123f03e45daf923c9">Más...</a><br /></td></tr>
  127. <tr class="separator:a971146fd8bbf711123f03e45daf923c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a1f51d8df03219f5f63d656bc0e9b2830"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a1f51d8df03219f5f63d656bc0e9b2830">getX1</a> ()</td></tr>
  129. <tr class="memdesc:a1f51d8df03219f5f63d656bc0e9b2830"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve la coordenada final x. <a href="#a1f51d8df03219f5f63d656bc0e9b2830">Más...</a><br /></td></tr>
  130. <tr class="separator:a1f51d8df03219f5f63d656bc0e9b2830"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a9cc398fdcf93212a3e4db28ac26a88a9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a9cc398fdcf93212a3e4db28ac26a88a9">getY1</a> ()</td></tr>
  132. <tr class="memdesc:a9cc398fdcf93212a3e4db28ac26a88a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve la coordenada final y. <a href="#a9cc398fdcf93212a3e4db28ac26a88a9">Más...</a><br /></td></tr>
  133. <tr class="separator:a9cc398fdcf93212a3e4db28ac26a88a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. </table><table class="memberdecls">
  135. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  136. Métodos protegidos</h2></td></tr>
  137. <tr class="memitem:a7e1f30fa9d7375fd67a2b4cf5a1b6a76"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e1f30fa9d7375fd67a2b4cf5a1b6a76"></a>
  138. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a7e1f30fa9d7375fd67a2b4cf5a1b6a76">paintEvent</a> (QPaintEvent *)</td></tr>
  139. <tr class="memdesc:a7e1f30fa9d7375fd67a2b4cf5a1b6a76"><td class="mdescLeft">&#160;</td><td class="mdescRight">La funcion para el evento de pintar es invocada automaticamente cada ves que evento de repintar ocurre. <br /></td></tr>
  140. <tr class="separator:a7e1f30fa9d7375fd67a2b4cf5a1b6a76"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. </table><table class="memberdecls">
  142. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  143. Atributos privados</h2></td></tr>
  144. <tr class="memitem:a647f6f5c0e2b197e3671f8bdb9ff64a2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a647f6f5c0e2b197e3671f8bdb9ff64a2">x0</a></td></tr>
  145. <tr class="separator:a647f6f5c0e2b197e3671f8bdb9ff64a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:a8e276229892969c7d82f56581e0c168b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a8e276229892969c7d82f56581e0c168b">y0</a></td></tr>
  147. <tr class="separator:a8e276229892969c7d82f56581e0c168b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:a1c37aeef714f6c96454c2a9a2dadb69a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a1c37aeef714f6c96454c2a9a2dadb69a">x1</a></td></tr>
  149. <tr class="separator:a1c37aeef714f6c96454c2a9a2dadb69a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:a850c96af61bd595a68b5e867540204f1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a850c96af61bd595a68b5e867540204f1">y1</a></td></tr>
  151. <tr class="separator:a850c96af61bd595a68b5e867540204f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:a4fc1d856f822dd0b88676e6c22a65f14"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a4fc1d856f822dd0b88676e6c22a65f14">penWidth</a></td></tr>
  153. <tr class="separator:a4fc1d856f822dd0b88676e6c22a65f14"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:a8778d952d4d2867bd2f31e5857c368b4"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a8778d952d4d2867bd2f31e5857c368b4">penColor</a></td></tr>
  155. <tr class="separator:a8778d952d4d2867bd2f31e5857c368b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. </table>
  157. <a name="details" id="details"></a><h2 class="groupheader">Descripción detallada</h2>
  158. <div class="textblock"><p>Una clase para describir lineas </p>
  159. </div><h2 class="groupheader">Documentación del constructor y destructor</h2>
  160. <a class="anchor" id="a4d475f9d634f50933ca84e25d7cf32f9"></a>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <table class="mlabels">
  164. <tr>
  165. <td class="mlabels-left">
  166. <table class="memname">
  167. <tr>
  168. <td class="memname">Line::Line </td>
  169. <td>(</td>
  170. <td class="paramtype">QWidget *&#160;</td>
  171. <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
  172. <td></td>
  173. </tr>
  174. </table>
  175. </td>
  176. <td class="mlabels-right">
  177. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>Constructor. </p>
  182. <p>Constructor que ajusta las coordenadas a 0, el color y el ancho del boligrafo a negro y 1 respectivamente. </p>
  183. </div>
  184. </div>
  185. <a class="anchor" id="a37f70dab8d5cc7560e6362093a3aa1b9"></a>
  186. <div class="memitem">
  187. <div class="memproto">
  188. <table class="memname">
  189. <tr>
  190. <td class="memname">Line::Line </td>
  191. <td>(</td>
  192. <td class="paramtype">int&#160;</td>
  193. <td class="paramname"><em>fromX</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>fromY</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>toX</em>, </td>
  206. </tr>
  207. <tr>
  208. <td class="paramkey"></td>
  209. <td></td>
  210. <td class="paramtype">int&#160;</td>
  211. <td class="paramname"><em>toY</em>, </td>
  212. </tr>
  213. <tr>
  214. <td class="paramkey"></td>
  215. <td></td>
  216. <td class="paramtype">int&#160;</td>
  217. <td class="paramname"><em>w</em>, </td>
  218. </tr>
  219. <tr>
  220. <td class="paramkey"></td>
  221. <td></td>
  222. <td class="paramtype">QColor&#160;</td>
  223. <td class="paramname"><em>c</em>, </td>
  224. </tr>
  225. <tr>
  226. <td class="paramkey"></td>
  227. <td></td>
  228. <td class="paramtype">QWidget *&#160;</td>
  229. <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
  230. </tr>
  231. <tr>
  232. <td></td>
  233. <td>)</td>
  234. <td></td><td></td>
  235. </tr>
  236. </table>
  237. </div><div class="memdoc">
  238. <p>Constructor para una linea especificando el (fromX,fromY) and (toX,toY) </p>
  239. <p>Constructor de una linea, especificando las coordenadas (fromX,fromY) y (toX,toY)</p>
  240. <dl class="params"><dt>Parámetros</dt><dd>
  241. <table class="params">
  242. <tr><td class="paramname">fromX</td><td>coordenada x inicial </td></tr>
  243. <tr><td class="paramname">fromY</td><td>coordenada y inicial </td></tr>
  244. <tr><td class="paramname">toX</td><td>coordenada x final </td></tr>
  245. <tr><td class="paramname">toY</td><td>coordenada y final </td></tr>
  246. <tr><td class="paramname">w</td><td>ancho de la pluma </td></tr>
  247. <tr><td class="paramname">c</td><td>color de la linea </td></tr>
  248. <tr><td class="paramname">parent</td><td>padre de esta linea</td></tr>
  249. <tr><td class="paramname">fromX</td><td>coordenada x inicial </td></tr>
  250. <tr><td class="paramname">fromY</td><td>coordenada y inicial </td></tr>
  251. <tr><td class="paramname">toX</td><td>coordenada x final </td></tr>
  252. <tr><td class="paramname">toY</td><td>end coordenada y final </td></tr>
  253. <tr><td class="paramname">w</td><td>ancho del boligrafo </td></tr>
  254. <tr><td class="paramname">c</td><td>color de la linea. </td></tr>
  255. <tr><td class="paramname">parent</td><td>parent of this line </td></tr>
  256. </table>
  257. </dd>
  258. </dl>
  259. </div>
  260. </div>
  261. <a class="anchor" id="a742b2aea487313953635d1e504c6b866"></a>
  262. <div class="memitem">
  263. <div class="memproto">
  264. <table class="memname">
  265. <tr>
  266. <td class="memname">Line::Line </td>
  267. <td>(</td>
  268. <td class="paramtype">int&#160;</td>
  269. <td class="paramname"><em>fromX</em>, </td>
  270. </tr>
  271. <tr>
  272. <td class="paramkey"></td>
  273. <td></td>
  274. <td class="paramtype">int&#160;</td>
  275. <td class="paramname"><em>fromY</em>, </td>
  276. </tr>
  277. <tr>
  278. <td class="paramkey"></td>
  279. <td></td>
  280. <td class="paramtype">int&#160;</td>
  281. <td class="paramname"><em>length</em>, </td>
  282. </tr>
  283. <tr>
  284. <td class="paramkey"></td>
  285. <td></td>
  286. <td class="paramtype">double&#160;</td>
  287. <td class="paramname"><em>angle</em>, </td>
  288. </tr>
  289. <tr>
  290. <td class="paramkey"></td>
  291. <td></td>
  292. <td class="paramtype">int&#160;</td>
  293. <td class="paramname"><em>w</em>, </td>
  294. </tr>
  295. <tr>
  296. <td class="paramkey"></td>
  297. <td></td>
  298. <td class="paramtype">QColor&#160;</td>
  299. <td class="paramname"><em>c</em>, </td>
  300. </tr>
  301. <tr>
  302. <td class="paramkey"></td>
  303. <td></td>
  304. <td class="paramtype">QWidget *&#160;</td>
  305. <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
  306. </tr>
  307. <tr>
  308. <td></td>
  309. <td>)</td>
  310. <td></td><td></td>
  311. </tr>
  312. </table>
  313. </div><div class="memdoc">
  314. <p>Constructor para una linea especificando el (fromX,fromY) and (toX,toY) </p>
  315. <p>Constructor de una linea, especificando la coordenada (fromX, fromY) and el largo (length) y el angulo (angle).</p>
  316. <dl class="params"><dt>Parámetros</dt><dd>
  317. <table class="params">
  318. <tr><td class="paramname">fromX</td><td>coordenada x inicial </td></tr>
  319. <tr><td class="paramname">fromY</td><td>coordenada y inicial </td></tr>
  320. <tr><td class="paramname">length</td><td>largo de la linea </td></tr>
  321. <tr><td class="paramname">angle</td><td>angulo de la linea </td></tr>
  322. <tr><td class="paramname">w</td><td>ancho de la pluma </td></tr>
  323. <tr><td class="paramname">c</td><td>color de la linea </td></tr>
  324. <tr><td class="paramname">parent</td><td>padre de esta linea</td></tr>
  325. <tr><td class="paramname">fromX</td><td>coordenada x inicial </td></tr>
  326. <tr><td class="paramname">fromY</td><td>coordenada y inicia </td></tr>
  327. <tr><td class="paramname">length</td><td>largo de la linea </td></tr>
  328. <tr><td class="paramname">angle</td><td>angulo de la linea </td></tr>
  329. <tr><td class="paramname">w</td><td>ancho de la linea </td></tr>
  330. <tr><td class="paramname">c</td><td>color de la linea </td></tr>
  331. <tr><td class="paramname">parent</td><td>padre de esta linea </td></tr>
  332. </table>
  333. </dd>
  334. </dl>
  335. </div>
  336. </div>
  337. <h2 class="groupheader">Documentación de las funciones miembro</h2>
  338. <a class="anchor" id="a0e23ee7edc154bd73fefab4d88cae150"></a>
  339. <div class="memitem">
  340. <div class="memproto">
  341. <table class="memname">
  342. <tr>
  343. <td class="memname">int Line::getX0 </td>
  344. <td>(</td>
  345. <td class="paramname"></td><td>)</td>
  346. <td></td>
  347. </tr>
  348. </table>
  349. </div><div class="memdoc">
  350. <p>Devuelve la coordenada inicial x. </p>
  351. <dl class="section return"><dt>Devuelve</dt><dd>coordenada inicial x </dd></dl>
  352. </div>
  353. </div>
  354. <a class="anchor" id="a1f51d8df03219f5f63d656bc0e9b2830"></a>
  355. <div class="memitem">
  356. <div class="memproto">
  357. <table class="memname">
  358. <tr>
  359. <td class="memname">int Line::getX1 </td>
  360. <td>(</td>
  361. <td class="paramname"></td><td>)</td>
  362. <td></td>
  363. </tr>
  364. </table>
  365. </div><div class="memdoc">
  366. <p>Devuelve la coordenada final x. </p>
  367. <dl class="section return"><dt>Devuelve</dt><dd>coordenada final x. </dd></dl>
  368. </div>
  369. </div>
  370. <a class="anchor" id="a971146fd8bbf711123f03e45daf923c9"></a>
  371. <div class="memitem">
  372. <div class="memproto">
  373. <table class="memname">
  374. <tr>
  375. <td class="memname">int Line::getY0 </td>
  376. <td>(</td>
  377. <td class="paramname"></td><td>)</td>
  378. <td></td>
  379. </tr>
  380. </table>
  381. </div><div class="memdoc">
  382. <p>Devuelve la coordenada inicial y. </p>
  383. <dl class="section return"><dt>Devuelve</dt><dd>coordenada inicial y </dd></dl>
  384. </div>
  385. </div>
  386. <a class="anchor" id="a9cc398fdcf93212a3e4db28ac26a88a9"></a>
  387. <div class="memitem">
  388. <div class="memproto">
  389. <table class="memname">
  390. <tr>
  391. <td class="memname">int Line::getY1 </td>
  392. <td>(</td>
  393. <td class="paramname"></td><td>)</td>
  394. <td></td>
  395. </tr>
  396. </table>
  397. </div><div class="memdoc">
  398. <p>Devuelve la coordenada final y. </p>
  399. <dl class="section return"><dt>Devuelve</dt><dd>coordenada final y </dd></dl>
  400. </div>
  401. </div>
  402. <a class="anchor" id="ac1475ffee823a7c05b2ac91bfe61596d"></a>
  403. <div class="memitem">
  404. <div class="memproto">
  405. <table class="memname">
  406. <tr>
  407. <td class="memname">void Line::setCoords </td>
  408. <td>(</td>
  409. <td class="paramtype">int&#160;</td>
  410. <td class="paramname"><em>fromX</em>, </td>
  411. </tr>
  412. <tr>
  413. <td class="paramkey"></td>
  414. <td></td>
  415. <td class="paramtype">int&#160;</td>
  416. <td class="paramname"><em>fromY</em>, </td>
  417. </tr>
  418. <tr>
  419. <td class="paramkey"></td>
  420. <td></td>
  421. <td class="paramtype">int&#160;</td>
  422. <td class="paramname"><em>toX</em>, </td>
  423. </tr>
  424. <tr>
  425. <td class="paramkey"></td>
  426. <td></td>
  427. <td class="paramtype">int&#160;</td>
  428. <td class="paramname"><em>toY</em>&#160;</td>
  429. </tr>
  430. <tr>
  431. <td></td>
  432. <td>)</td>
  433. <td></td><td></td>
  434. </tr>
  435. </table>
  436. </div><div class="memdoc">
  437. <p>Ajustador de las coordenadas de la linea. </p>
  438. <dl class="params"><dt>Parámetros</dt><dd>
  439. <table class="params">
  440. <tr><td class="paramname">fromX</td><td>coordenada x inicial </td></tr>
  441. <tr><td class="paramname">fromY</td><td>coordenada y inicial </td></tr>
  442. <tr><td class="paramname">toX</td><td>coordenada x final </td></tr>
  443. <tr><td class="paramname">toY</td><td>end coordenada y final </td></tr>
  444. </table>
  445. </dd>
  446. </dl>
  447. </div>
  448. </div>
  449. <a class="anchor" id="ac5b6d8e786cf3820fa36b8bda7130823"></a>
  450. <div class="memitem">
  451. <div class="memproto">
  452. <table class="memname">
  453. <tr>
  454. <td class="memname">void Line::setpenColor </td>
  455. <td>(</td>
  456. <td class="paramtype">QColor&#160;</td>
  457. <td class="paramname"><em>c</em></td><td>)</td>
  458. <td></td>
  459. </tr>
  460. </table>
  461. </div><div class="memdoc">
  462. <p>Ajustador del color del boligrafo. </p>
  463. <dl class="params"><dt>Parámetros</dt><dd>
  464. <table class="params">
  465. <tr><td class="paramname">c</td><td>color de la linea </td></tr>
  466. </table>
  467. </dd>
  468. </dl>
  469. </div>
  470. </div>
  471. <a class="anchor" id="a346d88820371b5a4710eed8a638fc451"></a>
  472. <div class="memitem">
  473. <div class="memproto">
  474. <table class="memname">
  475. <tr>
  476. <td class="memname">void Line::setPenWidth </td>
  477. <td>(</td>
  478. <td class="paramtype">int&#160;</td>
  479. <td class="paramname"><em>w</em></td><td>)</td>
  480. <td></td>
  481. </tr>
  482. </table>
  483. </div><div class="memdoc">
  484. <p>Ajustador del ancho del boligrafo. </p>
  485. <dl class="params"><dt>Parámetros</dt><dd>
  486. <table class="params">
  487. <tr><td class="paramname">w</td><td>ancho de la linea </td></tr>
  488. </table>
  489. </dd>
  490. </dl>
  491. </div>
  492. </div>
  493. <h2 class="groupheader">Documentación de los datos miembro</h2>
  494. <a class="anchor" id="a8778d952d4d2867bd2f31e5857c368b4"></a>
  495. <div class="memitem">
  496. <div class="memproto">
  497. <table class="mlabels">
  498. <tr>
  499. <td class="mlabels-left">
  500. <table class="memname">
  501. <tr>
  502. <td class="memname">QColor Line::penColor</td>
  503. </tr>
  504. </table>
  505. </td>
  506. <td class="mlabels-right">
  507. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  508. </tr>
  509. </table>
  510. </div><div class="memdoc">
  511. <p>pen color / color del boligrafo </p>
  512. </div>
  513. </div>
  514. <a class="anchor" id="a4fc1d856f822dd0b88676e6c22a65f14"></a>
  515. <div class="memitem">
  516. <div class="memproto">
  517. <table class="mlabels">
  518. <tr>
  519. <td class="mlabels-left">
  520. <table class="memname">
  521. <tr>
  522. <td class="memname">int Line::penWidth</td>
  523. </tr>
  524. </table>
  525. </td>
  526. <td class="mlabels-right">
  527. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  528. </tr>
  529. </table>
  530. </div><div class="memdoc">
  531. <p>pen width / ancho del boligrafo </p>
  532. </div>
  533. </div>
  534. <a class="anchor" id="a647f6f5c0e2b197e3671f8bdb9ff64a2"></a>
  535. <div class="memitem">
  536. <div class="memproto">
  537. <table class="mlabels">
  538. <tr>
  539. <td class="mlabels-left">
  540. <table class="memname">
  541. <tr>
  542. <td class="memname">int Line::x0</td>
  543. </tr>
  544. </table>
  545. </td>
  546. <td class="mlabels-right">
  547. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  548. </tr>
  549. </table>
  550. </div><div class="memdoc">
  551. <p>initial coord x / coordenada inicial x </p>
  552. </div>
  553. </div>
  554. <a class="anchor" id="a1c37aeef714f6c96454c2a9a2dadb69a"></a>
  555. <div class="memitem">
  556. <div class="memproto">
  557. <table class="mlabels">
  558. <tr>
  559. <td class="mlabels-left">
  560. <table class="memname">
  561. <tr>
  562. <td class="memname">int Line::x1</td>
  563. </tr>
  564. </table>
  565. </td>
  566. <td class="mlabels-right">
  567. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  568. </tr>
  569. </table>
  570. </div><div class="memdoc">
  571. <p>ending coord x / coordenada final x </p>
  572. </div>
  573. </div>
  574. <a class="anchor" id="a8e276229892969c7d82f56581e0c168b"></a>
  575. <div class="memitem">
  576. <div class="memproto">
  577. <table class="mlabels">
  578. <tr>
  579. <td class="mlabels-left">
  580. <table class="memname">
  581. <tr>
  582. <td class="memname">int Line::y0</td>
  583. </tr>
  584. </table>
  585. </td>
  586. <td class="mlabels-right">
  587. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  588. </tr>
  589. </table>
  590. </div><div class="memdoc">
  591. <p>initial coord y / coordenada inicial y </p>
  592. </div>
  593. </div>
  594. <a class="anchor" id="a850c96af61bd595a68b5e867540204f1"></a>
  595. <div class="memitem">
  596. <div class="memproto">
  597. <table class="mlabels">
  598. <tr>
  599. <td class="mlabels-left">
  600. <table class="memname">
  601. <tr>
  602. <td class="memname">int Line::y1</td>
  603. </tr>
  604. </table>
  605. </td>
  606. <td class="mlabels-right">
  607. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  608. </tr>
  609. </table>
  610. </div><div class="memdoc">
  611. <p>ending coord y / coordenada final y </p>
  612. </div>
  613. </div>
  614. <hr/>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
  615. <li><a class="el" href="line_8h_source.html">line.h</a></li>
  616. <li>line.cpp</li>
  617. </ul>
  618. </div><!-- contents -->
  619. <!-- start footer part -->
  620. <hr class="footer"/><address class="footer"><small>
  621. Generado el Lunes, 22 de Junio de 2015 15:30:54 para My Project por &#160;<a href="http://www.doxygen.org/index.html">
  622. <img class="footer" src="doxygen.png" alt="doxygen"/>
  623. </a> 1.8.9.1
  624. </small></address>
  625. </body>
  626. </html>