\hypertarget{class_bird}{}\section{Referencia de la Clase Bird} \label{class_bird}\index{Bird@{Bird}} {\ttfamily \#include $<$bird.\+h$>$} Diagrama de herencias de Bird\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=2.000000cm]{class_bird} \end{center} \end{figure} \subsection*{Tipos públicos} \begin{DoxyCompactItemize} \item enum \hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516ec}{Eye\+Brow\+Type} \{ \hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1}{U\+N\+I}, \hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070}{A\+N\+G\+R\+Y}, \hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049}{U\+P\+S\+E\+T}, \hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008}{B\+U\+S\+H\+Y} \} \end{DoxyCompactItemize} \subsection*{Métodos públicos} \begin{DoxyCompactItemize} \item \hyperlink{class_bird_abfe484323ac9e48a6371eef4de8538fe}{Bird} (Q\+Widget $\ast$parent=0) \begin{DoxyCompactList}\small\item\em Constructor por defecto. Las propiedades de el pajaron son ajustados como sigue\+: \end{DoxyCompactList}\item \hyperlink{class_bird_aa9728cc9ffc34f902140c38ba732f6cc}{Bird} (int, \hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516ec}{Eye\+Brow\+Type}, Q\+String, Q\+String, Q\+Widget $\ast$parent=0) \begin{DoxyCompactList}\small\item\em Constructor que acepta especificaciones de los atributos del pajaro. \end{DoxyCompactList}\item \hypertarget{class_bird_a9ca7641056d08c5f73263d2379ac47e0}{}Q\+String \hyperlink{class_bird_a9ca7641056d08c5f73263d2379ac47e0}{get\+Eye\+Color} () const \label{class_bird_a9ca7641056d08c5f73263d2379ac47e0} \begin{DoxyCompactList}\small\item\em Devuelve el color del ojo. \end{DoxyCompactList}\item \hypertarget{class_bird_a41a64913760b45a1c515047878d92583}{}Q\+String \hyperlink{class_bird_a41a64913760b45a1c515047878d92583}{get\+Face\+Color} () const \label{class_bird_a41a64913760b45a1c515047878d92583} \begin{DoxyCompactList}\small\item\em Devuelve el color de la cara. \end{DoxyCompactList}\item void \hyperlink{class_bird_a835df93d19d5467ae4380273619d39e5}{set\+Eye\+Color} (Q\+String) \begin{DoxyCompactList}\small\item\em Ajusta el color del ojo. \end{DoxyCompactList}\item void \hyperlink{class_bird_a0800cd1d6974f949af715da44eec9476}{set\+Face\+Color} (Q\+String) \begin{DoxyCompactList}\small\item\em Ajusta el color de la cara. \end{DoxyCompactList}\item \hypertarget{class_bird_a48ac642e41fd1bd99ce3915c14d4bb4a}{}int \hyperlink{class_bird_a48ac642e41fd1bd99ce3915c14d4bb4a}{get\+Size} () const \label{class_bird_a48ac642e41fd1bd99ce3915c14d4bb4a} \begin{DoxyCompactList}\small\item\em Devuelve el tamano del pajaro. \end{DoxyCompactList}\item \hypertarget{class_bird_ac3c144d4c4e3de1821b531b6ad20e4b8}{}\hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516ec}{Eye\+Brow\+Type} {\bfseries get\+Eyebrow} () const \label{class_bird_ac3c144d4c4e3de1821b531b6ad20e4b8} \item void \hyperlink{class_bird_afe637db83f012091302bc04d29a5d1be}{set\+Size} (int) \begin{DoxyCompactList}\small\item\em Ajusta el tamano del pajaro. \end{DoxyCompactList}\item void \hyperlink{class_bird_a631b29bf1daab6e7d029df40664a0604}{set\+Eyebrow} (\hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516ec}{Eye\+Brow\+Type}) \begin{DoxyCompactList}\small\item\em Ajusta el tipo de cejas. \end{DoxyCompactList}\item Qt\+::\+Global\+Color \hyperlink{class_bird_a9e62ffa00de025d9d4b003e302c70e0e}{get\+Color} (Q\+String) const \begin{DoxyCompactList}\small\item\em Convierte un color especificado como un string a un Qt\+::\+Global\+Color. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Métodos protegidos} \begin{DoxyCompactItemize} \item \hypertarget{class_bird_ac7c0133625489af1aed22ee376272d15}{}void \hyperlink{class_bird_ac7c0133625489af1aed22ee376272d15}{paint\+Event} (Q\+Paint\+Event $\ast$)\label{class_bird_ac7c0133625489af1aed22ee376272d15} \begin{DoxyCompactList}\small\item\em Esta funcion es invocada automaticamente cada ves que el widget o su padre recive una senal de repintar. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Métodos privados} \begin{DoxyCompactItemize} \item int \hyperlink{class_bird_a8a6fa1980da30e3bab3e2d051ce9d2f7}{rand\+Int} (int min, int max) \begin{DoxyCompactList}\small\item\em Genera un entero aleatorio en el rango \mbox{[}min, max\mbox{]}. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Atributos privados} \begin{DoxyCompactItemize} \item int \hyperlink{class_bird_aa8e23a86d722c6f81f969c556cef0342}{size} \item \hyperlink{class_bird_a1e608d95cce3b3c7b1497d86b37516ec}{Eye\+Brow\+Type} \hyperlink{class_bird_a9ec579543e7139067b28fa07d6121c57}{eye\+Brow} \item Q\+String \hyperlink{class_bird_a53ffc41e40cf2c8c2ea71ffbb97e9dba}{color} \item Q\+String \hyperlink{class_bird_a3a2f86b733b043678c46554543689a11}{e\+Color} \end{DoxyCompactItemize} \subsection{Descripción detallada} A class to represent birds. \hyperlink{class_bird}{Bird} is a subclass of Q\+Widget. This means that the following Q\+Widget functions are also available for objects of the class \hyperlink{class_bird}{Bird}\+: \begin{DoxyItemize} \item move(int x, int y)\+: to move the bird to position (x,y) \item x(), y()\+: get the x position, get the y() position \item hide()\+: to hide a bird that has been painted \end{DoxyItemize} \subsection{Documentación de las enumeraciones miembro de la clase} \hypertarget{class_bird_a1e608d95cce3b3c7b1497d86b37516ec}{}\index{Bird@{Bird}!Eye\+Brow\+Type@{Eye\+Brow\+Type}} \index{Eye\+Brow\+Type@{Eye\+Brow\+Type}!Bird@{Bird}} \subsubsection[{Eye\+Brow\+Type}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Bird\+::\+Eye\+Brow\+Type}}\label{class_bird_a1e608d95cce3b3c7b1497d86b37516ec} Enum type for the Eye\+Brow \begin{Desc} \item[Valores de enumeraciones]\par \begin{description} \index{U\+N\+I@{U\+N\+I}!Bird@{Bird}}\index{Bird@{Bird}!U\+N\+I@{U\+N\+I}}\item[{\em \hypertarget{class_bird_a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1}{}U\+N\+I\label{class_bird_a1e608d95cce3b3c7b1497d86b37516ecaf9935ec07fd09a4b397eea6c57a102e1} }]enum value 0 \index{A\+N\+G\+R\+Y@{A\+N\+G\+R\+Y}!Bird@{Bird}}\index{Bird@{Bird}!A\+N\+G\+R\+Y@{A\+N\+G\+R\+Y}}\item[{\em \hypertarget{class_bird_a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070}{}A\+N\+G\+R\+Y\label{class_bird_a1e608d95cce3b3c7b1497d86b37516eca24536e544c195223cacd716d413a8070} }]enum value 1 \index{U\+P\+S\+E\+T@{U\+P\+S\+E\+T}!Bird@{Bird}}\index{Bird@{Bird}!U\+P\+S\+E\+T@{U\+P\+S\+E\+T}}\item[{\em \hypertarget{class_bird_a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049}{}U\+P\+S\+E\+T\label{class_bird_a1e608d95cce3b3c7b1497d86b37516eca670f5ceeff9e3e634754d49e77cdc049} }]enum value 2 \index{B\+U\+S\+H\+Y@{B\+U\+S\+H\+Y}!Bird@{Bird}}\index{Bird@{Bird}!B\+U\+S\+H\+Y@{B\+U\+S\+H\+Y}}\item[{\em \hypertarget{class_bird_a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008}{}B\+U\+S\+H\+Y\label{class_bird_a1e608d95cce3b3c7b1497d86b37516eca8e3136f10413edb87bd280f4a5c15008} }]enum value 3 \end{description} \end{Desc} \subsection{Documentación del constructor y destructor} \hypertarget{class_bird_abfe484323ac9e48a6371eef4de8538fe}{}\index{Bird@{Bird}!Bird@{Bird}} \index{Bird@{Bird}!Bird@{Bird}} \subsubsection[{Bird}]{\setlength{\rightskip}{0pt plus 5cm}Bird\+::\+Bird ( \begin{DoxyParamCaption} \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_bird_abfe484323ac9e48a6371eef4de8538fe} Constructor por defecto. Las propiedades de el pajaron son ajustados como sigue\+: \begin{DoxyItemize} \item eye\+Brow\+: ajustado aleatoriamente a uno de los 5 posibles valores \item color y e\+Color\+: ajustao aleatoriamente a uno de los 5 posibles colores\+: \char`\"{}verde\char`\"{}, \char`\"{}azul\char`\"{}, \char`\"{}rojo\char`\"{}, \char`\"{}amarillo\char`\"{}, \char`\"{}blanco\char`\"{} \end{DoxyItemize}\hypertarget{class_bird_aa9728cc9ffc34f902140c38ba732f6cc}{}\index{Bird@{Bird}!Bird@{Bird}} \index{Bird@{Bird}!Bird@{Bird}} \subsubsection[{Bird}]{\setlength{\rightskip}{0pt plus 5cm}Bird\+::\+Bird ( \begin{DoxyParamCaption} \item[{int}]{s, } \item[{{\bf Eye\+Brow\+Type}}]{eb, } \item[{Q\+String}]{col, } \item[{Q\+String}]{eye, } \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}} \end{DoxyParamCaption} )}\label{class_bird_aa9728cc9ffc34f902140c38ba732f6cc} Constructor que acepta especificaciones de los atributos del pajaro. \begin{DoxyParams}{Parámetros} {\em s} & tamaño \\ \hline {\em eb} & cejas \\ \hline {\em col} & color de la cara \\ \hline {\em eye} & color del ojo \\ \hline \end{DoxyParams} \subsection{Documentación de las funciones miembro} \hypertarget{class_bird_a9e62ffa00de025d9d4b003e302c70e0e}{}\index{Bird@{Bird}!get\+Color@{get\+Color}} \index{get\+Color@{get\+Color}!Bird@{Bird}} \subsubsection[{get\+Color}]{\setlength{\rightskip}{0pt plus 5cm}Qt\+::\+Global\+Color Bird\+::get\+Color ( \begin{DoxyParamCaption} \item[{Q\+String}]{color} \end{DoxyParamCaption} ) const}\label{class_bird_a9e62ffa00de025d9d4b003e302c70e0e} Convierte un color especificado como un string a un Qt\+::\+Global\+Color. \begin{DoxyParams}{Parámetros} {\em color} & cadena de caracteres de un color \\ \hline \end{DoxyParams} \hypertarget{class_bird_a8a6fa1980da30e3bab3e2d051ce9d2f7}{}\index{Bird@{Bird}!rand\+Int@{rand\+Int}} \index{rand\+Int@{rand\+Int}!Bird@{Bird}} \subsubsection[{rand\+Int}]{\setlength{\rightskip}{0pt plus 5cm}int Bird\+::rand\+Int ( \begin{DoxyParamCaption} \item[{int}]{min, } \item[{int}]{max} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [private]}}\label{class_bird_a8a6fa1980da30e3bab3e2d051ce9d2f7} Genera un entero aleatorio en el rango \mbox{[}min, max\mbox{]}. \begin{DoxyParams}{Parámetros} {\em min} & valor aleatorio minimo \\ \hline {\em max} & valor aleatorio maximo \\ \hline \end{DoxyParams} \hypertarget{class_bird_a631b29bf1daab6e7d029df40664a0604}{}\index{Bird@{Bird}!set\+Eyebrow@{set\+Eyebrow}} \index{set\+Eyebrow@{set\+Eyebrow}!Bird@{Bird}} \subsubsection[{set\+Eyebrow}]{\setlength{\rightskip}{0pt plus 5cm}void Bird\+::set\+Eyebrow ( \begin{DoxyParamCaption} \item[{{\bf Eye\+Brow\+Type}}]{eb} \end{DoxyParamCaption} )}\label{class_bird_a631b29bf1daab6e7d029df40664a0604} Ajusta el tipo de cejas. \begin{DoxyParams}{Parámetros} {\em eb} & tipo de ceja \\ \hline \end{DoxyParams} \hypertarget{class_bird_a835df93d19d5467ae4380273619d39e5}{}\index{Bird@{Bird}!set\+Eye\+Color@{set\+Eye\+Color}} \index{set\+Eye\+Color@{set\+Eye\+Color}!Bird@{Bird}} \subsubsection[{set\+Eye\+Color}]{\setlength{\rightskip}{0pt plus 5cm}void Bird\+::set\+Eye\+Color ( \begin{DoxyParamCaption} \item[{Q\+String}]{eye} \end{DoxyParamCaption} )}\label{class_bird_a835df93d19d5467ae4380273619d39e5} Ajusta el color del ojo. \begin{DoxyParams}{Parámetros} {\em eje} & color del ojo \\ \hline \end{DoxyParams} \hypertarget{class_bird_a0800cd1d6974f949af715da44eec9476}{}\index{Bird@{Bird}!set\+Face\+Color@{set\+Face\+Color}} \index{set\+Face\+Color@{set\+Face\+Color}!Bird@{Bird}} \subsubsection[{set\+Face\+Color}]{\setlength{\rightskip}{0pt plus 5cm}void Bird\+::set\+Face\+Color ( \begin{DoxyParamCaption} \item[{Q\+String}]{col} \end{DoxyParamCaption} )}\label{class_bird_a0800cd1d6974f949af715da44eec9476} Ajusta el color de la cara. \begin{DoxyParams}{Parámetros} {\em col} & color de la cara \\ \hline \end{DoxyParams} \hypertarget{class_bird_afe637db83f012091302bc04d29a5d1be}{}\index{Bird@{Bird}!set\+Size@{set\+Size}} \index{set\+Size@{set\+Size}!Bird@{Bird}} \subsubsection[{set\+Size}]{\setlength{\rightskip}{0pt plus 5cm}void Bird\+::set\+Size ( \begin{DoxyParamCaption} \item[{int}]{s} \end{DoxyParamCaption} )}\label{class_bird_afe637db83f012091302bc04d29a5d1be} Ajusta el tamano del pajaro. \begin{DoxyParams}{Parámetros} {\em s} & tamano del pajaro \\ \hline \end{DoxyParams} \subsection{Documentación de los datos miembro} \hypertarget{class_bird_a53ffc41e40cf2c8c2ea71ffbb97e9dba}{}\index{Bird@{Bird}!color@{color}} \index{color@{color}!Bird@{Bird}} \subsubsection[{color}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Bird\+::color\hspace{0.3cm}{\ttfamily [private]}}\label{class_bird_a53ffc41e40cf2c8c2ea71ffbb97e9dba} face color (cara) \hypertarget{class_bird_a3a2f86b733b043678c46554543689a11}{}\index{Bird@{Bird}!e\+Color@{e\+Color}} \index{e\+Color@{e\+Color}!Bird@{Bird}} \subsubsection[{e\+Color}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Bird\+::e\+Color\hspace{0.3cm}{\ttfamily [private]}}\label{class_bird_a3a2f86b733b043678c46554543689a11} eye color (ojos) \hypertarget{class_bird_a9ec579543e7139067b28fa07d6121c57}{}\index{Bird@{Bird}!eye\+Brow@{eye\+Brow}} \index{eye\+Brow@{eye\+Brow}!Bird@{Bird}} \subsubsection[{eye\+Brow}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eye\+Brow\+Type} Bird\+::eye\+Brow\hspace{0.3cm}{\ttfamily [private]}}\label{class_bird_a9ec579543e7139067b28fa07d6121c57} eyebrow type (ceja) \hypertarget{class_bird_aa8e23a86d722c6f81f969c556cef0342}{}\index{Bird@{Bird}!size@{size}} \index{size@{size}!Bird@{Bird}} \subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}int Bird\+::size\hspace{0.3cm}{\ttfamily [private]}}\label{class_bird_aa8e23a86d722c6f81f969c556cef0342} size of the bird La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize} \item bird.\+h\item bird.\+cpp\end{DoxyCompactItemize}