📄 classvtlodgrid.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: vtLodGrid 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 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 List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>vtLodGrid Class Reference<br><small>[<a class="el" href="group__sg.html">Scene Graph</a>]</small></h1><!-- doxytag: class="vtLodGrid" --><!-- doxytag: inherits="vtGroup" -->Inheritance diagram for vtLodGrid:<p><center><img src="classvtLodGrid__inherit__graph.png" border="0" usemap="#vtLodGrid__inherit__map" alt="Inheritance graph"></center><map name="vtLodGrid__inherit__map"><area href="classvtPagedStructureLodGrid.html" shape="rect" coords="7,380,180,407" alt=""><area href="classvtSimpleLodGrid.html" shape="rect" coords="204,380,327,407" alt=""><area href="classvtGroup.html" shape="rect" coords="144,231,213,257" alt=""><area href="classvtNode.html" shape="rect" coords="95,156,159,183" alt=""><area href="classvtNodeBase.html" shape="rect" coords="80,81,173,108" alt=""><area href="classvtTarget.html" shape="rect" coords="92,7,161,33" alt=""><area href="classvtGroupBase.html" shape="rect" coords="183,156,281,183" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classvtLodGrid-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>An LOD Grid is a useful way of grouping objects in your scene graph.<p>It implements a sparse 2D array of LOD nodes, which divide an area into a set of Cells. When objects (geometry, or other node types) are added to the LOD Grid, they are placed in the appropriate Cell. Each Cell has a distance at which the objects in that Cell are not drawn. This allows you to have a large number of objects in your scene, yet efficiently cull faraway objects. The distance can be accessed with SetDistance()/GetDistance().<p>The LOD Grid is particularly designed for terrain, since the Cell division is based on the horizontal (XZ) plane.<p>Since the LOD Grid is a specialized kind of <a class="el" href="classvtGroup.html">vtGroup</a>, you should call <a class="el" href="classvtLodGrid.html#d948683c5c8fdc6f51f4d414296391f8">Release()</a> on it rather than delete. <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">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classvtLodGrid.html#d948683c5c8fdc6f51f4d414296391f8">Release</a> ()=0</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classvtLodGrid.html#2d8fbb74f751aebb3e640e7e8f99fe27">RemoveNodeFromGrid</a> (<a class="el" href="classvtNode.html">vtNode</a> *pNode)</td></tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="d948683c5c8fdc6f51f4d414296391f8"></a><!-- doxytag: member="vtLodGrid::Release" ref="d948683c5c8fdc6f51f4d414296391f8" args="()=0" --><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 vtLodGrid::Release </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Releases a node. Use this method instead of C++'s delete operator when you are done with a node. Internally, the node is reference counted so it is not deleted until all references to it are removed. <p>Reimplemented from <a class="el" href="classvtGroup.html#c47952fcdc74de6e2d4a93c467232087">vtGroup</a>.<p>Implemented in <a class="el" href="classvtSimpleLodGrid.html#c47952fcdc74de6e2d4a93c467232087">vtSimpleLodGrid</a>, and <a class="el" href="classvtPagedStructureLodGrid.html#c47952fcdc74de6e2d4a93c467232087">vtPagedStructureLodGrid</a>. </td> </tr></table><a class="anchor" name="2d8fbb74f751aebb3e640e7e8f99fe27"></a><!-- doxytag: member="vtLodGrid::RemoveNodeFromGrid" ref="2d8fbb74f751aebb3e640e7e8f99fe27" args="(vtNode *pNode)" --><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 vtLodGrid::RemoveNodeFromGrid </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classvtNode.html">vtNode</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pNode</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>This version is slower than calling RemoveFromGrid, but it covers more situations. It searches through all of the LOD grid's cells looking for the node, so it will work even in cases where the object may have moved out of its original cell. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 14 14:41:01 2008 for vtlib library by <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 + -