📄 class_c_ocr_example_image_view.html
字号:
<table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">TUid COcrExampleImageView::Id </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>From CAknView returns Uid of View <dl compact><dt><b>Returns:</b></dt><dd>TUid uid of the view </dd></dl><p>Definition at line <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00125">125</a> of file <a class="el" href="_ocr_example_image_view_8cpp-source.html">OcrExampleImageView.cpp</a>.<div class="fragment"><pre class="fragment"><a name="l00126"></a>00126 {<a name="l00127"></a>00127 <span class="keywordflow">return</span> KUidImageView;<a name="l00128"></a>00128 }</pre></div><p> </td> </tr></table><a class="anchor" name="a682d228622cea7790645ce10f591242"></a><!-- doxytag: member="COcrExampleImageView::HandleCommandL" ref="a682d228622cea7790645ce10f591242" args="(TInt aCommand)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void COcrExampleImageView::HandleCommandL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">TInt </td> <td class="mdname1" valign="top" nowrap> <em>aCommand</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>From CAknView, handle commands <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aCommand</em> </td><td>command to be handled </td></tr> </table></dl><p>Definition at line <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00136">136</a> of file <a class="el" href="_ocr_example_image_view_8cpp-source.html">OcrExampleImageView.cpp</a>.<p>References <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00461">AnalyzeImageLayoutL()</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00262">iContainer</a>, <a class="el" href="_ocr_example_image_container_8h-source.html#l00048">TScreenUpdateData::iCrosshair</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00301">iCrosshairEnabled</a>, <a class="el" href="_ocr_example_image_view_8h-source.html#l00268">iData</a>, <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00345">OpenImageL()</a>, <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00553">RecognizeBlockL()</a>, <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00516">RecognizeImageL()</a>, and <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00613">RecognizeSpecialRegionL()</a>.<div class="fragment"><pre class="fragment"><a name="l00137"></a>00137 {<a name="l00138"></a>00138 <span class="keywordflow">switch</span> (aCommand)<a name="l00139"></a>00139 {<a name="l00140"></a>00140 <span class="keywordflow">case</span> EOcrExampleCmdOpenFile:<a name="l00141"></a>00141 <a class="code" href="class_c_ocr_example_image_view.html#2003512dd8696219849f58d8ae1e3c37">OpenImageL</a>();<a name="l00142"></a>00142 <span class="keywordflow">break</span>;<a name="l00143"></a>00143 <a name="l00144"></a>00144 <span class="keywordflow">case</span> EOcrExampleCmdAnalyzeImage:<a name="l00145"></a>00145 <a class="code" href="class_c_ocr_example_image_view.html#deb0a73c2e8490684e18cea6caa9af23">AnalyzeImageLayoutL</a>();<a name="l00146"></a>00146 <span class="keywordflow">break</span>;<a name="l00147"></a>00147 <a name="l00148"></a>00148 <span class="keywordflow">case</span> EOcrExampleCmdRecognizeImage:<a name="l00149"></a>00149 <a class="code" href="class_c_ocr_example_image_view.html#72da075f30fbcf471e8af996ae74f499">RecognizeImageL</a>();<a name="l00150"></a>00150 <span class="keywordflow">break</span>;<a name="l00151"></a>00151 <a name="l00152"></a>00152 <span class="keywordflow">case</span> EOcrExampleCmdRecognizeBlock:<a name="l00153"></a>00153 <a class="code" href="class_c_ocr_example_image_view.html#a31d77d219f1dc7b797c06d4356fefd9">RecognizeBlockL</a>();<a name="l00154"></a>00154 <span class="keywordflow">break</span>;<a name="l00155"></a>00155 <a name="l00156"></a>00156 <span class="keywordflow">case</span> EOcrExampleCmdRecognizeRegion:<a name="l00157"></a>00157 <a class="code" href="class_c_ocr_example_image_view.html#fac0e83d0111d471ebf4deffd9f87bc2">RecognizeSpecialRegionL</a>();<a name="l00158"></a>00158 <span class="keywordflow">break</span>;<a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="keywordflow">case</span> EOcrExampleCmdToggleCrosshair:<a name="l00161"></a>00161 <span class="keywordflow">if</span> (<a class="code" href="class_c_ocr_example_image_view.html#e72899bf23845a10c6b7559c2e896baa">iData</a>.<a class="code" href="class_t_screen_update_data.html#3beeffcd97169ea8291ae2fffec377e8">iCrosshair</a>)<a name="l00162"></a>00162 {<a name="l00163"></a>00163 <span class="keyword">delete</span> <a class="code" href="class_c_ocr_example_image_view.html#e72899bf23845a10c6b7559c2e896baa">iData</a>.<a class="code" href="class_t_screen_update_data.html#3beeffcd97169ea8291ae2fffec377e8">iCrosshair</a>;<a name="l00164"></a>00164 <a class="code" href="class_c_ocr_example_image_view.html#e72899bf23845a10c6b7559c2e896baa">iData</a>.<a class="code" href="class_t_screen_update_data.html#3beeffcd97169ea8291ae2fffec377e8">iCrosshair</a> = 0;<a name="l00165"></a>00165 }<a name="l00166"></a>00166 <span class="keywordflow">else</span><a name="l00167"></a>00167 {<a name="l00168"></a>00168 <span class="comment">// note! not leaving new. if it fails, it fails.</span><a name="l00169"></a>00169 <a class="code" href="class_c_ocr_example_image_view.html#e72899bf23845a10c6b7559c2e896baa">iData</a>.<a class="code" href="class_t_screen_update_data.html#3beeffcd97169ea8291ae2fffec377e8">iCrosshair</a> = <span class="keyword">new</span> TRect;<a name="l00170"></a>00170 }<a name="l00171"></a>00171 <a class="code" href="class_c_ocr_example_image_view.html#b7e54289c236dbd01581864006b4069f">iCrosshairEnabled</a> = (<a class="code" href="class_c_ocr_example_image_view.html#e72899bf23845a10c6b7559c2e896baa">iData</a>.<a class="code" href="class_t_screen_update_data.html#3beeffcd97169ea8291ae2fffec377e8">iCrosshair</a> != NULL);<a name="l00172"></a>00172 <a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>->DrawNow();<a name="l00173"></a>00173 <span class="keywordflow">break</span>;<a name="l00174"></a>00174 <a name="l00175"></a>00175 <span class="keywordflow">case</span> EOcrExampleCmdSettings:<a name="l00176"></a>00176 AppUi()->ActivateLocalViewL(KUidSettingsView);<a name="l00177"></a>00177 <span class="keywordflow">break</span>;<a name="l00178"></a>00178 <a name="l00179"></a>00179 <span class="keywordflow">default</span>:<a name="l00180"></a>00180 AppUi()->HandleCommandL( aCommand );<a name="l00181"></a>00181 <span class="keywordflow">break</span>;<a name="l00182"></a>00182 }<a name="l00183"></a>00183 }</pre></div><p> </td> </tr></table><a class="anchor" name="366b9bdc3feb98c2fa8b54b12561be7f"></a><!-- doxytag: member="COcrExampleImageView::DoActivateL" ref="366b9bdc3feb98c2fa8b54b12561be7f" args="(const TVwsViewId &aPrevViewId, TUid aCustomMessageId, const TDesC8 &aCustomMessage)" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void COcrExampleImageView::DoActivateL </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const TVwsViewId & </td> <td class="mdname" nowrap> <em>aPrevViewId</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>TUid </td> <td class="mdname" nowrap> <em>aCustomMessageId</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const TDesC8 & </td> <td class="mdname" nowrap> <em>aCustomMessage</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>From CAknView Activate this view <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>aPrevViewId</em> </td><td></td></tr> <tr><td valign="top"></td><td valign="top"><em>aCustomMessageId</em> </td><td></td></tr> <tr><td valign="top"></td><td valign="top"><em>aCustomMessage</em> </td><td></td></tr> </table></dl><p>Definition at line <a class="el" href="_ocr_example_image_view_8cpp-source.html#l00191">191</a> of file <a class="el" href="_ocr_example_image_view_8cpp-source.html">OcrExampleImageView.cpp</a>.<p>References <a class="el" href="_ocr_example_image_view_8h-source.html#l00262">iContainer</a>.<div class="fragment"><pre class="fragment"><a name="l00194"></a>00194 {<a name="l00195"></a>00195 ASSERT(<a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>);<a name="l00196"></a>00196 <a class="code" href="class_c_ocr_example_image_view.html#6dc94c8cd7c107bc61701348814020e6">iContainer</a>->MakeVisible(ETrue);<a name="l00197"></a>00197 }</pre></div><p> </td> </tr></table><a class="anchor" name="8dc3833be5508368363dce246e04a18f"></a><!-- doxytag: member="COcrExampleImageView::DoDeactivate" ref="8dc3833be5508368363dce246e04a18f" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void COcrExampleImageView::DoDeactivate </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -