123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- \hypertarget{class_drawing_window}{}\section{Drawing\+Window Class Reference}
- \label{class_drawing_window}\index{Drawing\+Window@{Drawing\+Window}}
- Inheritance diagram for Drawing\+Window\+:\begin{figure}[H]
- \begin{center}
- \leavevmode
- \includegraphics[height=2.000000cm]{class_drawing_window}
- \end{center}
- \end{figure}
- \subsection*{Public Member Functions}
- \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 Add a line to the window, specifying coordinates of the starting and end points. \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 Add a line to the window, specifying coordinates of the starting point, the length and angle. \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 Draws a box with sides of size 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 Recursive function that draws smaller boxes inside the four corners of the boxes. \end{DoxyCompactList}\item
- void \hyperlink{class_drawing_window_a5a5f640d60404722d029ec14896692a0}{snow\+Helper} (int size, int level)
- \begin{DoxyCompactList}\small\item\em interface function for the snowflake recursive function \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 Recursive figure, the snowflake presented at\+: \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 degrees sf(n-\/1) + 60 degrees sf(n-\/1) + s(n-\/1) sf(0) = line. \end{DoxyCompactList}\end{DoxyCompactItemize}
- \subsection*{Protected Member Functions}
- \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 Function called in a paint event. \end{DoxyCompactList}\end{DoxyCompactItemize}
- \subsection*{Private Attributes}
- \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{Constructor \& Destructor Documentation}
- \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}{Parameters}
- {\em parent} & when creating a \hyperlink{class_drawing_window}{Drawing\+Window} in the main function, leave this parameter empty \\
- \hline
- \end{DoxyParams}
-
-
- \subsection{Member Function Documentation}
- \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}
-
-
- Add a line to the window, specifying coordinates of the starting and end points.
-
-
- \begin{DoxyParams}{Parameters}
- {\em x0} & starting x \\
- \hline
- {\em y0} & starting y \\
- \hline
- {\em x1} & end x \\
- \hline
- {\em y1} & end y \\
- \hline
- {\em width} & -\/ line width \\
- \hline
- {\em color} & -\/ line color \\
- \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}
-
-
- Add a line to the window, specifying coordinates of the starting point, the length and angle.
-
-
- \begin{DoxyParams}{Parameters}
- {\em x0} & starting x \\
- \hline
- {\em y0} & starting y \\
- \hline
- {\em length} & length of the line \\
- \hline
- {\em angle} & angle \\
- \hline
- {\em width} & line width \\
- \hline
- {\em color} & line color \\
- \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}
-
-
- Draws a box with sides of size side\+Length.
-
-
- \begin{DoxyParams}{Parameters}
- {\em x} & initial x coordinate of the box \\
- \hline
- {\em y} & initial y coordinate of the box \\
- \hline
- {\em side\+Length} & length of the sides of the box \\
- \hline
- {\em c} & color of the box \\
- \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}
-
-
- Recursive function that draws smaller boxes inside the four corners of the boxes.
-
-
- \begin{DoxyParams}{Parameters}
- {\em x} & initial coordinate x \\
- \hline
- {\em y} & initial coordinate y \\
- \hline
- {\em side\+Length} & length of the sides of the box \\
- \hline
- {\em shrink\+Factor} & factor to decreese the side\+Length in the recursion for the interior boxes \\
- \hline
- {\em smallest\+Length} & smallest length of the size of the side of the boxes \\
- \hline
- {\em c} & color of the boxes \\
- \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}
-
-
- Recursive figure, the snowflake presented at\+: \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 degrees sf(n-\/1) + 60 degrees sf(n-\/1) + s(n-\/1) sf(0) = line.
-
-
- \begin{DoxyParams}{Parameters}
- {\em x} & initial coordinate x \\
- \hline
- {\em y} & initial coordinate y \\
- \hline
- {\em size} & size of the snowflake \\
- \hline
- {\em angle} & angle of a line of the snowflake \\
- \hline
- {\em level} & recursion depth \\
- \hline
- {\em c} & color of the lines (snowflake) \\
- \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}
-
-
- interface function for the snowflake recursive function
-
-
- \begin{DoxyParams}{Parameters}
- {\em size} & snowflake size \\
- \hline
- {\em level} & recursion depth \\
- \hline
- \end{DoxyParams}
-
-
- The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
- \item
- drawing\+Window.\+h\item
- boxes.\+cpp\item
- drawing\+Window.\+cpp\item
- snowflake.\+cpp\end{DoxyCompactItemize}
|