classvtheightfieldgrid3d.html

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

HTML
718
字号
  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Use the height data in the grid and a colormap fill a bitmap with colors. Any undefined heixels in the source will be fill with red (255,0,0).<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>pBM</em>&nbsp;</td><td>The bitmap to be colored. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>table</em>&nbsp;</td><td>The table of colors. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>fMin,fMax</em>&nbsp;</td><td>The range of valid elevation values expect in the input. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>progress_callback</em>&nbsp;</td><td>If supplied, this function will be called back with a value of 0 to 100 as the operation progresses.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>true if any invalid elevation values were encountered. </dd></dl>    </td>  </tr></table><a class="anchor" name="b0607a50d8c67d9349a4dd592b71c0ad"></a><!-- doxytag: member="vtHeightFieldGrid3d::EarthToGrid" ref="b0607a50d8c67d9349a4dd592b71c0ad" args="(const DPoint2 &amp;epos, IPoint2 &amp;ipos)" --><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 vtHeightFieldGrid3d::EarthToGrid           </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="mdname" nowrap> <em>epos</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap><a class="el" href="classIPoint2.html">IPoint2</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>ipos</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>Convert a point from earth coordinates to the integer coordinates of the grid.     </td>  </tr></table><a class="anchor" name="183b2e333988de7f0a8a61ff0945b04e"></a><!-- doxytag: member="vtHeightFieldGrid3d::GetDimensions" ref="183b2e333988de7f0a8a61ff0945b04e" args="(int &amp;nColumns, int &amp;nRows) 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 vtHeightFieldGrid3d::GetDimensions           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>nColumns</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>nRows</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Get the grid size of the grid. The values are placed into the arguments by reference. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>nColumns</em>&nbsp;</td><td>The number of columns (east-west) </td></tr>    <tr><td valign="top"></td><td valign="top"><em>nRows</em>&nbsp;</td><td>THe number of rows (north-south) </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="fbe0930ab6efe32d54bf5331ba7b41c3"></a><!-- doxytag: member="vtHeightFieldGrid3d::GetInterpolatedElevation" ref="fbe0930ab6efe32d54bf5331ba7b41c3" args="(double findex_x, double findex_y) 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">float vtHeightFieldGrid3d::GetInterpolatedElevation           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">double&nbsp;</td>          <td class="mdname" nowrap> <em>findex_x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap> <em>findex_y</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Get the interpolated height of the grid at a specific grid coordinate, where the coordinates can be non-integer; the result is interpolated between the source heixels when possible (i.e. not at the edge)<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>findex_x</em>&nbsp;</td><td>Floating point index, from 0 to width in heixels. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>findex_y</em>&nbsp;</td><td>Floating point index, from 0 to height in heixels. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="cc5a4767609458664b8e3c36dfd2ec17"></a><!-- doxytag: member="vtHeightFieldGrid3d::GetSpacing" ref="cc5a4767609458664b8e3c36dfd2ec17" args="() 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"><a class="el" href="classDPoint2.html">DPoint2</a> vtHeightFieldGrid3d::GetSpacing           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </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>Get the grid spacing, the width of each column and row.     </td>  </tr></table><a class="anchor" name="1436865614be0e297724be883b7917ea"></a><!-- doxytag: member="vtHeightFieldGrid3d::LineOfSight" ref="1436865614be0e297724be883b7917ea" args="(const FPoint3 &amp;point1, const FPoint3 &amp;point2) 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">bool vtHeightFieldGrid3d::LineOfSight           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>point1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="el" href="classFPoint3.html">FPoint3</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>point2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>true if a line of sight exists between point1 and point2. </dd></dl>    </td>  </tr></table><a class="anchor" name="b1210c68b3bbb1d0913b7c0d0b5ae53b"></a><!-- doxytag: member="vtHeightFieldGrid3d::SetEarthExtents" ref="b1210c68b3bbb1d0913b7c0d0b5ae53b" args="(const DRECT &amp;ext)" --><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 vtHeightFieldGrid3d::SetEarthExtents           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classDRECT.html">DRECT</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>ext</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Set the geographic extents of the grid. <p>Reimplemented from <a class="el" href="classvtHeightField3d.html#b1210c68b3bbb1d0913b7c0d0b5ae53b">vtHeightField3d</a>.    </td>

⌨️ 快捷键说明

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