#include <PagedLodGrid.h>
Public Member Functions | |
| void | SetRange (float range) |
| bool | TestVisible (float fDistance, bool bLoad) |
| void | Add (vtStructureArray3d *pArray, int iIndex) |
| void | Remove (vtStructureArray3d *pArray, int iIndex) |
| void | SetGrid (vtPagedStructureLodGrid *g) |
| void | AppendToQueue () |
| virtual void | traverse (osg::NodeVisitor &nv) |
Public Member Functions inherited from vtLOD | |
| void | SetCenter (const FPoint3 ¢er) |
| Set the location of the LOD's center. Distance from this center determines detail. | |
| void | GetCenter (FPoint3 ¢er) |
| Get the location of the LOD's center. | |
Public Member Functions inherited from NodeExtension | |
| void | SetEnabled (bool bOn) |
| bool | GetEnabled () const |
| void | SetCastShadow (bool b) |
| Set this node to cast a shadow, if it is under a vtShadow node. Default is false. | |
| bool | GetCastShadow () |
| Get whether this node casts a shadow. | |
| void | GetBoundSphere (FSphere &sphere, bool bGlobal=false) |
| Get the Bounding Sphere of the node. | |
| void | SetOsgNode (osg::Node *n) |
Public Attributes | |
| StructureRefVector | m_StructureRefs |
| int | m_iNumConstructed |
| bool | m_bAddedToQueue |
Protected Attributes | |
| float | m_fRange |
| vtPagedStructureLodGrid * | m_pGrid |
A vtPagedStructureLOD node controls the visibility of its child nodes.
You set a single distance value (range) for all the children, which is the distance from the camera at which all nodes will be rendered.
| bool vtPagedStructureLOD::TestVisible | ( | float | fDistance, |
| bool | bLoad | ||
| ) |
| fDistance | The distance in meters to check against. |
| bLoad | If true, and this cell is within the distance, and it isn't loaded, then load it. |
1.8.4