説明なし

class_drawing_window.html 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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: DrawingWindow 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_drawing_window-members.html">List of all members</a> </div>
  88. <div class="headertitle">
  89. <div class="title">DrawingWindow Class Reference</div> </div>
  90. </div><!--header-->
  91. <div class="contents">
  92. <p><code>#include &lt;<a class="el" href="drawing_window_8h_source.html">drawingWindow.h</a>&gt;</code></p>
  93. <div class="dynheader">
  94. Inheritance diagram for DrawingWindow:</div>
  95. <div class="dyncontent">
  96. <div class="center">
  97. <img src="class_drawing_window.png" usemap="#DrawingWindow_map" alt=""/>
  98. <map id="DrawingWindow_map" name="DrawingWindow_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:aff3d1b3cbeee8f0e92b49c050d8ca494"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aff3d1b3cbeee8f0e92b49c050d8ca494"></a>
  105. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#aff3d1b3cbeee8f0e92b49c050d8ca494">DrawingWindow</a> (QWidget *parent=0)</td></tr>
  106. <tr class="memdesc:aff3d1b3cbeee8f0e92b49c050d8ca494"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
  107. <tr class="separator:aff3d1b3cbeee8f0e92b49c050d8ca494"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:a0d07890a752adffee1f92a463561dcb6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0d07890a752adffee1f92a463561dcb6"></a>
  109. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a0d07890a752adffee1f92a463561dcb6">~DrawingWindow</a> ()</td></tr>
  110. <tr class="memdesc:a0d07890a752adffee1f92a463561dcb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
  111. <tr class="separator:a0d07890a752adffee1f92a463561dcb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:ac5a412fbb239f1f57cabe7a850e1e4fb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#ac5a412fbb239f1f57cabe7a850e1e4fb">addTessellation</a> (<a class="el" href="class_tessellation.html">Tessellation</a> &amp;t)</td></tr>
  113. <tr class="memdesc:ac5a412fbb239f1f57cabe7a850e1e4fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a tessalation to the window. <a href="#ac5a412fbb239f1f57cabe7a850e1e4fb">More...</a><br /></td></tr>
  114. <tr class="separator:ac5a412fbb239f1f57cabe7a850e1e4fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a3097e096223530c9f93737441d77422f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a3097e096223530c9f93737441d77422f">addLine</a> (int x0, int y0, int x1, int y1, int width, QColor color)</td></tr>
  116. <tr class="memdesc:a3097e096223530c9f93737441d77422f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a line to the window, specifying coordinates of the starting and end points. <a href="#a3097e096223530c9f93737441d77422f">More...</a><br /></td></tr>
  117. <tr class="separator:a3097e096223530c9f93737441d77422f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:ae03504caa7648347ec56eb58cf5b5db4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#ae03504caa7648347ec56eb58cf5b5db4">addLinePolar</a> (int x0, int y0, int length, double angle, int width, QColor color)</td></tr>
  119. <tr class="memdesc:ae03504caa7648347ec56eb58cf5b5db4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a line to the window, specifying coordinates of the starting point, the length and angle. <a href="#ae03504caa7648347ec56eb58cf5b5db4">More...</a><br /></td></tr>
  120. <tr class="separator:ae03504caa7648347ec56eb58cf5b5db4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. </table><table class="memberdecls">
  122. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  123. Protected Member Functions</h2></td></tr>
  124. <tr class="memitem:aceb9c5cc4f2ef40d99aca7d3fbd4e91a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aceb9c5cc4f2ef40d99aca7d3fbd4e91a"></a>
  125. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#aceb9c5cc4f2ef40d99aca7d3fbd4e91a">paintEvent</a> (QPaintEvent *)</td></tr>
  126. <tr class="memdesc:aceb9c5cc4f2ef40d99aca7d3fbd4e91a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Paints event. <br /></td></tr>
  127. <tr class="separator:aceb9c5cc4f2ef40d99aca7d3fbd4e91a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. </table><table class="memberdecls">
  129. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  130. Private Attributes</h2></td></tr>
  131. <tr class="memitem:ad58ced401c1eaf6cfaf67a0f8f94ce18"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad58ced401c1eaf6cfaf67a0f8f94ce18"></a>
  132. Ui::DrawingWindow *&#160;</td><td class="memItemRight" valign="bottom"><b>ui</b></td></tr>
  133. <tr class="separator:ad58ced401c1eaf6cfaf67a0f8f94ce18"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a00c917f0910ac7b70729d6a48f0602ac"><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="class_tessellation.html">Tessellation</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a00c917f0910ac7b70729d6a48f0602ac">vT</a></td></tr>
  135. <tr class="separator:a00c917f0910ac7b70729d6a48f0602ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a82bd46efc8a35b62fcd207c42aa49ade"><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="class_tessellation.html">Tessellation</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a82bd46efc8a35b62fcd207c42aa49ade">myTessellation</a></td></tr>
  137. <tr class="separator:a82bd46efc8a35b62fcd207c42aa49ade"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a6e1effc34bb2f2c43becfd1df203b693"><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="class_line.html">Line</a> * &gt; *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_drawing_window.html#a6e1effc34bb2f2c43becfd1df203b693">vL</a></td></tr>
  139. <tr class="separator:a6e1effc34bb2f2c43becfd1df203b693"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. </table>
  141. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  142. <div class="textblock"><p>A class to create a drawing window to draw tessellations. </p>
  143. </div><h2 class="groupheader">Member Function Documentation</h2>
  144. <a class="anchor" id="a3097e096223530c9f93737441d77422f"></a>
  145. <div class="memitem">
  146. <div class="memproto">
  147. <table class="memname">
  148. <tr>
  149. <td class="memname">void DrawingWindow::addLine </td>
  150. <td>(</td>
  151. <td class="paramtype">int&#160;</td>
  152. <td class="paramname"><em>x0</em>, </td>
  153. </tr>
  154. <tr>
  155. <td class="paramkey"></td>
  156. <td></td>
  157. <td class="paramtype">int&#160;</td>
  158. <td class="paramname"><em>y0</em>, </td>
  159. </tr>
  160. <tr>
  161. <td class="paramkey"></td>
  162. <td></td>
  163. <td class="paramtype">int&#160;</td>
  164. <td class="paramname"><em>x1</em>, </td>
  165. </tr>
  166. <tr>
  167. <td class="paramkey"></td>
  168. <td></td>
  169. <td class="paramtype">int&#160;</td>
  170. <td class="paramname"><em>y1</em>, </td>
  171. </tr>
  172. <tr>
  173. <td class="paramkey"></td>
  174. <td></td>
  175. <td class="paramtype">int&#160;</td>
  176. <td class="paramname"><em>width</em>, </td>
  177. </tr>
  178. <tr>
  179. <td class="paramkey"></td>
  180. <td></td>
  181. <td class="paramtype">QColor&#160;</td>
  182. <td class="paramname"><em>color</em>&#160;</td>
  183. </tr>
  184. <tr>
  185. <td></td>
  186. <td>)</td>
  187. <td></td><td></td>
  188. </tr>
  189. </table>
  190. </div><div class="memdoc">
  191. <p>Add a line to the window, specifying coordinates of the starting and end points. </p>
  192. <dl class="params"><dt>Parameters</dt><dd>
  193. <table class="params">
  194. <tr><td class="paramname">x0</td><td>starting coordinate x </td></tr>
  195. <tr><td class="paramname">y0</td><td>starting coordinate y </td></tr>
  196. <tr><td class="paramname">x1</td><td>end coordinate x </td></tr>
  197. <tr><td class="paramname">y1</td><td>end coordinate y </td></tr>
  198. <tr><td class="paramname">width</td><td>line width </td></tr>
  199. <tr><td class="paramname">color</td><td>line color </td></tr>
  200. </table>
  201. </dd>
  202. </dl>
  203. </div>
  204. </div>
  205. <a class="anchor" id="ae03504caa7648347ec56eb58cf5b5db4"></a>
  206. <div class="memitem">
  207. <div class="memproto">
  208. <table class="memname">
  209. <tr>
  210. <td class="memname">void DrawingWindow::addLinePolar </td>
  211. <td>(</td>
  212. <td class="paramtype">int&#160;</td>
  213. <td class="paramname"><em>x0</em>, </td>
  214. </tr>
  215. <tr>
  216. <td class="paramkey"></td>
  217. <td></td>
  218. <td class="paramtype">int&#160;</td>
  219. <td class="paramname"><em>y0</em>, </td>
  220. </tr>
  221. <tr>
  222. <td class="paramkey"></td>
  223. <td></td>
  224. <td class="paramtype">int&#160;</td>
  225. <td class="paramname"><em>length</em>, </td>
  226. </tr>
  227. <tr>
  228. <td class="paramkey"></td>
  229. <td></td>
  230. <td class="paramtype">double&#160;</td>
  231. <td class="paramname"><em>angle</em>, </td>
  232. </tr>
  233. <tr>
  234. <td class="paramkey"></td>
  235. <td></td>
  236. <td class="paramtype">int&#160;</td>
  237. <td class="paramname"><em>width</em>, </td>
  238. </tr>
  239. <tr>
  240. <td class="paramkey"></td>
  241. <td></td>
  242. <td class="paramtype">QColor&#160;</td>
  243. <td class="paramname"><em>color</em>&#160;</td>
  244. </tr>
  245. <tr>
  246. <td></td>
  247. <td>)</td>
  248. <td></td><td></td>
  249. </tr>
  250. </table>
  251. </div><div class="memdoc">
  252. <p>Add a line to the window, specifying coordinates of the starting point, the length and angle. </p>
  253. <dl class="params"><dt>Parameters</dt><dd>
  254. <table class="params">
  255. <tr><td class="paramname">x0</td><td>starting coordinate x </td></tr>
  256. <tr><td class="paramname">y0</td><td>starting coordinate y </td></tr>
  257. <tr><td class="paramname">length</td><td>- length of the line </td></tr>
  258. <tr><td class="paramname">angle</td><td>- angle of the line </td></tr>
  259. <tr><td class="paramname">width</td><td>- line width </td></tr>
  260. <tr><td class="paramname">color</td><td>- line color </td></tr>
  261. </table>
  262. </dd>
  263. </dl>
  264. </div>
  265. </div>
  266. <a class="anchor" id="ac5a412fbb239f1f57cabe7a850e1e4fb"></a>
  267. <div class="memitem">
  268. <div class="memproto">
  269. <table class="memname">
  270. <tr>
  271. <td class="memname">void DrawingWindow::addTessellation </td>
  272. <td>(</td>
  273. <td class="paramtype"><a class="el" href="class_tessellation.html">Tessellation</a> &amp;&#160;</td>
  274. <td class="paramname"><em>t</em></td><td>)</td>
  275. <td></td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>Add a tessalation to the window. </p>
  280. <dl class="params"><dt>Parameters</dt><dd>
  281. <table class="params">
  282. <tr><td class="paramname">t</td><td>a tessellation object </td></tr>
  283. </table>
  284. </dd>
  285. </dl>
  286. </div>
  287. </div>
  288. <h2 class="groupheader">Member Data Documentation</h2>
  289. <a class="anchor" id="a82bd46efc8a35b62fcd207c42aa49ade"></a>
  290. <div class="memitem">
  291. <div class="memproto">
  292. <table class="mlabels">
  293. <tr>
  294. <td class="mlabels-left">
  295. <table class="memname">
  296. <tr>
  297. <td class="memname">vector&lt;<a class="el" href="class_tessellation.html">Tessellation</a> *&gt;* DrawingWindow::myTessellation</td>
  298. </tr>
  299. </table>
  300. </td>
  301. <td class="mlabels-right">
  302. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  303. </tr>
  304. </table>
  305. </div><div class="memdoc">
  306. <p>vector of tesselation / vector de mosaicos </p>
  307. </div>
  308. </div>
  309. <a class="anchor" id="a6e1effc34bb2f2c43becfd1df203b693"></a>
  310. <div class="memitem">
  311. <div class="memproto">
  312. <table class="mlabels">
  313. <tr>
  314. <td class="mlabels-left">
  315. <table class="memname">
  316. <tr>
  317. <td class="memname">vector&lt;<a class="el" href="class_line.html">Line</a> *&gt;* DrawingWindow::vL</td>
  318. </tr>
  319. </table>
  320. </td>
  321. <td class="mlabels-right">
  322. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  323. </tr>
  324. </table>
  325. </div><div class="memdoc">
  326. <p>vector of line / vector de lineas </p>
  327. </div>
  328. </div>
  329. <a class="anchor" id="a00c917f0910ac7b70729d6a48f0602ac"></a>
  330. <div class="memitem">
  331. <div class="memproto">
  332. <table class="mlabels">
  333. <tr>
  334. <td class="mlabels-left">
  335. <table class="memname">
  336. <tr>
  337. <td class="memname">vector&lt;<a class="el" href="class_tessellation.html">Tessellation</a>* &gt;* DrawingWindow::vT</td>
  338. </tr>
  339. </table>
  340. </td>
  341. <td class="mlabels-right">
  342. <span class="mlabels"><span class="mlabel">private</span></span> </td>
  343. </tr>
  344. </table>
  345. </div><div class="memdoc">
  346. <p>vector of tesselation / vector de mosaicos </p>
  347. </div>
  348. </div>
  349. <hr/>The documentation for this class was generated from the following files:<ul>
  350. <li><a class="el" href="drawing_window_8h_source.html">drawingWindow.h</a></li>
  351. <li>drawingWindow.cpp</li>
  352. </ul>
  353. </div><!-- contents -->
  354. <!-- start footer part -->
  355. <hr class="footer"/><address class="footer"><small>
  356. Generated on Wed Jun 10 2015 09:57:59 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  357. <img class="footer" src="doxygen.png" alt="doxygen"/>
  358. </a> 1.8.9.1
  359. </small></address>
  360. </body>
  361. </html>