Нет описания

class_line.tex 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. \hypertarget{class_line}{}\section{Line Class Reference}
  2. \label{class_line}\index{Line@{Line}}
  3. {\ttfamily \#include $<$line.\+h$>$}
  4. Inheritance diagram for Line\+:\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=2.000000cm]{class_line}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Public Member Functions}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. \hyperlink{class_line_a4d475f9d634f50933ca84e25d7cf32f9}{Line} (Q\+Widget $\ast$parent=0)
  14. \begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item
  15. \hyperlink{class_line_a37f70dab8d5cc7560e6362093a3aa1b9}{Line} (int from\+X, int from\+Y, int to\+X, int to\+Y, int w, Q\+Color c, Q\+Widget $\ast$parent=0)
  16. \begin{DoxyCompactList}\small\item\em Constructor for a line, specifying the (from\+X,from\+Y) and (to\+X,to\+Y) \end{DoxyCompactList}\item
  17. \hyperlink{class_line_a742b2aea487313953635d1e504c6b866}{Line} (int from\+X, int from\+Y, int length, double angle, int w, Q\+Color c, Q\+Widget $\ast$parent=0)
  18. \begin{DoxyCompactList}\small\item\em Constructor for a line, specifying the (from\+X,from\+Y) and (to\+X,to\+Y) \end{DoxyCompactList}\item
  19. void \hyperlink{class_line_ac1475ffee823a7c05b2ac91bfe61596d}{set\+Coords} (int from\+X, int from\+Y, int to\+X, int to\+Y)
  20. \begin{DoxyCompactList}\small\item\em Setter for the line coordinates. \end{DoxyCompactList}\item
  21. void \hyperlink{class_line_ac5b6d8e786cf3820fa36b8bda7130823}{setpen\+Color} (Q\+Color c)
  22. \begin{DoxyCompactList}\small\item\em Setter for the pen color. \end{DoxyCompactList}\item
  23. void \hyperlink{class_line_a346d88820371b5a4710eed8a638fc451}{set\+Pen\+Width} (int w)
  24. \begin{DoxyCompactList}\small\item\em Setter for the pen width. \end{DoxyCompactList}\item
  25. int \hyperlink{class_line_a0e23ee7edc154bd73fefab4d88cae150}{get\+X0} ()
  26. \begin{DoxyCompactList}\small\item\em Getter for the starting coordinate x. \end{DoxyCompactList}\item
  27. int \hyperlink{class_line_a971146fd8bbf711123f03e45daf923c9}{get\+Y0} ()
  28. \begin{DoxyCompactList}\small\item\em Getter for the starting coordinate y. \end{DoxyCompactList}\item
  29. int \hyperlink{class_line_a1f51d8df03219f5f63d656bc0e9b2830}{get\+X1} ()
  30. \begin{DoxyCompactList}\small\item\em Getter for the ending coordinate x. \end{DoxyCompactList}\item
  31. int \hyperlink{class_line_a9cc398fdcf93212a3e4db28ac26a88a9}{get\+Y1} ()
  32. \begin{DoxyCompactList}\small\item\em Getter for the ending coordinate y. \end{DoxyCompactList}\end{DoxyCompactItemize}
  33. \subsection*{Protected Member Functions}
  34. \begin{DoxyCompactItemize}
  35. \item
  36. \hypertarget{class_line_a7e1f30fa9d7375fd67a2b4cf5a1b6a76}{}void \hyperlink{class_line_a7e1f30fa9d7375fd67a2b4cf5a1b6a76}{paint\+Event} (Q\+Paint\+Event $\ast$)\label{class_line_a7e1f30fa9d7375fd67a2b4cf5a1b6a76}
  37. \begin{DoxyCompactList}\small\item\em The paint event function is automatically invoked whenever a resize or repaint happens. \end{DoxyCompactList}\end{DoxyCompactItemize}
  38. \subsection*{Private Attributes}
  39. \begin{DoxyCompactItemize}
  40. \item
  41. int \hyperlink{class_line_a647f6f5c0e2b197e3671f8bdb9ff64a2}{x0}
  42. \item
  43. int \hyperlink{class_line_a8e276229892969c7d82f56581e0c168b}{y0}
  44. \item
  45. int \hyperlink{class_line_a1c37aeef714f6c96454c2a9a2dadb69a}{x1}
  46. \item
  47. int \hyperlink{class_line_a850c96af61bd595a68b5e867540204f1}{y1}
  48. \item
  49. int \hyperlink{class_line_a4fc1d856f822dd0b88676e6c22a65f14}{pen\+Width}
  50. \item
  51. Q\+Color \hyperlink{class_line_a8778d952d4d2867bd2f31e5857c368b4}{pen\+Color}
  52. \end{DoxyCompactItemize}
  53. \subsection{Detailed Description}
  54. A class to describe lines.
  55. \subsection{Constructor \& Destructor Documentation}
  56. \hypertarget{class_line_a4d475f9d634f50933ca84e25d7cf32f9}{}\index{Line@{Line}!Line@{Line}}
  57. \index{Line@{Line}!Line@{Line}}
  58. \subsubsection[{Line}]{\setlength{\rightskip}{0pt plus 5cm}Line\+::\+Line (
  59. \begin{DoxyParamCaption}
  60. \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}}
  61. \end{DoxyParamCaption}
  62. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_line_a4d475f9d634f50933ca84e25d7cf32f9}
  63. Constructor.
  64. Constructor sets coordinates to 0, pen color to black and pen width to 1. \hypertarget{class_line_a37f70dab8d5cc7560e6362093a3aa1b9}{}\index{Line@{Line}!Line@{Line}}
  65. \index{Line@{Line}!Line@{Line}}
  66. \subsubsection[{Line}]{\setlength{\rightskip}{0pt plus 5cm}Line\+::\+Line (
  67. \begin{DoxyParamCaption}
  68. \item[{int}]{from\+X, }
  69. \item[{int}]{from\+Y, }
  70. \item[{int}]{to\+X, }
  71. \item[{int}]{to\+Y, }
  72. \item[{int}]{w, }
  73. \item[{Q\+Color}]{c, }
  74. \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}}
  75. \end{DoxyParamCaption}
  76. )}\label{class_line_a37f70dab8d5cc7560e6362093a3aa1b9}
  77. Constructor for a line, specifying the (from\+X,from\+Y) and (to\+X,to\+Y)
  78. \begin{DoxyParams}{Parameters}
  79. {\em from\+X} & starting x coordinate \\
  80. \hline
  81. {\em from\+Y} & starting y coordinate \\
  82. \hline
  83. {\em to\+X} & end x coordinate \\
  84. \hline
  85. {\em to\+Y} & end y coordinate \\
  86. \hline
  87. {\em w} & pen width \\
  88. \hline
  89. {\em c} & line color \\
  90. \hline
  91. {\em parent} & parent of this line \\
  92. \hline
  93. \end{DoxyParams}
  94. \hypertarget{class_line_a742b2aea487313953635d1e504c6b866}{}\index{Line@{Line}!Line@{Line}}
  95. \index{Line@{Line}!Line@{Line}}
  96. \subsubsection[{Line}]{\setlength{\rightskip}{0pt plus 5cm}Line\+::\+Line (
  97. \begin{DoxyParamCaption}
  98. \item[{int}]{from\+X, }
  99. \item[{int}]{from\+Y, }
  100. \item[{int}]{length, }
  101. \item[{double}]{angle, }
  102. \item[{int}]{w, }
  103. \item[{Q\+Color}]{c, }
  104. \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}}
  105. \end{DoxyParamCaption}
  106. )}\label{class_line_a742b2aea487313953635d1e504c6b866}
  107. Constructor for a line, specifying the (from\+X,from\+Y) and (to\+X,to\+Y)
  108. Constructor for a line, specifying (from\+X, from\+Y) and the {\bfseries length} and {\bfseries angle}.
  109. \begin{DoxyParams}{Parameters}
  110. {\em from\+X} & starting x coordinate \\
  111. \hline
  112. {\em from\+Y} & starting y coordinate \\
  113. \hline
  114. {\em length} & length of the line \\
  115. \hline
  116. {\em angle} & angle \\
  117. \hline
  118. {\em w} & pen width \\
  119. \hline
  120. {\em c} & line color \\
  121. \hline
  122. {\em parent} & parent of this line \\
  123. \hline
  124. \end{DoxyParams}
  125. \subsection{Member Function Documentation}
  126. \hypertarget{class_line_a0e23ee7edc154bd73fefab4d88cae150}{}\index{Line@{Line}!get\+X0@{get\+X0}}
  127. \index{get\+X0@{get\+X0}!Line@{Line}}
  128. \subsubsection[{get\+X0}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::get\+X0 (
  129. \begin{DoxyParamCaption}
  130. {}
  131. \end{DoxyParamCaption}
  132. )}\label{class_line_a0e23ee7edc154bd73fefab4d88cae150}
  133. Getter for the starting coordinate x.
  134. \begin{DoxyReturn}{Returns}
  135. starting coordinate x.
  136. \end{DoxyReturn}
  137. \hypertarget{class_line_a1f51d8df03219f5f63d656bc0e9b2830}{}\index{Line@{Line}!get\+X1@{get\+X1}}
  138. \index{get\+X1@{get\+X1}!Line@{Line}}
  139. \subsubsection[{get\+X1}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::get\+X1 (
  140. \begin{DoxyParamCaption}
  141. {}
  142. \end{DoxyParamCaption}
  143. )}\label{class_line_a1f51d8df03219f5f63d656bc0e9b2830}
  144. Getter for the ending coordinate x.
  145. \begin{DoxyReturn}{Returns}
  146. ending coordinate x.
  147. \end{DoxyReturn}
  148. \hypertarget{class_line_a971146fd8bbf711123f03e45daf923c9}{}\index{Line@{Line}!get\+Y0@{get\+Y0}}
  149. \index{get\+Y0@{get\+Y0}!Line@{Line}}
  150. \subsubsection[{get\+Y0}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::get\+Y0 (
  151. \begin{DoxyParamCaption}
  152. {}
  153. \end{DoxyParamCaption}
  154. )}\label{class_line_a971146fd8bbf711123f03e45daf923c9}
  155. Getter for the starting coordinate y.
  156. \begin{DoxyReturn}{Returns}
  157. starting coordinate y.
  158. \end{DoxyReturn}
  159. \hypertarget{class_line_a9cc398fdcf93212a3e4db28ac26a88a9}{}\index{Line@{Line}!get\+Y1@{get\+Y1}}
  160. \index{get\+Y1@{get\+Y1}!Line@{Line}}
  161. \subsubsection[{get\+Y1}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::get\+Y1 (
  162. \begin{DoxyParamCaption}
  163. {}
  164. \end{DoxyParamCaption}
  165. )}\label{class_line_a9cc398fdcf93212a3e4db28ac26a88a9}
  166. Getter for the ending coordinate y.
  167. \begin{DoxyReturn}{Returns}
  168. ending coordinate y.
  169. \end{DoxyReturn}
  170. \hypertarget{class_line_ac1475ffee823a7c05b2ac91bfe61596d}{}\index{Line@{Line}!set\+Coords@{set\+Coords}}
  171. \index{set\+Coords@{set\+Coords}!Line@{Line}}
  172. \subsubsection[{set\+Coords}]{\setlength{\rightskip}{0pt plus 5cm}void Line\+::set\+Coords (
  173. \begin{DoxyParamCaption}
  174. \item[{int}]{from\+X, }
  175. \item[{int}]{from\+Y, }
  176. \item[{int}]{to\+X, }
  177. \item[{int}]{to\+Y}
  178. \end{DoxyParamCaption}
  179. )}\label{class_line_ac1475ffee823a7c05b2ac91bfe61596d}
  180. Setter for the line coordinates.
  181. \begin{DoxyParams}{Parameters}
  182. {\em from\+X} & starting x coordinate \\
  183. \hline
  184. {\em from\+Y} & starting y coordinate \\
  185. \hline
  186. {\em to\+X} & end x coordinate \\
  187. \hline
  188. {\em to\+Y} & end y coordinate \\
  189. \hline
  190. \end{DoxyParams}
  191. \hypertarget{class_line_ac5b6d8e786cf3820fa36b8bda7130823}{}\index{Line@{Line}!setpen\+Color@{setpen\+Color}}
  192. \index{setpen\+Color@{setpen\+Color}!Line@{Line}}
  193. \subsubsection[{setpen\+Color}]{\setlength{\rightskip}{0pt plus 5cm}void Line\+::setpen\+Color (
  194. \begin{DoxyParamCaption}
  195. \item[{Q\+Color}]{c}
  196. \end{DoxyParamCaption}
  197. )}\label{class_line_ac5b6d8e786cf3820fa36b8bda7130823}
  198. Setter for the pen color.
  199. \begin{DoxyParams}{Parameters}
  200. {\em c} & line color \\
  201. \hline
  202. \end{DoxyParams}
  203. \hypertarget{class_line_a346d88820371b5a4710eed8a638fc451}{}\index{Line@{Line}!set\+Pen\+Width@{set\+Pen\+Width}}
  204. \index{set\+Pen\+Width@{set\+Pen\+Width}!Line@{Line}}
  205. \subsubsection[{set\+Pen\+Width}]{\setlength{\rightskip}{0pt plus 5cm}void Line\+::set\+Pen\+Width (
  206. \begin{DoxyParamCaption}
  207. \item[{int}]{w}
  208. \end{DoxyParamCaption}
  209. )}\label{class_line_a346d88820371b5a4710eed8a638fc451}
  210. Setter for the pen width.
  211. \begin{DoxyParams}{Parameters}
  212. {\em w} & pen width \\
  213. \hline
  214. \end{DoxyParams}
  215. \subsection{Member Data Documentation}
  216. \hypertarget{class_line_a8778d952d4d2867bd2f31e5857c368b4}{}\index{Line@{Line}!pen\+Color@{pen\+Color}}
  217. \index{pen\+Color@{pen\+Color}!Line@{Line}}
  218. \subsubsection[{pen\+Color}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Color Line\+::pen\+Color\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a8778d952d4d2867bd2f31e5857c368b4}
  219. pen color / color del boligrafo \hypertarget{class_line_a4fc1d856f822dd0b88676e6c22a65f14}{}\index{Line@{Line}!pen\+Width@{pen\+Width}}
  220. \index{pen\+Width@{pen\+Width}!Line@{Line}}
  221. \subsubsection[{pen\+Width}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::pen\+Width\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a4fc1d856f822dd0b88676e6c22a65f14}
  222. pen width / ancho del boligrafo \hypertarget{class_line_a647f6f5c0e2b197e3671f8bdb9ff64a2}{}\index{Line@{Line}!x0@{x0}}
  223. \index{x0@{x0}!Line@{Line}}
  224. \subsubsection[{x0}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::x0\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a647f6f5c0e2b197e3671f8bdb9ff64a2}
  225. initial coord x / coordenada inicial x \hypertarget{class_line_a1c37aeef714f6c96454c2a9a2dadb69a}{}\index{Line@{Line}!x1@{x1}}
  226. \index{x1@{x1}!Line@{Line}}
  227. \subsubsection[{x1}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::x1\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a1c37aeef714f6c96454c2a9a2dadb69a}
  228. ending coord x / coordenada final x \hypertarget{class_line_a8e276229892969c7d82f56581e0c168b}{}\index{Line@{Line}!y0@{y0}}
  229. \index{y0@{y0}!Line@{Line}}
  230. \subsubsection[{y0}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::y0\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a8e276229892969c7d82f56581e0c168b}
  231. initial coord y / coordenada inicial y \hypertarget{class_line_a850c96af61bd595a68b5e867540204f1}{}\index{Line@{Line}!y1@{y1}}
  232. \index{y1@{y1}!Line@{Line}}
  233. \subsubsection[{y1}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::y1\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a850c96af61bd595a68b5e867540204f1}
  234. ending coord y / coordenada final y
  235. The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
  236. \item
  237. line.\+h\item
  238. line.\+cpp\end{DoxyCompactItemize}