No Description

class_line.tex 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. \hypertarget{class_line}{}\section{Referencia de la Clase Line}
  2. \label{class_line}\index{Line@{Line}}
  3. {\ttfamily \#include $<$line.\+h$>$}
  4. Diagrama de herencias de Line\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=2.000000cm]{class_line}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Métodos públicos}
  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 para una linea especificando el (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 para una linea especificando el (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 Ajustador de las coordenadas de la linea. \end{DoxyCompactList}\item
  21. void \hyperlink{class_line_ac5b6d8e786cf3820fa36b8bda7130823}{setpen\+Color} (Q\+Color c)
  22. \begin{DoxyCompactList}\small\item\em Ajustador del color del boligrafo. \end{DoxyCompactList}\item
  23. void \hyperlink{class_line_a346d88820371b5a4710eed8a638fc451}{set\+Pen\+Width} (int w)
  24. \begin{DoxyCompactList}\small\item\em Ajustador del ancho del boligrafo. \end{DoxyCompactList}\item
  25. int \hyperlink{class_line_a0e23ee7edc154bd73fefab4d88cae150}{get\+X0} ()
  26. \begin{DoxyCompactList}\small\item\em Devuelve la coordenada inicial x. \end{DoxyCompactList}\item
  27. int \hyperlink{class_line_a971146fd8bbf711123f03e45daf923c9}{get\+Y0} ()
  28. \begin{DoxyCompactList}\small\item\em Devuelve la coordenada inicial y. \end{DoxyCompactList}\item
  29. int \hyperlink{class_line_a1f51d8df03219f5f63d656bc0e9b2830}{get\+X1} ()
  30. \begin{DoxyCompactList}\small\item\em Devuelve la coordenada final x. \end{DoxyCompactList}\item
  31. int \hyperlink{class_line_a9cc398fdcf93212a3e4db28ac26a88a9}{get\+Y1} ()
  32. \begin{DoxyCompactList}\small\item\em Devuelve la coordenada final y. \end{DoxyCompactList}\end{DoxyCompactItemize}
  33. \subsection*{Métodos protegidos}
  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 La funcion para el evento de pintar es invocada automaticamente cada ves que evento de repintar ocurre. \end{DoxyCompactList}\end{DoxyCompactItemize}
  38. \subsection*{Atributos privados}
  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{Descripción detallada}
  54. Una clase para describir lineas
  55. \subsection{Documentación del constructor y destructor}
  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 que ajusta las coordenadas a 0, el color y el ancho del boligrafo a negro y 1 respectivamente. \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 para una linea especificando el (from\+X,from\+Y) and (to\+X,to\+Y)
  78. Constructor de una linea, especificando las coordenadas (from\+X,from\+Y) y (to\+X,to\+Y)
  79. \begin{DoxyParams}{Parámetros}
  80. {\em from\+X} & coordenada x inicial \\
  81. \hline
  82. {\em from\+Y} & coordenada y inicial \\
  83. \hline
  84. {\em to\+X} & coordenada x final \\
  85. \hline
  86. {\em to\+Y} & coordenada y final \\
  87. \hline
  88. {\em w} & ancho de la pluma \\
  89. \hline
  90. {\em c} & color de la linea \\
  91. \hline
  92. {\em parent} & padre de esta linea\\
  93. \hline
  94. {\em from\+X} & coordenada x inicial \\
  95. \hline
  96. {\em from\+Y} & coordenada y inicial \\
  97. \hline
  98. {\em to\+X} & coordenada x final \\
  99. \hline
  100. {\em to\+Y} & end coordenada y final \\
  101. \hline
  102. {\em w} & ancho del boligrafo \\
  103. \hline
  104. {\em c} & color de la linea. \\
  105. \hline
  106. {\em parent} & parent of this line \\
  107. \hline
  108. \end{DoxyParams}
  109. \hypertarget{class_line_a742b2aea487313953635d1e504c6b866}{}\index{Line@{Line}!Line@{Line}}
  110. \index{Line@{Line}!Line@{Line}}
  111. \subsubsection[{Line}]{\setlength{\rightskip}{0pt plus 5cm}Line\+::\+Line (
  112. \begin{DoxyParamCaption}
  113. \item[{int}]{from\+X, }
  114. \item[{int}]{from\+Y, }
  115. \item[{int}]{length, }
  116. \item[{double}]{angle, }
  117. \item[{int}]{w, }
  118. \item[{Q\+Color}]{c, }
  119. \item[{Q\+Widget $\ast$}]{parent = {\ttfamily 0}}
  120. \end{DoxyParamCaption}
  121. )}\label{class_line_a742b2aea487313953635d1e504c6b866}
  122. Constructor para una linea especificando el (from\+X,from\+Y) and (to\+X,to\+Y)
  123. Constructor de una linea, especificando la coordenada (from\+X, from\+Y) and el largo (length) y el angulo (angle).
  124. \begin{DoxyParams}{Parámetros}
  125. {\em from\+X} & coordenada x inicial \\
  126. \hline
  127. {\em from\+Y} & coordenada y inicial \\
  128. \hline
  129. {\em length} & largo de la linea \\
  130. \hline
  131. {\em angle} & angulo de la linea \\
  132. \hline
  133. {\em w} & ancho de la pluma \\
  134. \hline
  135. {\em c} & color de la linea \\
  136. \hline
  137. {\em parent} & padre de esta linea\\
  138. \hline
  139. {\em from\+X} & coordenada x inicial \\
  140. \hline
  141. {\em from\+Y} & coordenada y inicia \\
  142. \hline
  143. {\em length} & largo de la linea \\
  144. \hline
  145. {\em angle} & angulo de la linea \\
  146. \hline
  147. {\em w} & ancho de la linea \\
  148. \hline
  149. {\em c} & color de la linea \\
  150. \hline
  151. {\em parent} & padre de esta linea \\
  152. \hline
  153. \end{DoxyParams}
  154. \subsection{Documentación de las funciones miembro}
  155. \hypertarget{class_line_a0e23ee7edc154bd73fefab4d88cae150}{}\index{Line@{Line}!get\+X0@{get\+X0}}
  156. \index{get\+X0@{get\+X0}!Line@{Line}}
  157. \subsubsection[{get\+X0}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::get\+X0 (
  158. \begin{DoxyParamCaption}
  159. {}
  160. \end{DoxyParamCaption}
  161. )}\label{class_line_a0e23ee7edc154bd73fefab4d88cae150}
  162. Devuelve la coordenada inicial x.
  163. \begin{DoxyReturn}{Devuelve}
  164. coordenada inicial x
  165. \end{DoxyReturn}
  166. \hypertarget{class_line_a1f51d8df03219f5f63d656bc0e9b2830}{}\index{Line@{Line}!get\+X1@{get\+X1}}
  167. \index{get\+X1@{get\+X1}!Line@{Line}}
  168. \subsubsection[{get\+X1}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::get\+X1 (
  169. \begin{DoxyParamCaption}
  170. {}
  171. \end{DoxyParamCaption}
  172. )}\label{class_line_a1f51d8df03219f5f63d656bc0e9b2830}
  173. Devuelve la coordenada final x.
  174. \begin{DoxyReturn}{Devuelve}
  175. coordenada final x.
  176. \end{DoxyReturn}
  177. \hypertarget{class_line_a971146fd8bbf711123f03e45daf923c9}{}\index{Line@{Line}!get\+Y0@{get\+Y0}}
  178. \index{get\+Y0@{get\+Y0}!Line@{Line}}
  179. \subsubsection[{get\+Y0}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::get\+Y0 (
  180. \begin{DoxyParamCaption}
  181. {}
  182. \end{DoxyParamCaption}
  183. )}\label{class_line_a971146fd8bbf711123f03e45daf923c9}
  184. Devuelve la coordenada inicial y.
  185. \begin{DoxyReturn}{Devuelve}
  186. coordenada inicial y
  187. \end{DoxyReturn}
  188. \hypertarget{class_line_a9cc398fdcf93212a3e4db28ac26a88a9}{}\index{Line@{Line}!get\+Y1@{get\+Y1}}
  189. \index{get\+Y1@{get\+Y1}!Line@{Line}}
  190. \subsubsection[{get\+Y1}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::get\+Y1 (
  191. \begin{DoxyParamCaption}
  192. {}
  193. \end{DoxyParamCaption}
  194. )}\label{class_line_a9cc398fdcf93212a3e4db28ac26a88a9}
  195. Devuelve la coordenada final y.
  196. \begin{DoxyReturn}{Devuelve}
  197. coordenada final y
  198. \end{DoxyReturn}
  199. \hypertarget{class_line_ac1475ffee823a7c05b2ac91bfe61596d}{}\index{Line@{Line}!set\+Coords@{set\+Coords}}
  200. \index{set\+Coords@{set\+Coords}!Line@{Line}}
  201. \subsubsection[{set\+Coords}]{\setlength{\rightskip}{0pt plus 5cm}void Line\+::set\+Coords (
  202. \begin{DoxyParamCaption}
  203. \item[{int}]{from\+X, }
  204. \item[{int}]{from\+Y, }
  205. \item[{int}]{to\+X, }
  206. \item[{int}]{to\+Y}
  207. \end{DoxyParamCaption}
  208. )}\label{class_line_ac1475ffee823a7c05b2ac91bfe61596d}
  209. Ajustador de las coordenadas de la linea.
  210. \begin{DoxyParams}{Parámetros}
  211. {\em from\+X} & coordenada x inicial \\
  212. \hline
  213. {\em from\+Y} & coordenada y inicial \\
  214. \hline
  215. {\em to\+X} & coordenada x final \\
  216. \hline
  217. {\em to\+Y} & end coordenada y final \\
  218. \hline
  219. \end{DoxyParams}
  220. \hypertarget{class_line_ac5b6d8e786cf3820fa36b8bda7130823}{}\index{Line@{Line}!setpen\+Color@{setpen\+Color}}
  221. \index{setpen\+Color@{setpen\+Color}!Line@{Line}}
  222. \subsubsection[{setpen\+Color}]{\setlength{\rightskip}{0pt plus 5cm}void Line\+::setpen\+Color (
  223. \begin{DoxyParamCaption}
  224. \item[{Q\+Color}]{c}
  225. \end{DoxyParamCaption}
  226. )}\label{class_line_ac5b6d8e786cf3820fa36b8bda7130823}
  227. Ajustador del color del boligrafo.
  228. \begin{DoxyParams}{Parámetros}
  229. {\em c} & color de la linea \\
  230. \hline
  231. \end{DoxyParams}
  232. \hypertarget{class_line_a346d88820371b5a4710eed8a638fc451}{}\index{Line@{Line}!set\+Pen\+Width@{set\+Pen\+Width}}
  233. \index{set\+Pen\+Width@{set\+Pen\+Width}!Line@{Line}}
  234. \subsubsection[{set\+Pen\+Width}]{\setlength{\rightskip}{0pt plus 5cm}void Line\+::set\+Pen\+Width (
  235. \begin{DoxyParamCaption}
  236. \item[{int}]{w}
  237. \end{DoxyParamCaption}
  238. )}\label{class_line_a346d88820371b5a4710eed8a638fc451}
  239. Ajustador del ancho del boligrafo.
  240. \begin{DoxyParams}{Parámetros}
  241. {\em w} & ancho de la linea \\
  242. \hline
  243. \end{DoxyParams}
  244. \subsection{Documentación de los datos miembro}
  245. \hypertarget{class_line_a8778d952d4d2867bd2f31e5857c368b4}{}\index{Line@{Line}!pen\+Color@{pen\+Color}}
  246. \index{pen\+Color@{pen\+Color}!Line@{Line}}
  247. \subsubsection[{pen\+Color}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Color Line\+::pen\+Color\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a8778d952d4d2867bd2f31e5857c368b4}
  248. pen color / color del boligrafo \hypertarget{class_line_a4fc1d856f822dd0b88676e6c22a65f14}{}\index{Line@{Line}!pen\+Width@{pen\+Width}}
  249. \index{pen\+Width@{pen\+Width}!Line@{Line}}
  250. \subsubsection[{pen\+Width}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::pen\+Width\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a4fc1d856f822dd0b88676e6c22a65f14}
  251. pen width / ancho del boligrafo \hypertarget{class_line_a647f6f5c0e2b197e3671f8bdb9ff64a2}{}\index{Line@{Line}!x0@{x0}}
  252. \index{x0@{x0}!Line@{Line}}
  253. \subsubsection[{x0}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::x0\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a647f6f5c0e2b197e3671f8bdb9ff64a2}
  254. initial coord x / coordenada inicial x \hypertarget{class_line_a1c37aeef714f6c96454c2a9a2dadb69a}{}\index{Line@{Line}!x1@{x1}}
  255. \index{x1@{x1}!Line@{Line}}
  256. \subsubsection[{x1}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::x1\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a1c37aeef714f6c96454c2a9a2dadb69a}
  257. ending coord x / coordenada final x \hypertarget{class_line_a8e276229892969c7d82f56581e0c168b}{}\index{Line@{Line}!y0@{y0}}
  258. \index{y0@{y0}!Line@{Line}}
  259. \subsubsection[{y0}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::y0\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a8e276229892969c7d82f56581e0c168b}
  260. initial coord y / coordenada inicial y \hypertarget{class_line_a850c96af61bd595a68b5e867540204f1}{}\index{Line@{Line}!y1@{y1}}
  261. \index{y1@{y1}!Line@{Line}}
  262. \subsubsection[{y1}]{\setlength{\rightskip}{0pt plus 5cm}int Line\+::y1\hspace{0.3cm}{\ttfamily [private]}}\label{class_line_a850c96af61bd595a68b5e867540204f1}
  263. ending coord y / coordenada final y
  264. La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize}
  265. \item
  266. line.\+h\item
  267. line.\+cpp\end{DoxyCompactItemize}