classdpolygon2.html

来自「VC下实现图像处理。 VC下实现图像处理。 VC下实现图像处理。」· HTML 代码 · 共 323 行 · 第 1/2 页

HTML
323
字号
<!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>vtdata library: DPolygon2 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 id="current"><a href="annotated.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</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>DPolygon2 Class Reference</h1><!-- doxytag: class="DPolygon2" --><a href="classDPolygon2-members.html">List of all members.</a><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="129ebcbbca835bde70dfd3f5bbfb67a1"></a><!-- doxytag: member="DPolygon2::NumTotalVertices" ref="129ebcbbca835bde70dfd3f5bbfb67a1" args="() const " -->unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><b>NumTotalVertices</b> () const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="193153a4e84471971fe36ba15a270744"></a><!-- doxytag: member="DPolygon2::ComputeExtents" ref="193153a4e84471971fe36ba15a270744" args="(DRECT &amp;rect) const " -->bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>ComputeExtents</b> (<a class="el" href="classDRECT.html">DRECT</a> &amp;rect) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="eb4297336c7042eb6798d49ac11c2eb5"></a><!-- doxytag: member="DPolygon2::ContainsPoint" ref="eb4297336c7042eb6798d49ac11c2eb5" args="(const DPoint2 &amp;p) const " -->bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>ContainsPoint</b> (const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;p) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDPolygon2.html#2acd40d5e644cca27687ab138172430d">GetAsDLine2</a> (<a class="el" href="classDLine2.html">DLine2</a> &amp;dline) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bde002d6f55b63c0cdc072e69bb24ce"></a><!-- doxytag: member="DPolygon2::WhichRing" ref="9bde002d6f55b63c0cdc072e69bb24ce" args="(int &amp;iVtxNum) const " -->int&nbsp;</td><td class="memItemRight" valign="bottom"><b>WhichRing</b> (int &amp;iVtxNum) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDPolygon2.html#f9282fd854e15fd4af2910fde29d2f7e">NearestPoint</a> (const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;Point, int &amp;iIndex, double &amp;dist) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDPolygon2.html#79f842758f6342a52d8775edd3f099e5">NearestSegment</a> (const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;Point, int &amp;iIndex, double &amp;dist, <a class="el" href="classDPoint2.html">DPoint2</a> &amp;Intersection) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDPolygon2.html#9322fd3894f32a91686d88d97375541a">Add</a> (const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;p)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDPolygon2.html#e381da094f280a05492a6941c9817f32">Mult</a> (double factor)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0ff8a7b54b21f0cda7b60d1a73a55f03"></a><!-- doxytag: member="DPolygon2::ReverseOrder" ref="0ff8a7b54b21f0cda7b60d1a73a55f03" args="()" -->void&nbsp;</td><td class="memItemRight" valign="bottom"><b>ReverseOrder</b> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDPolygon2.html#17d350b31b7afd0aad3dea39429de354">InsertPointAfter</a> (int iInsertAfter, const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;Point)</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDPolygon2.html#53911227415ef5c5b4a6f91072785276">RemovePoint</a> (int N)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>We represent a polygon as a collection of closed rings, each of which is represented by a <a class="el" href="classDLine2.html">DLine2</a>. The first <a class="el" href="classDLine2.html">DLine2</a> is the 'outside' ring, any subsequent <a class="el" href="classDLine2.html">DLine2</a> are 'inside' rings, which are holes.<p>In most usage, there should be a consistency in the vertex ordering: the 'outside' ring should be counter-clockwise, and the 'inside' ring(s) should be clockwise. <p><hr><h2>Member Function Documentation</h2><a class="anchor" name="9322fd3894f32a91686d88d97375541a"></a><!-- doxytag: member="DPolygon2::Add" ref="9322fd3894f32a91686d88d97375541a" args="(const DPoint2 &amp;p)" --><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 DPolygon2::Add           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>p</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Add the given amount to all coordinates of the polygon. Spatially, this offsets the location of the polygon.     </td>  </tr></table><a class="anchor" name="2acd40d5e644cca27687ab138172430d"></a><!-- doxytag: member="DPolygon2::GetAsDLine2" ref="2acd40d5e644cca27687ab138172430d" args="(DLine2 &amp;dline) const " --><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 DPolygon2::GetAsDLine2           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classDLine2.html">DLine2</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>dline</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Normally the polygon is stored as a series of rings. Sometimes it is necessary to access the polygon as a single array of points instead.<p>This method fills a provided <a class="el" href="classDLine2.html">DLine2</a> with all the points of all rings of the polygon.     </td>  </tr></table><a class="anchor" name="17d350b31b7afd0aad3dea39429de354"></a><!-- doxytag: member="DPolygon2::InsertPointAfter" ref="17d350b31b7afd0aad3dea39429de354" args="(int iInsertAfter, const DPoint2 &amp;Point)" --><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 DPolygon2::InsertPointAfter           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap> <em>iInsertAfter</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="el" href="classDPoint2.html">DPoint2</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>Point</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>The insertion point can be on the outer ring, or any inner ring.     </td>  </tr></table><a class="anchor" name="e381da094f280a05492a6941c9817f32"></a><!-- doxytag: member="DPolygon2::Mult" ref="e381da094f280a05492a6941c9817f32" args="(double factor)" --><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 DPolygon2::Mult           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>factor</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>

⌨️ 快捷键说明

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