⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classvtlastmouse.html

📁 VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>vtlib library: vtLastMouse Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.5 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li><a href="modules.html"><span>Modules</span></a></li>    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>    <li><a href="dirs.html"><span>Directories</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>vtLastMouse Class Reference<br><small>[<a class="el" href="group__eng.html">Engines and Events</a>]</small></h1><!-- doxytag: class="vtLastMouse" --><!-- doxytag: inherits="vtEngine" -->Inheritance diagram for vtLastMouse:<p><center><img src="classvtLastMouse__inherit__graph.png" border="0" usemap="#vtLastMouse__inherit__map" alt="Inheritance graph"></center><map name="vtLastMouse__inherit__map"><area href="classvtFlyer.html" shape="rect" coords="84,231,148,257" alt=""><area href="classvtTinFlyer.html" shape="rect" coords="172,231,252,257" alt=""><area href="classvtTrackball.html" shape="rect" coords="276,231,364,257" alt=""><area href="classvtEngine.html" shape="rect" coords="175,81,250,108" alt=""><area href="classvtEnabledBase.html" shape="rect" coords="156,7,268,33" alt=""><area href="classvtOrthoFlyer.html" shape="rect" coords="7,305,103,332" alt=""><area href="classvtTerrainFlyer.html" shape="rect" coords="127,305,231,332" alt=""><area href="classQuakeFlyer.html" shape="rect" coords="34,380,124,407" alt=""><area href="classVFlyer.html" shape="rect" coords="148,380,210,407" alt=""><area href="classvtPanoFlyer.html" shape="rect" coords="234,380,327,407" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classvtLastMouse-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>This simple engine extends the base class <a class="el" href="classvtEngine.html">vtEngine</a> with the ability to remember the last state of the mouse. This is useful for engines which simply need to know mouse state (cursor position and button state). They can simply subclass from vtLastMouse and use the inherited fields rather than having to catch mouse events. <p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e407bf9716154afc56361451c5f2217d"></a><!-- doxytag: member="vtLastMouse::OnMouse" ref="e407bf9716154afc56361451c5f2217d" args="(vtMouseEvent &amp;event)" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvtLastMouse.html#e407bf9716154afc56361451c5f2217d">OnMouse</a> (<a class="el" href="structvtMouseEvent.html">vtMouseEvent</a> &amp;event)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual handler, to catch mouse events, can be overridden by your engine class. <br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvtLastMouse.html#d610d998fbf3e82ca6824e2972b4f590">GetNormalizedMouseCoords</a> (float &amp;mx, float &amp;my)</td></tr><tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvtLastMouse.html#60c26c7a312b13758db7f55f02db29d5">m_buttons</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classIPoint2.html">IPoint2</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvtLastMouse.html#d1f3c058caf81e9f251594984d16ce4f">m_pos</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classvtLastMouse.html#de812cb8066aad908294b43ef4b363df">m_flags</a></td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="d610d998fbf3e82ca6824e2972b4f590"></a><!-- doxytag: member="vtLastMouse::GetNormalizedMouseCoords" ref="d610d998fbf3e82ca6824e2972b4f590" args="(float &amp;mx, float &amp;my)" --><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 vtLastMouse::GetNormalizedMouseCoords           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">float &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>mx</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>float &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>my</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the mouse coordinates in the window, normalized such that X and Y range from -1 to 1 (left to right, top to bottom across the window.     </td>  </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="60c26c7a312b13758db7f55f02db29d5"></a><!-- doxytag: member="vtLastMouse::m_buttons" ref="60c26c7a312b13758db7f55f02db29d5" 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">int <a class="el" href="classvtLastMouse.html#60c26c7a312b13758db7f55f02db29d5">vtLastMouse::m_buttons</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The state of the mouse buttons     </td>  </tr></table><a class="anchor" name="de812cb8066aad908294b43ef4b363df"></a><!-- doxytag: member="vtLastMouse::m_flags" ref="de812cb8066aad908294b43ef4b363df" 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">int <a class="el" href="classvtLastMouse.html#de812cb8066aad908294b43ef4b363df">vtLastMouse::m_flags</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Last known state of the modifier flags     </td>  </tr></table><a class="anchor" name="d1f3c058caf81e9f251594984d16ce4f"></a><!-- doxytag: member="vtLastMouse::m_pos" ref="d1f3c058caf81e9f251594984d16ce4f" 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"><a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classIPoint2.html">IPoint2</a> <a class="el" href="classvtLastMouse.html#d1f3c058caf81e9f251594984d16ce4f">vtLastMouse::m_pos</a>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The location of the mouse cursor     </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:41:01 2008 for vtlib library by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.5 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -