Nessuna descrizione

class_line.html 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.9.1"/>
  7. <title>My Project: Line Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td style="padding-left: 0.5em;">
  26. <div id="projectname">My Project
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.9.1 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  42. <li><a href="files.html"><span>Files</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Search" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  64. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  65. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  66. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  67. </ul>
  68. </div>
  69. <!-- window showing the filter options -->
  70. <div id="MSearchSelectWindow"
  71. onmouseover="return searchBox.OnSearchSelectShow()"
  72. onmouseout="return searchBox.OnSearchSelectHide()"
  73. onkeydown="return searchBox.OnSearchSelectKey(event)">
  74. </div>
  75. <!-- iframe showing the search results (closed by default) -->
  76. <div id="MSearchResultsWindow">
  77. <iframe src="javascript:void(0)" frameborder="0"
  78. name="MSearchResults" id="MSearchResults">
  79. </iframe>
  80. </div>
  81. </div><!-- top -->
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-methods">Public Member Functions</a> &#124;
  85. <a href="#pro-methods">Protected Member Functions</a> &#124;
  86. <a href="#pri-attribs">Private Attributes</a> &#124;
  87. <a href="class_line-members.html">List of all members</a> </div>
  88. <div class="headertitle">
  89. <div class="title">Line Class Reference</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <p><code>#include &lt;<a class="el" href="line_8h_source.html">line.h</a>&gt;</code></p>
  93. <div class="dynheader">
  94. Inheritance diagram for Line:</div>
  95. <div class="dyncontent">
  96. <div class="center">
  97. <img src="class_line.png" usemap="#Line_map" alt=""/>
  98. <map id="Line_map" name="Line_map">
  99. </map>
  100. </div></div>
  101. <table class="memberdecls">
  102. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  103. Public Member Functions</h2></td></tr>
  104. <tr class="memitem:a4d475f9d634f50933ca84e25d7cf32f9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a4d475f9d634f50933ca84e25d7cf32f9">Line</a> (QWidget *parent=0)</td></tr>
  105. <tr class="memdesc:a4d475f9d634f50933ca84e25d7cf32f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <a href="#a4d475f9d634f50933ca84e25d7cf32f9">More...</a><br /></td></tr>
  106. <tr class="separator:a4d475f9d634f50933ca84e25d7cf32f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a37f70dab8d5cc7560e6362093a3aa1b9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a37f70dab8d5cc7560e6362093a3aa1b9">Line</a> (int fromX, int fromY, int toX, int toY, int w, QColor c, QWidget *parent=0)</td></tr>
  108. <tr class="memdesc:a37f70dab8d5cc7560e6362093a3aa1b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for a line, specifying the (fromX,fromY) and (toX,toY) <a href="#a37f70dab8d5cc7560e6362093a3aa1b9">More...</a><br /></td></tr>
  109. <tr class="separator:a37f70dab8d5cc7560e6362093a3aa1b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a742b2aea487313953635d1e504c6b866"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a742b2aea487313953635d1e504c6b866">Line</a> (int fromX, int fromY, int length, double angle, int w, QColor c, QWidget *parent=0)</td></tr>
  111. <tr class="memdesc:a742b2aea487313953635d1e504c6b866"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for a line, specifying the (fromX,fromY) and (toX,toY) <a href="#a742b2aea487313953635d1e504c6b866">More...</a><br /></td></tr>
  112. <tr class="separator:a742b2aea487313953635d1e504c6b866"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:ac1475ffee823a7c05b2ac91bfe61596d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#ac1475ffee823a7c05b2ac91bfe61596d">setCoords</a> (int fromX, int fromY, int toX, int toY)</td></tr>
  114. <tr class="memdesc:ac1475ffee823a7c05b2ac91bfe61596d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setter for the line coordinates. <a href="#ac1475ffee823a7c05b2ac91bfe61596d">More...</a><br /></td></tr>
  115. <tr class="separator:ac1475ffee823a7c05b2ac91bfe61596d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:ac5b6d8e786cf3820fa36b8bda7130823"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#ac5b6d8e786cf3820fa36b8bda7130823">setpenColor</a> (QColor c)</td></tr>
  117. <tr class="memdesc:ac5b6d8e786cf3820fa36b8bda7130823"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setter for the pen color. <a href="#ac5b6d8e786cf3820fa36b8bda7130823">More...</a><br /></td></tr>
  118. <tr class="separator:ac5b6d8e786cf3820fa36b8bda7130823"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:a346d88820371b5a4710eed8a638fc451"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a346d88820371b5a4710eed8a638fc451">setPenWidth</a> (int w)</td></tr>
  120. <tr class="memdesc:a346d88820371b5a4710eed8a638fc451"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setter for the pen width. <a href="#a346d88820371b5a4710eed8a638fc451">More...</a><br /></td></tr>
  121. <tr class="separator:a346d88820371b5a4710eed8a638fc451"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a0e23ee7edc154bd73fefab4d88cae150"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a0e23ee7edc154bd73fefab4d88cae150">getX0</a> ()</td></tr>
  123. <tr class="memdesc:a0e23ee7edc154bd73fefab4d88cae150"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the starting coordinate x. <a href="#a0e23ee7edc154bd73fefab4d88cae150">More...</a><br /></td></tr>
  124. <tr class="separator:a0e23ee7edc154bd73fefab4d88cae150"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a971146fd8bbf711123f03e45daf923c9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a971146fd8bbf711123f03e45daf923c9">getY0</a> ()</td></tr>
  126. <tr class="memdesc:a971146fd8bbf711123f03e45daf923c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the starting coordinate y. <a href="#a971146fd8bbf711123f03e45daf923c9">More...</a><br /></td></tr>
  127. <tr class="separator:a971146fd8bbf711123f03e45daf923c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a1f51d8df03219f5f63d656bc0e9b2830"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a1f51d8df03219f5f63d656bc0e9b2830">getX1</a> ()</td></tr>
  129. <tr class="memdesc:a1f51d8df03219f5f63d656bc0e9b2830"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the ending coordinate x. <a href="#a1f51d8df03219f5f63d656bc0e9b2830">More...</a><br /></td></tr>
  130. <tr class="separator:a1f51d8df03219f5f63d656bc0e9b2830"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a9cc398fdcf93212a3e4db28ac26a88a9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a9cc398fdcf93212a3e4db28ac26a88a9">getY1</a> ()</td></tr>
  132. <tr class="memdesc:a9cc398fdcf93212a3e4db28ac26a88a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Getter for the ending coordinate y. <a href="#a9cc398fdcf93212a3e4db28ac26a88a9">More...</a><br /></td></tr>
  133. <tr class="separator:a9cc398fdcf93212a3e4db28ac26a88a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. </table><table class="memberdecls">
  135. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  136. Protected Member Functions</h2></td></tr>
  137. <tr class="memitem:a7e1f30fa9d7375fd67a2b4cf5a1b6a76"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e1f30fa9d7375fd67a2b4cf5a1b6a76"></a>
  138. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a7e1f30fa9d7375fd67a2b4cf5a1b6a76">paintEvent</a> (QPaintEvent *)</td></tr>
  139. <tr class="memdesc:a7e1f30fa9d7375fd67a2b4cf5a1b6a76"><td class="mdescLeft">&#160;</td><td class="mdescRight">The paint event function is automatically invoked whenever a resize or repaint happens. <br /></td></tr>
  140. <tr class="separator:a7e1f30fa9d7375fd67a2b4cf5a1b6a76"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. </table><table class="memberdecls">
  142. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  143. Private Attributes</h2></td></tr>
  144. <tr class="memitem:a647f6f5c0e2b197e3671f8bdb9ff64a2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a647f6f5c0e2b197e3671f8bdb9ff64a2">x0</a></td></tr>
  145. <tr class="separator:a647f6f5c0e2b197e3671f8bdb9ff64a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:a8e276229892969c7d82f56581e0c168b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a8e276229892969c7d82f56581e0c168b">y0</a></td></tr>
  147. <tr class="separator:a8e276229892969c7d82f56581e0c168b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:a1c37aeef714f6c96454c2a9a2dadb69a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a1c37aeef714f6c96454c2a9a2dadb69a">x1</a></td></tr>
  149. <tr class="separator:a1c37aeef714f6c96454c2a9a2dadb69a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:a850c96af61bd595a68b5e867540204f1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a850c96af61bd595a68b5e867540204f1">y1</a></td></tr>
  151. <tr class="separator:a850c96af61bd595a68b5e867540204f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:a4fc1d856f822dd0b88676e6c22a65f14"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a4fc1d856f822dd0b88676e6c22a65f14">penWidth</a></td></tr>
  153. <tr class="separator:a4fc1d856f822dd0b88676e6c22a65f14"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:a8778d952d4d2867bd2f31e5857c368b4"><td class="memItemLeft" align="right" valign="top">QColor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_line.html#a8778d952d4d2867bd2f31e5857c368b4">penColor</a></td></tr>
  155. <tr class="separator:a8778d952d4d2867bd2f31e5857c368b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. </table>
  157. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  158. <div class="textblock"><p>A class to describe lines. </p>
  159. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  160. <a class="anchor" id="a4d475f9d634f50933ca84e25d7cf32f9"></a>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <table class="mlabels">
  164. <tr>
  165. <td class="mlabels-left">
  166. <table class="memname">
  167. <tr>
  168. <td class="memname">Line::Line </td>
  169. <td>(</td>
  170. <td class="paramtype">QWidget *&#160;</td>
  171. <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
  172. <td></td>
  173. </tr>
  174. </table>
  175. </td>
  176. <td class="mlabels-right">
  177. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>Constructor. </p>
  182. <p>Constructor sets coordinates to 0, pen color to black and pen width to 1. </p>
  183. </div>
  184. </div>
  185. <a class="anchor" id="a37f70dab8d5cc7560e6362093a3aa1b9"></a>
  186. <div class="memitem">
  187. <div class="memproto">
  188. <table class="memname">
  189. <tr>
  190. <td class="memname">Line::Line </td>
  191. <td>(</td>
  192. <td class="paramtype">int&#160;</td>
  193. <td class="paramname"><em>fromX</em>, </td>
  194. </tr>
  195. <tr>
  196. <td class="paramkey"></td>
  197. <td></td>
  198. <td class="paramtype">int&#160;</td>
  199. <td class="paramname"><em>fromY</em>, </td>
  200. </tr>
  201. <tr>
  202. <td class="paramkey"></td>
  203. <td></td>
  204. <td class="paramtype">int&#160;</td>
  205. <td class="paramname"><em>toX</em>, </td>
  206. </tr>
  207. <tr>
  208. <td class="paramkey"></td>
  209. <td></td>
  210. <td class="paramtype">int&#160;</td>
  211. <td class="paramname"><em>toY</em>, </td>
  212. </tr>
  213. <tr>
  214. <td class="paramkey"></td>
  215. <td></td>
  216. <td class="paramtype">int&#160;</td>
  217. <td class="paramname"><em>w</em>, </td>
  218. </tr>
  219. <tr>
  220. <td class="paramkey"></td>
  221. <td></td>
  222. <td class="paramtype">QColor&#160;</td>
  223. <td class="paramname"><em>c</em>, </td>
  224. </tr>
  225. <tr>
  226. <td class="paramkey"></td>
  227. <td></td>
  228. <td class="paramtype">QWidget *&#160;</td>
  229. <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
  230. </tr>
  231. <tr>
  232. <td></td>
  233. <td>)</td>
  234. <td></td><td></td>
  235. </tr>
  236. </table>
  237. </div><div class="memdoc">
  238. <p>Constructor for a line, specifying the (fromX,fromY) and (toX,toY) </p>
  239. <dl class="params"><dt>Parameters</dt><dd>
  240. <table class="params">
  241. <tr><td class="paramname">fromX</td><td>starting x coordinate </td></tr>
  242. <tr><td class="paramname">fromY</td><td>starting y coordinate </td></tr>
  243. <tr><td class="paramname">toX</td><td>end x coordinate </td></tr>
  244. <tr><td class="paramname">toY</td><td>end y coordinate </td></tr>
  245. <tr><td class="paramname">w</td><td>pen width </td></tr>
  246. <tr><td class="paramname">c</td><td>line color </td></tr>
  247. <tr><td class="paramname">parent</td><td>parent of this line </td></tr>
  248. </table>
  249. </dd>
  250. </dl>
  251. </div>
  252. </div>
  253. <a class="anchor" id="a742b2aea487313953635d1e504c6b866"></a>
  254. <div class="memitem">
  255. <div class="memproto">
  256. <table class="memname">
  257. <tr>
  258. <td class="memname">Line::Line </td>
  259. <td>(</td>
  260. <td class="paramtype">int&#160;</td>
  261. <td class="paramname"><em>fromX</em>, </td>
  262. </tr>
  263. <tr>
  264. <td class="paramkey"></td>
  265. <td></td>
  266. <td class="paramtype">int&#160;</td>
  267. <td class="paramname"><em>fromY</em>, </td>
  268. </tr>
  269. <tr>
  270. <td class="paramkey"></td>
  271. <td></td>
  272. <td class="paramtype">int&#160;</td>
  273. <td class="paramname"><em>length</em>, </td>
  274. </tr>
  275. <tr>
  276. <td class="paramkey"></td>
  277. <td></td>
  278. <td class="paramtype">double&#160;</td>
  279. <td class="paramname"><em>angle</em>, </td>
  280. </tr>
  281. <tr>
  282. <td class="paramkey"></td>
  283. <td></td>
  284. <td class="paramtype">int&#160;</td>
  285. <td class="paramname"><em>w</em>, </td>
  286. </tr>
  287. <tr>
  288. <td class="paramkey"></td>
  289. <td></td>
  290. <td class="paramtype">QColor&#160;</td>
  291. <td class="paramname"><em>c</em>, </td>
  292. </tr>
  293. <tr>
  294. <td class="paramkey"></td>
  295. <td></td>
  296. <td class="paramtype">QWidget *&#160;</td>
  297. <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
  298. </tr>
  299. <tr>
  300. <td></td>
  301. <td>)</td>
  302. <td></td><td></td>
  303. </tr>
  304. </table>
  305. </div><div class="memdoc">
  306. <p>Constructor for a line, specifying the (fromX,fromY) and (toX,toY) </p>
  307. <p>Constructor for a line, specifying (fromX, fromY) and the <b>length</b> and <b>angle</b>.</p>
  308. <dl class="params"><dt>Parameters</dt><dd>
  309. <table class="params">
  310. <tr><td class="paramname">fromX</td><td>starting x coordinate </td></tr>
  311. <tr><td class="paramname">fromY</td><td>starting y coordinate </td></tr>
  312. <tr><td class="paramname">length</td><td>length of the line </td></tr>
  313. <tr><td class="paramname">angle</td><td>angle </td></tr>
  314. <tr><td class="paramname">w</td><td>pen width </td></tr>
  315. <tr><td class="paramname">c</td><td>line color </td></tr>
  316. <tr><td class="paramname">parent</td><td>parent of this line </td></tr>
  317. </table>
  318. </dd>
  319. </dl>
  320. </div>
  321. </div>
  322. <h2 class="groupheader">Member Function Documentation</h2>
  323. <a class="anchor" id="a0e23ee7edc154bd73fefab4d88cae150"></a>
  324. <div class="memitem">
  325. <div class="memproto">
  326. <table class="memname">
  327. <tr>
  328. <td class="memname">int Line::getX0 </td>
  329. <td>(</td>
  330. <td class="paramname"></td><td>)</td>
  331. <td></td>
  332. </tr>
  333. </table>
  334. </div><div class="memdoc">
  335. <p>Getter for the starting coordinate x. </p>
  336. <dl class="section return"><dt>Returns</dt><dd>starting coordinate x. </dd></dl>
  337. </div>
  338. </div>
  339. <a class="anchor" id="a1f51d8df03219f5f63d656bc0e9b2830"></a>
  340. <div class="memitem">
  341. <div class="memproto">
  342. <table class="memname">
  343. <tr>
  344. <td class="memname">int Line::getX1 </td>
  345. <td>(</td>
  346. <td class="paramname"></td><td>)</td>
  347. <td></td>
  348. </tr>
  349. </table>
  350. </div><div class="memdoc">
  351. <p>Getter for the ending coordinate x. </p>
  352. <dl class="section return"><dt>Returns</dt><dd>ending coordinate x. </dd></dl>
  353. </div>
  354. </div>
  355. <a class="anchor" id="a971146fd8bbf711123f03e45daf923c9"></a>
  356. <div class="memitem">
  357. <div class="memproto">
  358. <table class="memname">
  359. <tr>
  360. <td class="memname">int Line::getY0 </td>
  361. <td>(</td>
  362. <td class="paramname"></td><td>)</td>
  363. <td></td>
  364. </tr>
  365. </table>
  366. </div><div class="memdoc">
  367. <p>Getter for the starting coordinate y. </p>
  368. <dl class="section return"><dt>Returns</dt><dd>starting coordinate y. </dd></dl>
  369. </div>
  370. </div>
  371. <a class="anchor" id="a9cc398fdcf93212a3e4db28ac26a88a9"></a>
  372. <div class="memitem">
  373. <div class="memproto">
  374. <table class="memname">
  375. <tr>
  376. <td class="memname">int Line::getY1 </td>
  377. <td>(</td>
  378. <td class="paramname"></td><td>)</td>
  379. <td></td>
  380. </tr>
  381. </table>
  382. </div><div class="memdoc">
  383. <p>Getter for the ending coordinate y. </p>
  384. <dl class="section return"><dt>Returns</dt><dd>ending coordinate y. </dd></dl>
  385. </div>
  386. </div>
  387. <a class="anchor" id="ac1475ffee823a7c05b2ac91bfe61596d"></a>
  388. <div class="memitem">
  389. <div class="memproto">
  390. <table class="memname">
  391. <tr>
  392. <td class="memname">void Line::setCoords </td>
  393. <td>(</td>
  394. <td class="paramtype">int&#160;</td>
  395. <td class="paramname"><em>fromX</em>, </td>
  396. </tr>
  397. <tr>
  398. <td class="paramkey"></td>
  399. <td></td>
  400. <td class="paramtype">int&#160;</td>
  401. <td class="paramname"><em>fromY</em>, </td>
  402. </tr>
  403. <tr>
  404. <td class="paramkey"></td>
  405. <td></td>
  406. <td class="paramtype">int&#160;</td>
  407. <td class="paramname"><em>toX</em>, </td>
  408. </tr>
  409. <tr>
  410. <td class="paramkey"></td>
  411. <td></td>
  412. <td class="paramtype">int&#160;</td>
  413. <td class="paramname"><em>toY</em>&#160;</td>
  414. </tr>
  415. <tr>
  416. <td></td>
  417. <td>)</td>
  418. <td></td><td></td>
  419. </tr>
  420. </table>
  421. </div><div class="memdoc">
  422. <p>Setter for the line coordinates. </p>
  423. <dl class="params"><dt>Parameters</dt><dd>
  424. <table class="params">
  425. <tr><td class="paramname">fromX</td><td>starting x coordinate </td></tr>
  426. <tr><td class="paramname">fromY</td><td>starting y coordinate </td></tr>
  427. <tr><td class="paramname">toX</td><td>end x coordinate </td></tr>
  428. <tr><td class="paramname">toY</td><td>end y coordinate </td></tr>
  429. </table>
  430. </dd>
  431. </dl>
  432. </div>
  433. </div>
  434. <a class="anchor" id="ac5b6d8e786cf3820fa36b8bda7130823"></a>
  435. <div class="memitem">
  436. <div class="memproto">
  437. <table class="memname">
  438. <tr>
  439. <td class="memname">void Line::setpenColor </td>
  440. <td>(</td>
  441. <td class="paramtype">QColor&#160;</td>
  442. <td class="paramname"><em>c</em></td><td>)</td>
  443. <td></td>
  444. </tr>
  445. </table>
  446. </div><div class="memdoc">
  447. <p>Setter for the pen color. </p>
  448. <dl class="params"><dt>Parameters</dt><dd>
  449. <table class="params">
  450. <tr><td class="paramname">c</td><td>line color </td></tr>
  451. </table>
  452. </dd>
  453. </dl>
  454. </div>
  455. </div>
  456. <a class="anchor" id="a346d88820371b5a4710eed8a638fc451"></a>
  457. <div class="memitem">
  458. <div class="memproto">
  459. <table class="memname">
  460. <tr>
  461. <td class="memname">void Line::setPenWidth </td>
  462. <td>(</td>
  463. <td class="paramtype">int&#160;</td>
  464. <td class="paramname"><em>w</em></td><td>)</td>
  465. <td></td>
  466. </tr>
  467. </table>
  468. </div><div class="memdoc">
  469. <p>Setter for the pen width. </p>
  470. <dl class="params"><dt>Parameters</dt><dd>
  471. <table class="params">
  472. <tr><td class="paramname">w</td><td>pen width </td></tr>
  473. </table>
  474. </dd>
  475. </dl>
  476. </div>
  477. </div>
  478. <h2 class="groupheader">Member Data Documentation</h2>
  479. <a class="anchor" id="a8778d952d4d2867bd2f31e5857c368b4"></a>
  480. <div class="memitem">
  481. <div class="memproto">
  482. <table class="mlabels">
  483. <tr>
  484. <td class="mlabels-left">
  485. <table class="memname">
  486. <tr>
  487. <td class="memname">QColor Line::penColor</td>
  488. </tr>
  489. </table>
  490. </td>
  491. <td class="mlabels-right">
  492. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  493. </tr>
  494. </table>
  495. </div><div class="memdoc">
  496. <p>pen color / color del boligrafo </p>
  497. </div>
  498. </div>
  499. <a class="anchor" id="a4fc1d856f822dd0b88676e6c22a65f14"></a>
  500. <div class="memitem">
  501. <div class="memproto">
  502. <table class="mlabels">
  503. <tr>
  504. <td class="mlabels-left">
  505. <table class="memname">
  506. <tr>
  507. <td class="memname">int Line::penWidth</td>
  508. </tr>
  509. </table>
  510. </td>
  511. <td class="mlabels-right">
  512. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  513. </tr>
  514. </table>
  515. </div><div class="memdoc">
  516. <p>pen width / ancho del boligrafo </p>
  517. </div>
  518. </div>
  519. <a class="anchor" id="a647f6f5c0e2b197e3671f8bdb9ff64a2"></a>
  520. <div class="memitem">
  521. <div class="memproto">
  522. <table class="mlabels">
  523. <tr>
  524. <td class="mlabels-left">
  525. <table class="memname">
  526. <tr>
  527. <td class="memname">int Line::x0</td>
  528. </tr>
  529. </table>
  530. </td>
  531. <td class="mlabels-right">
  532. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  533. </tr>
  534. </table>
  535. </div><div class="memdoc">
  536. <p>initial coord x / coordenada inicial x </p>
  537. </div>
  538. </div>
  539. <a class="anchor" id="a1c37aeef714f6c96454c2a9a2dadb69a"></a>
  540. <div class="memitem">
  541. <div class="memproto">
  542. <table class="mlabels">
  543. <tr>
  544. <td class="mlabels-left">
  545. <table class="memname">
  546. <tr>
  547. <td class="memname">int Line::x1</td>
  548. </tr>
  549. </table>
  550. </td>
  551. <td class="mlabels-right">
  552. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  553. </tr>
  554. </table>
  555. </div><div class="memdoc">
  556. <p>ending coord x / coordenada final x </p>
  557. </div>
  558. </div>
  559. <a class="anchor" id="a8e276229892969c7d82f56581e0c168b"></a>
  560. <div class="memitem">
  561. <div class="memproto">
  562. <table class="mlabels">
  563. <tr>
  564. <td class="mlabels-left">
  565. <table class="memname">
  566. <tr>
  567. <td class="memname">int Line::y0</td>
  568. </tr>
  569. </table>
  570. </td>
  571. <td class="mlabels-right">
  572. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  573. </tr>
  574. </table>
  575. </div><div class="memdoc">
  576. <p>initial coord y / coordenada inicial y </p>
  577. </div>
  578. </div>
  579. <a class="anchor" id="a850c96af61bd595a68b5e867540204f1"></a>
  580. <div class="memitem">
  581. <div class="memproto">
  582. <table class="mlabels">
  583. <tr>
  584. <td class="mlabels-left">
  585. <table class="memname">
  586. <tr>
  587. <td class="memname">int Line::y1</td>
  588. </tr>
  589. </table>
  590. </td>
  591. <td class="mlabels-right">
  592. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  593. </tr>
  594. </table>
  595. </div><div class="memdoc">
  596. <p>ending coord y / coordenada final y </p>
  597. </div>
  598. </div>
  599. <hr/>The documentation for this class was generated from the following files:<ul>
  600. <li><a class="el" href="line_8h_source.html">line.h</a></li>
  601. <li>line.cpp</li>
  602. </ul>
  603. </div><!-- contents -->
  604. <!-- start footer part -->
  605. <hr class="footer"/><address class="footer"><small>
  606. Generated on Mon Jun 22 2015 15:30:52 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  607. <img class="footer" src="doxygen.png" alt="doxygen"/>
  608. </a> 1.8.9.1
  609. </small></address>
  610. </body>
  611. </html>