No Description

class_main_window.html 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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: MainWindow 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><a href="namespaces.html"><span>Namespaces</span></a></li>
  42. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  43. <li><a href="files.html"><span>Files</span></a></li>
  44. <li>
  45. <div id="MSearchBox" class="MSearchBoxInactive">
  46. <span class="left">
  47. <img id="MSearchSelect" src="search/mag_sel.png"
  48. onmouseover="return searchBox.OnSearchSelectShow()"
  49. onmouseout="return searchBox.OnSearchSelectHide()"
  50. alt=""/>
  51. <input type="text" id="MSearchField" value="Search" accesskey="S"
  52. onfocus="searchBox.OnSearchFieldFocus(true)"
  53. onblur="searchBox.OnSearchFieldFocus(false)"
  54. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  55. </span><span class="right">
  56. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  57. </span>
  58. </div>
  59. </li>
  60. </ul>
  61. </div>
  62. <div id="navrow2" class="tabs2">
  63. <ul class="tablist">
  64. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  65. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  66. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  67. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  68. </ul>
  69. </div>
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. </div><!-- top -->
  83. <div class="header">
  84. <div class="summary">
  85. <a href="#pub-methods">Public Member Functions</a> &#124;
  86. <a href="#pri-slots">Private Slots</a> &#124;
  87. <a href="#pri-attribs">Private Attributes</a> &#124;
  88. <a href="class_main_window-members.html">List of all members</a> </div>
  89. <div class="headertitle">
  90. <div class="title">MainWindow Class Reference</div> </div>
  91. </div><!--header-->
  92. <div class="contents">
  93. <div class="dynheader">
  94. Inheritance diagram for MainWindow:</div>
  95. <div class="dyncontent">
  96. <div class="center">
  97. <img src="class_main_window.png" usemap="#MainWindow_map" alt=""/>
  98. <map id="MainWindow_map" name="MainWindow_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:a8b244be8b7b7db1b08de2a2acb9409db"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8b244be8b7b7db1b08de2a2acb9409db"></a>
  105. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a8b244be8b7b7db1b08de2a2acb9409db">MainWindow</a> (QWidget *parent=0)</td></tr>
  106. <tr class="memdesc:a8b244be8b7b7db1b08de2a2acb9409db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default Constructor for the <a class="el" href="class_main_window.html">MainWindow</a>. <br /></td></tr>
  107. <tr class="separator:a8b244be8b7b7db1b08de2a2acb9409db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:a46f80e359e19d2aac22df1fce85f3bdc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46f80e359e19d2aac22df1fce85f3bdc"></a>
  109. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a46f80e359e19d2aac22df1fce85f3bdc">MergeImages</a> (const QImage &amp;, const QImage &amp;, QImage &amp;, int, bool=false, int=0, int=0, int=0, int=0)</td></tr>
  110. <tr class="memdesc:a46f80e359e19d2aac22df1fce85f3bdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funcion that merges two images together. It takes an image with any background color and puts it in another image that will act as a background. (Implements Greenscreen techonology) <br /></td></tr>
  111. <tr class="separator:a46f80e359e19d2aac22df1fce85f3bdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:ae98d00a93bc118200eeef9f9bba1dba7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae98d00a93bc118200eeef9f9bba1dba7"></a>
  113. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ae98d00a93bc118200eeef9f9bba1dba7">~MainWindow</a> ()</td></tr>
  114. <tr class="memdesc:ae98d00a93bc118200eeef9f9bba1dba7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor for the <a class="el" href="class_main_window.html">MainWindow</a>. <br /></td></tr>
  115. <tr class="separator:ae98d00a93bc118200eeef9f9bba1dba7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. </table><table class="memberdecls">
  117. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
  118. Private Slots</h2></td></tr>
  119. <tr class="memitem:a515c32e265a56100d4c8e6a7718aec38"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a515c32e265a56100d4c8e6a7718aec38"></a>
  120. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a515c32e265a56100d4c8e6a7718aec38">on_ghostBox_clicked</a> ()</td></tr>
  121. <tr class="memdesc:a515c32e265a56100d4c8e6a7718aec38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funtion that invokes the thresholdSlider function and creates a ghost version of the image with greenscreen background. <br /></td></tr>
  122. <tr class="separator:a515c32e265a56100d4c8e6a7718aec38"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:a0f9a3a6f81784e420db099e1bb051475"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0f9a3a6f81784e420db099e1bb051475"></a>
  124. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a0f9a3a6f81784e420db099e1bb051475">on_btnSelectImage_clicked</a> ()</td></tr>
  125. <tr class="memdesc:a0f9a3a6f81784e420db099e1bb051475"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the file browsing window to load an image. (Green Background) <br /></td></tr>
  126. <tr class="separator:a0f9a3a6f81784e420db099e1bb051475"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:ac0ab1a7707da7b053b36b869eb7711d2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac0ab1a7707da7b053b36b869eb7711d2"></a>
  128. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ac0ab1a7707da7b053b36b869eb7711d2">on_btnSelectBackground_clicked</a> ()</td></tr>
  129. <tr class="memdesc:ac0ab1a7707da7b053b36b869eb7711d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Display the file browsing window to load a background image. <br /></td></tr>
  130. <tr class="separator:ac0ab1a7707da7b053b36b869eb7711d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a8ed5fa16d89ef45aa856b5cc4392a6d8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ed5fa16d89ef45aa856b5cc4392a6d8"></a>
  132. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a8ed5fa16d89ef45aa856b5cc4392a6d8">on_btnMergeImages_clicked</a> ()</td></tr>
  133. <tr class="memdesc:a8ed5fa16d89ef45aa856b5cc4392a6d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invokes the function that merges the green screen image with the background image, then displays the merged image. <br /></td></tr>
  134. <tr class="separator:a8ed5fa16d89ef45aa856b5cc4392a6d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad495b5030e61fb55b8ab95c5a3a559d6"></a>
  136. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ad495b5030e61fb55b8ab95c5a3a559d6">on_btnSaveImage_clicked</a> ()</td></tr>
  137. <tr class="memdesc:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Displays the file browse window to choose the path to save the merged image in the file system. <br /></td></tr>
  138. <tr class="separator:ad495b5030e61fb55b8ab95c5a3a559d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:a1d0a4664de36d7b98928cb815aaf29b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#a1d0a4664de36d7b98928cb815aaf29b9">Mouse_Pressed</a> ()</td></tr>
  140. <tr class="memdesc:a1d0a4664de36d7b98928cb815aaf29b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function that gets the coordinates of the image with the greenscreen. <a href="#a1d0a4664de36d7b98928cb815aaf29b9">More...</a><br /></td></tr>
  141. <tr class="separator:a1d0a4664de36d7b98928cb815aaf29b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:a0ff8f0c31c003b27896a579fdff5afad"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0ff8f0c31c003b27896a579fdff5afad"></a>
  143. void&#160;</td><td class="memItemRight" valign="bottom"><b>Mouse_PressedBackground</b> ()</td></tr>
  144. <tr class="separator:a0ff8f0c31c003b27896a579fdff5afad"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:ad753a0e24a11fedfaeb6f3ba665749d7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad753a0e24a11fedfaeb6f3ba665749d7"></a>
  146. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_main_window.html#ad753a0e24a11fedfaeb6f3ba665749d7">on_thresholdSlider_actionTriggered</a> ()</td></tr>
  147. <tr class="memdesc:ad753a0e24a11fedfaeb6f3ba665749d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invokes the function that merges the green screen image with the background image. <br /></td></tr>
  148. <tr class="separator:ad753a0e24a11fedfaeb6f3ba665749d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. </table><table class="memberdecls">
  150. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  151. Private Attributes</h2></td></tr>
  152. <tr class="memitem:a35466a70ed47252a0191168126a352a5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35466a70ed47252a0191168126a352a5"></a>
  153. Ui::MainWindow *&#160;</td><td class="memItemRight" valign="bottom"><b>ui</b></td></tr>
  154. <tr class="separator:a35466a70ed47252a0191168126a352a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a4e3a604a9d31eae583a1935b5694af3b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e3a604a9d31eae583a1935b5694af3b"></a>
  156. QImage&#160;</td><td class="memItemRight" valign="bottom"><b>originalImage</b></td></tr>
  157. <tr class="separator:a4e3a604a9d31eae583a1935b5694af3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:a7901a775a7746ef814f04db64414568d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7901a775a7746ef814f04db64414568d"></a>
  159. QImage&#160;</td><td class="memItemRight" valign="bottom"><b>backgroundImage</b></td></tr>
  160. <tr class="separator:a7901a775a7746ef814f04db64414568d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:aa8eba166f2ef1f15dc3f5e3e9a5a315c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa8eba166f2ef1f15dc3f5e3e9a5a315c"></a>
  162. QImage&#160;</td><td class="memItemRight" valign="bottom"><b>mergedImage</b></td></tr>
  163. <tr class="separator:aa8eba166f2ef1f15dc3f5e3e9a5a315c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. </table>
  165. <h2 class="groupheader">Member Function Documentation</h2>
  166. <a class="anchor" id="a1d0a4664de36d7b98928cb815aaf29b9"></a>
  167. <div class="memitem">
  168. <div class="memproto">
  169. <table class="mlabels">
  170. <tr>
  171. <td class="mlabels-left">
  172. <table class="memname">
  173. <tr>
  174. <td class="memname">void MainWindow::Mouse_Pressed </td>
  175. <td>(</td>
  176. <td class="paramname"></td><td>)</td>
  177. <td></td>
  178. </tr>
  179. </table>
  180. </td>
  181. <td class="mlabels-right">
  182. <span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
  183. </tr>
  184. </table>
  185. </div><div class="memdoc">
  186. <p>Function that gets the coordinates of the image with the greenscreen. </p>
  187. <p>Function that gets the coordinaates of the image with the final background. </p>
  188. </div>
  189. </div>
  190. <hr/>The documentation for this class was generated from the following files:<ul>
  191. <li><a class="el" href="_merge_panel_8h_source.html">MergePanel.h</a></li>
  192. <li><a class="el" href="_filter_8cpp.html">Filter.cpp</a></li>
  193. <li>MergePanel.cpp</li>
  194. </ul>
  195. </div><!-- contents -->
  196. <!-- start footer part -->
  197. <hr class="footer"/><address class="footer"><small>
  198. Generated on Fri Jun 12 2015 14:32:24 for My Project by &#160;<a href="http://www.doxygen.org/index.html">
  199. <img class="footer" src="doxygen.png" alt="doxygen"/>
  200. </a> 1.8.9.1
  201. </small></address>
  202. </body>
  203. </html>