Ei kuvausta

class_bird.html 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  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 Bird</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-types">Tipos públicos</a> &#124;
  85. <a href="#pub-methods">Métodos públicos</a> &#124;
  86. <a href="#pro-methods">Métodos protegidos</a> &#124;
  87. <a href="#pri-methods">Métodos privados</a> &#124;
  88. <a href="#pri-attribs">Atributos privados</a> &#124;
  89. <a href="class_bird-members.html">Lista de todos los miembros</a> </div>
  90. <div class="headertitle">
  91. <div class="title">Referencia de la Clase Bird</div> </div>
  92. </div><!--header-->
  93. <div class="contents">
  94. <p><code>#include &lt;<a class="el" href="bird_8h_source.html">bird.h</a>&gt;</code></p>
  95. <div class="dynheader">
  96. Diagrama de herencias de Bird</div>
  97. <div class="dyncontent">
  98. <div class="center">
  99. <img src="class_bird.png" usemap="#Bird_map" alt=""/>
  100. <map id="Bird_map" name="Bird_map">
  101. </map>
  102. </div></div>
  103. <table class="memberdecls">
  104. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  105. Tipos públicos</h2></td></tr>
  106. <tr class="memitem:a1e608d95cce3b3c7b1497d86b37516ec"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a> { <a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1">UNI</a>,
  107. <a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070">ANGRY</a>,
  108. <a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049">UPSET</a>,
  109. <a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008">BUSHY</a>
  110. }</td></tr>
  111. <tr class="separator:a1e608d95cce3b3c7b1497d86b37516ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. </table><table class="memberdecls">
  113. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  114. Métodos públicos</h2></td></tr>
  115. <tr class="memitem:abfe484323ac9e48a6371eef4de8538fe"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#abfe484323ac9e48a6371eef4de8538fe">Bird</a> (QWidget *parent=0)</td></tr>
  116. <tr class="memdesc:abfe484323ac9e48a6371eef4de8538fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor por defecto. Las propiedades de el pajaron son ajustados como sigue: <a href="#abfe484323ac9e48a6371eef4de8538fe">Más...</a><br /></td></tr>
  117. <tr class="separator:abfe484323ac9e48a6371eef4de8538fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:aa9728cc9ffc34f902140c38ba732f6cc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#aa9728cc9ffc34f902140c38ba732f6cc">Bird</a> (int, <a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a>, QString, QString, QWidget *parent=0)</td></tr>
  119. <tr class="memdesc:aa9728cc9ffc34f902140c38ba732f6cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor que acepta especificaciones de los atributos del pajaro. <a href="#aa9728cc9ffc34f902140c38ba732f6cc">Más...</a><br /></td></tr>
  120. <tr class="separator:aa9728cc9ffc34f902140c38ba732f6cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a9ca7641056d08c5f73263d2379ac47e0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ca7641056d08c5f73263d2379ac47e0"></a>
  122. QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a9ca7641056d08c5f73263d2379ac47e0">getEyeColor</a> () const </td></tr>
  123. <tr class="memdesc:a9ca7641056d08c5f73263d2379ac47e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve el color del ojo. <br /></td></tr>
  124. <tr class="separator:a9ca7641056d08c5f73263d2379ac47e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a41a64913760b45a1c515047878d92583"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41a64913760b45a1c515047878d92583"></a>
  126. QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a41a64913760b45a1c515047878d92583">getFaceColor</a> () const </td></tr>
  127. <tr class="memdesc:a41a64913760b45a1c515047878d92583"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve el color de la cara. <br /></td></tr>
  128. <tr class="separator:a41a64913760b45a1c515047878d92583"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a835df93d19d5467ae4380273619d39e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a835df93d19d5467ae4380273619d39e5">setEyeColor</a> (QString)</td></tr>
  130. <tr class="memdesc:a835df93d19d5467ae4380273619d39e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajusta el color del ojo. <a href="#a835df93d19d5467ae4380273619d39e5">Más...</a><br /></td></tr>
  131. <tr class="separator:a835df93d19d5467ae4380273619d39e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:a0800cd1d6974f949af715da44eec9476"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a0800cd1d6974f949af715da44eec9476">setFaceColor</a> (QString)</td></tr>
  133. <tr class="memdesc:a0800cd1d6974f949af715da44eec9476"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajusta el color de la cara. <a href="#a0800cd1d6974f949af715da44eec9476">Más...</a><br /></td></tr>
  134. <tr class="separator:a0800cd1d6974f949af715da44eec9476"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:a48ac642e41fd1bd99ce3915c14d4bb4a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a48ac642e41fd1bd99ce3915c14d4bb4a"></a>
  136. int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a48ac642e41fd1bd99ce3915c14d4bb4a">getSize</a> () const </td></tr>
  137. <tr class="memdesc:a48ac642e41fd1bd99ce3915c14d4bb4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Devuelve el tamano del pajaro. <br /></td></tr>
  138. <tr class="separator:a48ac642e41fd1bd99ce3915c14d4bb4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:ac3c144d4c4e3de1821b531b6ad20e4b8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac3c144d4c4e3de1821b531b6ad20e4b8"></a>
  140. <a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a>&#160;</td><td class="memItemRight" valign="bottom"><b>getEyebrow</b> () const </td></tr>
  141. <tr class="separator:ac3c144d4c4e3de1821b531b6ad20e4b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:afe637db83f012091302bc04d29a5d1be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#afe637db83f012091302bc04d29a5d1be">setSize</a> (int)</td></tr>
  143. <tr class="memdesc:afe637db83f012091302bc04d29a5d1be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajusta el tamano del pajaro. <a href="#afe637db83f012091302bc04d29a5d1be">Más...</a><br /></td></tr>
  144. <tr class="separator:afe637db83f012091302bc04d29a5d1be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a631b29bf1daab6e7d029df40664a0604"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a631b29bf1daab6e7d029df40664a0604">setEyebrow</a> (<a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a>)</td></tr>
  146. <tr class="memdesc:a631b29bf1daab6e7d029df40664a0604"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ajusta el tipo de cejas. <a href="#a631b29bf1daab6e7d029df40664a0604">Más...</a><br /></td></tr>
  147. <tr class="separator:a631b29bf1daab6e7d029df40664a0604"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:a9e62ffa00de025d9d4b003e302c70e0e"><td class="memItemLeft" align="right" valign="top">Qt::GlobalColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a9e62ffa00de025d9d4b003e302c70e0e">getColor</a> (QString) const </td></tr>
  149. <tr class="memdesc:a9e62ffa00de025d9d4b003e302c70e0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convierte un color especificado como un string a un Qt::GlobalColor. <a href="#a9e62ffa00de025d9d4b003e302c70e0e">Más...</a><br /></td></tr>
  150. <tr class="separator:a9e62ffa00de025d9d4b003e302c70e0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. </table><table class="memberdecls">
  152. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  153. Métodos protegidos</h2></td></tr>
  154. <tr class="memitem:ac7c0133625489af1aed22ee376272d15"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac7c0133625489af1aed22ee376272d15"></a>
  155. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#ac7c0133625489af1aed22ee376272d15">paintEvent</a> (QPaintEvent *)</td></tr>
  156. <tr class="memdesc:ac7c0133625489af1aed22ee376272d15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Esta funcion es invocada automaticamente cada ves que el widget o su padre recive una senal de repintar. <br /></td></tr>
  157. <tr class="separator:ac7c0133625489af1aed22ee376272d15"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. </table><table class="memberdecls">
  159. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
  160. Métodos privados</h2></td></tr>
  161. <tr class="memitem:a8a6fa1980da30e3bab3e2d051ce9d2f7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a8a6fa1980da30e3bab3e2d051ce9d2f7">randInt</a> (int min, int max)</td></tr>
  162. <tr class="memdesc:a8a6fa1980da30e3bab3e2d051ce9d2f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Genera un entero aleatorio en el rango [min, max]. <a href="#a8a6fa1980da30e3bab3e2d051ce9d2f7">Más...</a><br /></td></tr>
  163. <tr class="separator:a8a6fa1980da30e3bab3e2d051ce9d2f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. </table><table class="memberdecls">
  165. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  166. Atributos privados</h2></td></tr>
  167. <tr class="memitem:aa8e23a86d722c6f81f969c556cef0342"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#aa8e23a86d722c6f81f969c556cef0342">size</a></td></tr>
  168. <tr class="separator:aa8e23a86d722c6f81f969c556cef0342"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. <tr class="memitem:a9ec579543e7139067b28fa07d6121c57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a9ec579543e7139067b28fa07d6121c57">eyeBrow</a></td></tr>
  170. <tr class="separator:a9ec579543e7139067b28fa07d6121c57"><td class="memSeparator" colspan="2">&#160;</td></tr>
  171. <tr class="memitem:a53ffc41e40cf2c8c2ea71ffbb97e9dba"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a53ffc41e40cf2c8c2ea71ffbb97e9dba">color</a></td></tr>
  172. <tr class="separator:a53ffc41e40cf2c8c2ea71ffbb97e9dba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  173. <tr class="memitem:a3a2f86b733b043678c46554543689a11"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_bird.html#a3a2f86b733b043678c46554543689a11">eColor</a></td></tr>
  174. <tr class="separator:a3a2f86b733b043678c46554543689a11"><td class="memSeparator" colspan="2">&#160;</td></tr>
  175. </table>
  176. <a name="details" id="details"></a><h2 class="groupheader">Descripción detallada</h2>
  177. <div class="textblock"><p>A class to represent birds.</p>
  178. <p><a class="el" href="class_bird.html">Bird</a> is a subclass of QWidget. This means that the following QWidget functions are also available for objects of the class <a class="el" href="class_bird.html">Bird</a>:</p><ul>
  179. <li>move(int x, int y): to move the bird to position (x,y)</li>
  180. <li>x(), y(): get the x position, get the y() position</li>
  181. <li>hide(): to hide a bird that has been painted </li>
  182. </ul>
  183. </div><h2 class="groupheader">Documentación de las enumeraciones miembro de la clase</h2>
  184. <a class="anchor" id="a1e608d95cce3b3c7b1497d86b37516ec"></a>
  185. <div class="memitem">
  186. <div class="memproto">
  187. <table class="memname">
  188. <tr>
  189. <td class="memname">enum <a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">Bird::EyeBrowType</a></td>
  190. </tr>
  191. </table>
  192. </div><div class="memdoc">
  193. <p>Enum type for the EyeBrow </p>
  194. <table class="fieldtable">
  195. <tr><th colspan="2">Valores de enumeraciones</th></tr><tr><td class="fieldname"><a class="anchor" id="a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1"></a>UNI&#160;</td><td class="fielddoc">
  196. <p>enum value 0 </p>
  197. </td></tr>
  198. <tr><td class="fieldname"><a class="anchor" id="a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070"></a>ANGRY&#160;</td><td class="fielddoc">
  199. <p>enum value 1 </p>
  200. </td></tr>
  201. <tr><td class="fieldname"><a class="anchor" id="a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049"></a>UPSET&#160;</td><td class="fielddoc">
  202. <p>enum value 2 </p>
  203. </td></tr>
  204. <tr><td class="fieldname"><a class="anchor" id="a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008"></a>BUSHY&#160;</td><td class="fielddoc">
  205. <p>enum value 3 </p>
  206. </td></tr>
  207. </table>
  208. </div>
  209. </div>
  210. <h2 class="groupheader">Documentación del constructor y destructor</h2>
  211. <a class="anchor" id="abfe484323ac9e48a6371eef4de8538fe"></a>
  212. <div class="memitem">
  213. <div class="memproto">
  214. <table class="mlabels">
  215. <tr>
  216. <td class="mlabels-left">
  217. <table class="memname">
  218. <tr>
  219. <td class="memname">Bird::Bird </td>
  220. <td>(</td>
  221. <td class="paramtype">QWidget *&#160;</td>
  222. <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
  223. <td></td>
  224. </tr>
  225. </table>
  226. </td>
  227. <td class="mlabels-right">
  228. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  229. </tr>
  230. </table>
  231. </div><div class="memdoc">
  232. <p>Constructor por defecto. Las propiedades de el pajaron son ajustados como sigue: </p>
  233. <ul>
  234. <li>eyeBrow: ajustado aleatoriamente a uno de los 5 posibles valores</li>
  235. <li>color y eColor: ajustao aleatoriamente a uno de los 5 posibles colores: "verde", "azul", "rojo", "amarillo", "blanco" </li>
  236. </ul>
  237. </div>
  238. </div>
  239. <a class="anchor" id="aa9728cc9ffc34f902140c38ba732f6cc"></a>
  240. <div class="memitem">
  241. <div class="memproto">
  242. <table class="memname">
  243. <tr>
  244. <td class="memname">Bird::Bird </td>
  245. <td>(</td>
  246. <td class="paramtype">int&#160;</td>
  247. <td class="paramname"><em>s</em>, </td>
  248. </tr>
  249. <tr>
  250. <td class="paramkey"></td>
  251. <td></td>
  252. <td class="paramtype"><a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a>&#160;</td>
  253. <td class="paramname"><em>eb</em>, </td>
  254. </tr>
  255. <tr>
  256. <td class="paramkey"></td>
  257. <td></td>
  258. <td class="paramtype">QString&#160;</td>
  259. <td class="paramname"><em>col</em>, </td>
  260. </tr>
  261. <tr>
  262. <td class="paramkey"></td>
  263. <td></td>
  264. <td class="paramtype">QString&#160;</td>
  265. <td class="paramname"><em>eye</em>, </td>
  266. </tr>
  267. <tr>
  268. <td class="paramkey"></td>
  269. <td></td>
  270. <td class="paramtype">QWidget *&#160;</td>
  271. <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
  272. </tr>
  273. <tr>
  274. <td></td>
  275. <td>)</td>
  276. <td></td><td></td>
  277. </tr>
  278. </table>
  279. </div><div class="memdoc">
  280. <p>Constructor que acepta especificaciones de los atributos del pajaro. </p>
  281. <dl class="params"><dt>Parámetros</dt><dd>
  282. <table class="params">
  283. <tr><td class="paramname">s</td><td>tamaño </td></tr>
  284. <tr><td class="paramname">eb</td><td>cejas </td></tr>
  285. <tr><td class="paramname">col</td><td>color de la cara </td></tr>
  286. <tr><td class="paramname">eye</td><td>color del ojo </td></tr>
  287. </table>
  288. </dd>
  289. </dl>
  290. </div>
  291. </div>
  292. <h2 class="groupheader">Documentación de las funciones miembro</h2>
  293. <a class="anchor" id="a9e62ffa00de025d9d4b003e302c70e0e"></a>
  294. <div class="memitem">
  295. <div class="memproto">
  296. <table class="memname">
  297. <tr>
  298. <td class="memname">Qt::GlobalColor Bird::getColor </td>
  299. <td>(</td>
  300. <td class="paramtype">QString&#160;</td>
  301. <td class="paramname"><em>color</em></td><td>)</td>
  302. <td> const</td>
  303. </tr>
  304. </table>
  305. </div><div class="memdoc">
  306. <p>Convierte un color especificado como un string a un Qt::GlobalColor. </p>
  307. <dl class="params"><dt>Parámetros</dt><dd>
  308. <table class="params">
  309. <tr><td class="paramname">color</td><td>cadena de caracteres de un color </td></tr>
  310. </table>
  311. </dd>
  312. </dl>
  313. </div>
  314. </div>
  315. <a class="anchor" id="a8a6fa1980da30e3bab3e2d051ce9d2f7"></a>
  316. <div class="memitem">
  317. <div class="memproto">
  318. <table class="mlabels">
  319. <tr>
  320. <td class="mlabels-left">
  321. <table class="memname">
  322. <tr>
  323. <td class="memname">int Bird::randInt </td>
  324. <td>(</td>
  325. <td class="paramtype">int&#160;</td>
  326. <td class="paramname"><em>min</em>, </td>
  327. </tr>
  328. <tr>
  329. <td class="paramkey"></td>
  330. <td></td>
  331. <td class="paramtype">int&#160;</td>
  332. <td class="paramname"><em>max</em>&#160;</td>
  333. </tr>
  334. <tr>
  335. <td></td>
  336. <td>)</td>
  337. <td></td><td></td>
  338. </tr>
  339. </table>
  340. </td>
  341. <td class="mlabels-right">
  342. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  343. </tr>
  344. </table>
  345. </div><div class="memdoc">
  346. <p>Genera un entero aleatorio en el rango [min, max]. </p>
  347. <dl class="params"><dt>Parámetros</dt><dd>
  348. <table class="params">
  349. <tr><td class="paramname">min</td><td>valor aleatorio minimo </td></tr>
  350. <tr><td class="paramname">max</td><td>valor aleatorio maximo </td></tr>
  351. </table>
  352. </dd>
  353. </dl>
  354. </div>
  355. </div>
  356. <a class="anchor" id="a631b29bf1daab6e7d029df40664a0604"></a>
  357. <div class="memitem">
  358. <div class="memproto">
  359. <table class="memname">
  360. <tr>
  361. <td class="memname">void Bird::setEyebrow </td>
  362. <td>(</td>
  363. <td class="paramtype"><a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a>&#160;</td>
  364. <td class="paramname"><em>eb</em></td><td>)</td>
  365. <td></td>
  366. </tr>
  367. </table>
  368. </div><div class="memdoc">
  369. <p>Ajusta el tipo de cejas. </p>
  370. <dl class="params"><dt>Parámetros</dt><dd>
  371. <table class="params">
  372. <tr><td class="paramname">eb</td><td>tipo de ceja </td></tr>
  373. </table>
  374. </dd>
  375. </dl>
  376. </div>
  377. </div>
  378. <a class="anchor" id="a835df93d19d5467ae4380273619d39e5"></a>
  379. <div class="memitem">
  380. <div class="memproto">
  381. <table class="memname">
  382. <tr>
  383. <td class="memname">void Bird::setEyeColor </td>
  384. <td>(</td>
  385. <td class="paramtype">QString&#160;</td>
  386. <td class="paramname"><em>eye</em></td><td>)</td>
  387. <td></td>
  388. </tr>
  389. </table>
  390. </div><div class="memdoc">
  391. <p>Ajusta el color del ojo. </p>
  392. <dl class="params"><dt>Parámetros</dt><dd>
  393. <table class="params">
  394. <tr><td class="paramname">eje</td><td>color del ojo </td></tr>
  395. </table>
  396. </dd>
  397. </dl>
  398. </div>
  399. </div>
  400. <a class="anchor" id="a0800cd1d6974f949af715da44eec9476"></a>
  401. <div class="memitem">
  402. <div class="memproto">
  403. <table class="memname">
  404. <tr>
  405. <td class="memname">void Bird::setFaceColor </td>
  406. <td>(</td>
  407. <td class="paramtype">QString&#160;</td>
  408. <td class="paramname"><em>col</em></td><td>)</td>
  409. <td></td>
  410. </tr>
  411. </table>
  412. </div><div class="memdoc">
  413. <p>Ajusta el color de la cara. </p>
  414. <dl class="params"><dt>Parámetros</dt><dd>
  415. <table class="params">
  416. <tr><td class="paramname">col</td><td>color de la cara </td></tr>
  417. </table>
  418. </dd>
  419. </dl>
  420. </div>
  421. </div>
  422. <a class="anchor" id="afe637db83f012091302bc04d29a5d1be"></a>
  423. <div class="memitem">
  424. <div class="memproto">
  425. <table class="memname">
  426. <tr>
  427. <td class="memname">void Bird::setSize </td>
  428. <td>(</td>
  429. <td class="paramtype">int&#160;</td>
  430. <td class="paramname"><em>s</em></td><td>)</td>
  431. <td></td>
  432. </tr>
  433. </table>
  434. </div><div class="memdoc">
  435. <p>Ajusta el tamano del pajaro. </p>
  436. <dl class="params"><dt>Parámetros</dt><dd>
  437. <table class="params">
  438. <tr><td class="paramname">s</td><td>tamano del pajaro </td></tr>
  439. </table>
  440. </dd>
  441. </dl>
  442. </div>
  443. </div>
  444. <h2 class="groupheader">Documentación de los datos miembro</h2>
  445. <a class="anchor" id="a53ffc41e40cf2c8c2ea71ffbb97e9dba"></a>
  446. <div class="memitem">
  447. <div class="memproto">
  448. <table class="mlabels">
  449. <tr>
  450. <td class="mlabels-left">
  451. <table class="memname">
  452. <tr>
  453. <td class="memname">QString Bird::color</td>
  454. </tr>
  455. </table>
  456. </td>
  457. <td class="mlabels-right">
  458. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  459. </tr>
  460. </table>
  461. </div><div class="memdoc">
  462. <p>face color (cara) </p>
  463. </div>
  464. </div>
  465. <a class="anchor" id="a3a2f86b733b043678c46554543689a11"></a>
  466. <div class="memitem">
  467. <div class="memproto">
  468. <table class="mlabels">
  469. <tr>
  470. <td class="mlabels-left">
  471. <table class="memname">
  472. <tr>
  473. <td class="memname">QString Bird::eColor</td>
  474. </tr>
  475. </table>
  476. </td>
  477. <td class="mlabels-right">
  478. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  479. </tr>
  480. </table>
  481. </div><div class="memdoc">
  482. <p>eye color (ojos) </p>
  483. </div>
  484. </div>
  485. <a class="anchor" id="a9ec579543e7139067b28fa07d6121c57"></a>
  486. <div class="memitem">
  487. <div class="memproto">
  488. <table class="mlabels">
  489. <tr>
  490. <td class="mlabels-left">
  491. <table class="memname">
  492. <tr>
  493. <td class="memname"><a class="el" href="class_bird.html#a1e608d95cce3b3c7b1497d86b37516ec">EyeBrowType</a> Bird::eyeBrow</td>
  494. </tr>
  495. </table>
  496. </td>
  497. <td class="mlabels-right">
  498. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  499. </tr>
  500. </table>
  501. </div><div class="memdoc">
  502. <p>eyebrow type (ceja) </p>
  503. </div>
  504. </div>
  505. <a class="anchor" id="aa8e23a86d722c6f81f969c556cef0342"></a>
  506. <div class="memitem">
  507. <div class="memproto">
  508. <table class="mlabels">
  509. <tr>
  510. <td class="mlabels-left">
  511. <table class="memname">
  512. <tr>
  513. <td class="memname">int Bird::size</td>
  514. </tr>
  515. </table>
  516. </td>
  517. <td class="mlabels-right">
  518. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  519. </tr>
  520. </table>
  521. </div><div class="memdoc">
  522. <p>size of the bird </p>
  523. </div>
  524. </div>
  525. <hr/>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
  526. <li><a class="el" href="bird_8h_source.html">bird.h</a></li>
  527. <li>bird.cpp</li>
  528. </ul>
  529. </div><!-- contents -->
  530. <!-- start footer part -->
  531. <hr class="footer"/><address class="footer"><small>
  532. Generado el Viernes, 5 de Junio de 2015 15:14:20 para My Project por &#160;<a href="http://www.doxygen.org/index.html">
  533. <img class="footer" src="doxygen.png" alt="doxygen"/>
  534. </a> 1.8.9.1
  535. </small></address>
  536. </body>
  537. </html>