\hypertarget{class_drawing_window}{}\section{Referencia de la Clase Drawing\+Window} \label{class_drawing_window}\index{Drawing\+Window@{Drawing\+Window}} Diagrama de herencias de Drawing\+Window\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=2.000000cm]{class_drawing_window} \end{center} \end{figure} \subsection*{Métodos públicos} \begin{DoxyCompactItemize} \item \hyperlink{class_drawing_window_aff3d1b3cbeee8f0e92b49c050d8ca494}{Drawing\+Window} (Q\+Widget $\ast$parent=0) \begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item void \hyperlink{class_drawing_window_a3097e096223530c9f93737441d77422f}{add\+Line} (int x0, int y0, int x1, int y1, int width, Q\+Color color) \begin{DoxyCompactList}\small\item\em Anade una linea a la ventana, especificando las coordenadas de los puntos inciales y finales. \end{DoxyCompactList}\item void \hyperlink{class_drawing_window_ae03504caa7648347ec56eb58cf5b5db4}{add\+Line\+Polar} (int x0, int y0, int length, double angle, int width, Q\+Color color) \begin{DoxyCompactList}\small\item\em Anade una linea a la ventana, especificando las coordenadas del punto inicial, el largo y el angulo. \end{DoxyCompactList}\item void \hyperlink{class_drawing_window_a34dec0c13dc01eaa303589e28acecf95}{box} (int x, int y, int side\+Length, Q\+Color c) \begin{DoxyCompactList}\small\item\em Dibuja una caja con los lados del tamano side\+Length. \end{DoxyCompactList}\item void \hyperlink{class_drawing_window_aa58d7247e92b513920c788523187fcbd}{boxes} (int x, int y, int side\+Length, double shrink\+Factor, int smallest\+Length, Q\+Color c) \begin{DoxyCompactList}\small\item\em Funcion recursiva que dibuja cajas mas pequenas dentro de las cuatro esquenas de las cajas. \end{DoxyCompactList}\item void \hyperlink{class_drawing_window_a5a5f640d60404722d029ec14896692a0}{snow\+Helper} (int size, int level) \begin{DoxyCompactList}\small\item\em function de interface para la funcion recursiva snowflake \end{DoxyCompactList}\item void \hyperlink{class_drawing_window_a13d52d1571e4a34d1bd3cb09a71dfa5f}{snowflake} (int x, int y, int size, double angle, int level, Q\+Color c) \begin{DoxyCompactList}\small\item\em Figura recursiva, el copo de nieve presentado en\+: \href{https://sites.google.com/a/wellesley.edu/wellesley-cs118-spring13/lectures-labs/lab-6-turtle-recursion}{\tt https\+://sites.\+google.\+com/a/wellesley.\+edu/wellesley-\/cs118-\/spring13/lectures-\/labs/lab-\/6-\/turtle-\/recursion} sf = sf(n-\/1) + 60 grados sf(n-\/1) + 60 grados sf(n-\/1) + s(n-\/1) sf(0) = line. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Métodos protegidos} \begin{DoxyCompactItemize} \item \hypertarget{class_drawing_window_aceb9c5cc4f2ef40d99aca7d3fbd4e91a}{}void \hyperlink{class_drawing_window_aceb9c5cc4f2ef40d99aca7d3fbd4e91a}{paint\+Event} (Q\+Paint\+Event $\ast$)\label{class_drawing_window_aceb9c5cc4f2ef40d99aca7d3fbd4e91a} \begin{DoxyCompactList}\small\item\em Funcion invocada en un evento de pintar. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection*{Atributos privados} \begin{DoxyCompactItemize} \item \hypertarget{class_drawing_window_ad58ced401c1eaf6cfaf67a0f8f94ce18}{}Ui\+::\+Drawing\+Window $\ast$ {\bfseries ui}\label{class_drawing_window_ad58ced401c1eaf6cfaf67a0f8f94ce18} \item \hypertarget{class_drawing_window_a6e1effc34bb2f2c43becfd1df203b693}{}vector$<$ \hyperlink{class_line}{Line} $\ast$ $>$ $\ast$ {\bfseries v\+L}\label{class_drawing_window_a6e1effc34bb2f2c43becfd1df203b693} \end{DoxyCompactItemize} \subsection{Documentación del constructor y destructor} \hypertarget{class_drawing_window_aff3d1b3cbeee8f0e92b49c050d8ca494}{}\index{Drawing\+Window@{Drawing\+Window}!Drawing\+Window@{Drawing\+Window}} \index{Drawing\+Window@{Drawing\+Window}!Drawing\+Window@{Drawing\+Window}} \subsubsection[{Drawing\+Window}]{\setlength{\rightskip}{0pt plus 5cm}Drawing\+Window\+::\+Drawing\+Window ( \begin{DoxyParamCaption} \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}} \end{DoxyParamCaption} )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_drawing_window_aff3d1b3cbeee8f0e92b49c050d8ca494} Constructor. \begin{DoxyParams}{Parámetros} {\em parent} & ventana padre \\ \hline \end{DoxyParams} \subsection{Documentación de las funciones miembro} \hypertarget{class_drawing_window_a3097e096223530c9f93737441d77422f}{}\index{Drawing\+Window@{Drawing\+Window}!add\+Line@{add\+Line}} \index{add\+Line@{add\+Line}!Drawing\+Window@{Drawing\+Window}} \subsubsection[{add\+Line}]{\setlength{\rightskip}{0pt plus 5cm}void Drawing\+Window\+::add\+Line ( \begin{DoxyParamCaption} \item[{int}]{x0, } \item[{int}]{y0, } \item[{int}]{x1, } \item[{int}]{y1, } \item[{int}]{width, } \item[{Q\+Color}]{color} \end{DoxyParamCaption} )}\label{class_drawing_window_a3097e096223530c9f93737441d77422f} Anade una linea a la ventana, especificando las coordenadas de los puntos inciales y finales. \begin{DoxyParams}{Parámetros} {\em x0} & x inicial \\ \hline {\em y0} & y inicial \\ \hline {\em x1} & x final \\ \hline {\em y1} & y final \\ \hline {\em width} & ancho de la linea \\ \hline {\em color} & color de la linea \\ \hline \end{DoxyParams} \hypertarget{class_drawing_window_ae03504caa7648347ec56eb58cf5b5db4}{}\index{Drawing\+Window@{Drawing\+Window}!add\+Line\+Polar@{add\+Line\+Polar}} \index{add\+Line\+Polar@{add\+Line\+Polar}!Drawing\+Window@{Drawing\+Window}} \subsubsection[{add\+Line\+Polar}]{\setlength{\rightskip}{0pt plus 5cm}void Drawing\+Window\+::add\+Line\+Polar ( \begin{DoxyParamCaption} \item[{int}]{x0, } \item[{int}]{y0, } \item[{int}]{length, } \item[{double}]{angle, } \item[{int}]{width, } \item[{Q\+Color}]{color} \end{DoxyParamCaption} )}\label{class_drawing_window_ae03504caa7648347ec56eb58cf5b5db4} Anade una linea a la ventana, especificando las coordenadas del punto inicial, el largo y el angulo. \begin{DoxyParams}{Parámetros} {\em x0} & x incial \\ \hline {\em y0} & y inicial \\ \hline {\em length} & largo de la linea \\ \hline {\em angle} & angulo de la linea \\ \hline {\em width} & ancho de la linea \\ \hline {\em color} & color de la linea \\ \hline \end{DoxyParams} \hypertarget{class_drawing_window_a34dec0c13dc01eaa303589e28acecf95}{}\index{Drawing\+Window@{Drawing\+Window}!box@{box}} \index{box@{box}!Drawing\+Window@{Drawing\+Window}} \subsubsection[{box}]{\setlength{\rightskip}{0pt plus 5cm}void Drawing\+Window\+::box ( \begin{DoxyParamCaption} \item[{int}]{x, } \item[{int}]{y, } \item[{int}]{side\+Length, } \item[{Q\+Color}]{c} \end{DoxyParamCaption} )}\label{class_drawing_window_a34dec0c13dc01eaa303589e28acecf95} Dibuja una caja con los lados del tamano side\+Length. \begin{DoxyParams}{Parámetros} {\em x} & coordenada inicial x de la caja \\ \hline {\em y} & coordenada inicial y de la caja \\ \hline {\em side\+Length} & largo de los lados de la caja \\ \hline {\em c} & color de la caja \\ \hline \end{DoxyParams} \hypertarget{class_drawing_window_aa58d7247e92b513920c788523187fcbd}{}\index{Drawing\+Window@{Drawing\+Window}!boxes@{boxes}} \index{boxes@{boxes}!Drawing\+Window@{Drawing\+Window}} \subsubsection[{boxes}]{\setlength{\rightskip}{0pt plus 5cm}void Drawing\+Window\+::boxes ( \begin{DoxyParamCaption} \item[{int}]{x, } \item[{int}]{y, } \item[{int}]{side\+Length, } \item[{double}]{shrink\+Factor, } \item[{int}]{smallest\+Length, } \item[{Q\+Color}]{c} \end{DoxyParamCaption} )}\label{class_drawing_window_aa58d7247e92b513920c788523187fcbd} Funcion recursiva que dibuja cajas mas pequenas dentro de las cuatro esquenas de las cajas. \begin{DoxyParams}{Parámetros} {\em x} & coordenada inicial x \\ \hline {\em y} & coordenada inicial y \\ \hline {\em side\+Length} & largo de los lados de la caja \\ \hline {\em shrink\+Factor} & factor para disminuir el tamano de los lados en la recursion para las cajas interiores \\ \hline {\em smallest\+Length} & largo mas pequeno de el tamano de el lado de las cajas \\ \hline {\em c} & color de las cajas \\ \hline \end{DoxyParams} \hypertarget{class_drawing_window_a13d52d1571e4a34d1bd3cb09a71dfa5f}{}\index{Drawing\+Window@{Drawing\+Window}!snowflake@{snowflake}} \index{snowflake@{snowflake}!Drawing\+Window@{Drawing\+Window}} \subsubsection[{snowflake}]{\setlength{\rightskip}{0pt plus 5cm}void Drawing\+Window\+::snowflake ( \begin{DoxyParamCaption} \item[{int}]{x, } \item[{int}]{y, } \item[{int}]{size, } \item[{double}]{angle, } \item[{int}]{level, } \item[{Q\+Color}]{c} \end{DoxyParamCaption} )}\label{class_drawing_window_a13d52d1571e4a34d1bd3cb09a71dfa5f} Figura recursiva, el copo de nieve presentado en\+: \href{https://sites.google.com/a/wellesley.edu/wellesley-cs118-spring13/lectures-labs/lab-6-turtle-recursion}{\tt https\+://sites.\+google.\+com/a/wellesley.\+edu/wellesley-\/cs118-\/spring13/lectures-\/labs/lab-\/6-\/turtle-\/recursion} sf = sf(n-\/1) + 60 grados sf(n-\/1) + 60 grados sf(n-\/1) + s(n-\/1) sf(0) = line. \begin{DoxyParams}{Parámetros} {\em x} & coordenada inicial x \\ \hline {\em y} & coordenada inicial y \\ \hline {\em size} & tamano del copo de nieve \\ \hline {\em angle} & angulo de la linea del copo de nieve \\ \hline {\em level} & profundidad de la recursion \\ \hline {\em c} & color de las lineas (copo de nieve) \\ \hline \end{DoxyParams} \hypertarget{class_drawing_window_a5a5f640d60404722d029ec14896692a0}{}\index{Drawing\+Window@{Drawing\+Window}!snow\+Helper@{snow\+Helper}} \index{snow\+Helper@{snow\+Helper}!Drawing\+Window@{Drawing\+Window}} \subsubsection[{snow\+Helper}]{\setlength{\rightskip}{0pt plus 5cm}void Drawing\+Window\+::snow\+Helper ( \begin{DoxyParamCaption} \item[{int}]{size, } \item[{int}]{level} \end{DoxyParamCaption} )}\label{class_drawing_window_a5a5f640d60404722d029ec14896692a0} function de interface para la funcion recursiva snowflake \begin{DoxyParams}{Parámetros} {\em size} & tamano del copo de nieve \\ \hline {\em level} & profundidad de la recursion \\ \hline \end{DoxyParams} La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize} \item drawing\+Window.\+h\item boxes.\+cpp\item drawing\+Window.\+cpp\item snowflake.\+cpp\end{DoxyCompactItemize}