classvtterrain.html

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

HTML
1,174
字号
          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Adds a node to the terrain. The node will be added to the Structure LOD Grid of the terrain, so it will be culled when it is far from the viewer. This is usually desirable when the models are complicated or there are lot of them.<p>There is another form of this method which takes a <a class="el" href="classvtTransform.html">vtTransform</a> node instead.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classvtTerrain.html#9e283572e63cbdcf612e81538408d25e">AddNode</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="485af80e54e56904d87fabab897b8f45"></a><!-- doxytag: member="vtTerrain::AddNodeToStructGrid" ref="485af80e54e56904d87fabab897b8f45" args="(vtTransform *pTrans)" --><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 vtTerrain::AddNodeToStructGrid           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classvtTransform.html">vtTransform</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pTrans</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>Adds a node to the terrain. The node will be added to the Structure LOD Grid of the terrain, so it will be culled when it is far from the viewer. This is usually desirable when the models are complicated or there are lot of them.<p>There is another form of this method which takes a <a class="el" href="classvtGeom.html">vtGeom</a> node instead.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classvtTerrain.html#9e283572e63cbdcf612e81538408d25e">AddNode</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="0c26e0a3dc6688d137b9eebad4c2cbf9"></a><!-- doxytag: member="vtTerrain::AddNodeToVegGrid" ref="0c26e0a3dc6688d137b9eebad4c2cbf9" args="(vtTransform *pTrans)" --><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 vtTerrain::AddNodeToVegGrid           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classvtTransform.html">vtTransform</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>pTrans</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>Adds a node to the terrain. The node will be added to the Vegetation LOD Grid of the terrain, so it will be culled when it is far from the viewer. This method is used by the terrain vegetation methods, and you can also use it directly if you have your own vegetation nodes to add.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classvtTerrain.html#9e283572e63cbdcf612e81538408d25e">AddNode</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="3a640844ca240a79ae4da69d0a016906"></a><!-- doxytag: member="vtTerrain::AddPlant" ref="3a640844ca240a79ae4da69d0a016906" args="(const DPoint2 &amp;pos, int iSpecies, float fSize)" --><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 vtTerrain::AddPlant           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classDPoint2.html">DPoint2</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>pos</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>iSpecies</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>float&nbsp;</td>          <td class="mdname" nowrap> <em>fSize</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>Create a new plant instance at a given location and add it to the terrain. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>pos</em>&nbsp;</td><td>The 2D earth position of the new plant. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>iSpecies</em>&nbsp;</td><td>Index of the species in the terrain's plant list. If you don't know the index, you can find it with <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classvtSpeciesList.html#0815ff02bc9b7f4507cb9007718607ef">vtSpeciesList::GetSpeciesIdByName</a> or <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classvtSpeciesList.html#5f265c9ca5bb3cabe4ae40e974567c5d">vtSpeciesList::GetSpeciesIdByCommonName</a>. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>fSize</em>&nbsp;</td><td>Height of the new plant (meters). </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="1449451c6d07490e0978acf29468bdf9"></a><!-- doxytag: member="vtTerrain::AddSurfaceLineToMesh" ref="1449451c6d07490e0978acf29468bdf9" args="(vtMeshFactory *pMF, const DLine2 &amp;line, float fOffset, bool bInterp=true, bool bCurve=false, bool bTrue=false)" --><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 vtTerrain::AddSurfaceLineToMesh           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classvtMeshFactory.html">vtMeshFactory</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>pMF</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const <a class="elRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classDLine2.html">DLine2</a> &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>line</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>float&nbsp;</td>          <td class="mdname" nowrap> <em>fOffset</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>bInterp</em> = <code>true</code>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>bCurve</em> = <code>false</code>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>bTrue</em> = <code>false</code></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>Create geometry on the terrain for a 2D line by draping the point onto the terrain surface.<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>pMF</em>&nbsp;</td><td>A <a class="el" href="classvtMeshFactory.html">vtMeshFactory</a> which will produces the mesh geometry. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>line</em>&nbsp;</td><td>The 2D line to drape, in Earth coordinates. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>fOffset</em>&nbsp;</td><td>An offset to elevate each point in the resulting geometry, useful for keeping it visibly above the ground. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>bInterp</em>&nbsp;</td><td>True to interpolate between the vertices of the input line. This is generally desirable when the ground is much more finely spaced than the input line. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>bCurve</em>&nbsp;</td><td>True to interpret the vertices of the input line as control points of a curve. The created geometry will consist of a draped line which passes through the control points. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>bTrue</em>&nbsp;</td><td>True to use the true elevation of the terrain, ignoring whatever scale factor is being used to exaggerate elevation for display. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The approximate length of the resulting 3D line mesh.</dd></dl><dl compact><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment">    <a class="codeRef" doxygen="vtdata.tag:../vtdata/" href="../vtdata/classDLine2.html">DLine2</a> line = ...;    <a class="code" href="classvtTerrain.html">vtTerrain</a> *pTerr = ...;    <a class="code" href="classvtGeom.html">vtGeom</a> *pLineGeom = <span class="keyword">new</span> <a class="code" href="classvtGeom.html">vtGeom</a>;    pTerr-&gt;<a class="code" href="classvtTerrain.html#9e283572e63cbdcf612e81538408d25e">AddNode</a>(pLineGeom);    <a class="code" href="classvtMeshFactory.html">vtMeshFactory</a> mf(pLineGeom, vtMesh::LINE_STRIP, 0, 30000, 1);    <span class="keywordtype">float</span> length = pTerr-&gt;<a class="code" href="classvtTerrain.html#1449451c6d07490e0978acf29468bdf9">AddSurfaceLineToMesh</a>(&amp;mf, dline, 10, <span class="keyword">true</span>);</pre></div> </dd></dl>    </td>  </tr></table><a class="anchor" name="fbb6e253c8717598419be3358c4e07fe"></a><!-- doxytag: member="vtTerrain::CreateArtificialHorizon" ref="fbb6e253c8717598419be3358c4e07fe" args="(float fAltitude, bool bWater, bool bHorizon, bool bCenter, float fTransparency)" --><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 vtTerrain::CreateArtificialHorizon           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">float&nbsp;</td>          <td class="mdname" nowrap> <em>fAltitude</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>bWater</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>bool&nbsp;</td>          <td class="mdname" nowrap> <em>bHorizon</em>, </td>        </tr>        <tr>

⌨️ 快捷键说明

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